Posts

Showing posts from October, 2020

The integration between Docker and Amazon ECS

The integration between Docker and Amazon ECS allows developers to use the Docker Compose CLI to: Set up an AWS context in one Docker command, allowing you to switch from a local context to a cloud context and run applications quickly and easily Simplify multi-container application development on Amazon ECS using Compose files

Watching a file to keep the container running.

tail -f /dev/null

A container adds additional isolation not available when simply using chroot.

A container is extended version of chroot A chroot on Unix operating systems is an operation that changes the apparent root directory for the current running process and its children. A program that is run in such a modified environment cannot name files outside the designated directory tree. The term "chroot" may refer to the chroot(2) system call or the chroot(8) wrapper program. The modified environment is called a chroot jail.

Allow multiple Docker containers to communicate with each other by Docker network

For example a client application in another Docker container can access the database Server in the server container.  First, create a Docker network: docker network create goyun-info-net When you are creating and starting the server and the client containers, use the --network option to put them on network you created. For example: docker run --name=mysql1 --network=goyun-info-net -d mysql/mysql-server docker run --name=myapp1 --network=goyun-info-net -d myapp The myapp1 container can then connect to the mysql1 container with the mysql1 hostname and vice versa, as Docker automatically sets up a DNS for the given container names .  In the following example, we run the mysql client from inside the myapp1 container to connect to host mysql1 in its own container: docker exec -it myapp1 mysql --host=mysql1 --user=myuser --password For other networking techniques for containers, see the Docker container networking section in the Docker Documentation.

FTC Signs Updated Memorandum of Understanding with Nigerian Consumer Protection and Criminal Enforcement Authorities

The Federal Trade Commission signed an updated memorandum of understanding (MOU) with two Nigerian enforcement agencies  to enhance communication and cooperation in a joint effort to combat cross-border fraud. The updated MOU with Nigeria’s Federal Competition and Consumer Protection Commission (FCCPC) and Economic and Financial Crimes Commission (EFCC) reaffirms the agencies’ capacity and willingness to work together, as well as the intention to share information and to assist one another in consumer protection investigations. Nigeria’s FCCPC addresses consumer protection matters through investigations and enforcement. The EFCC is a criminal enforcement agency that combats consumer fraud and other financial crimes. The updated MOU replaces the FTC’s 2013 MOU with the FCCPC’s predecessor, the Consumer Protection Council (CPC), and the EFCC. The MOU establishes a joint implementation committee to develop joint training programs and workshops and provide assistance regarding specific in

Fixed: AWS CodeCommit Permission Denied issue

When trying to push to the remote repo. Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. On your local machine, use a text editor to create a config file in the ~/.ssh directory, and then add the following lines to the file, where the value for User is the SSH key ID you copied earlier:   Host git-codecommit.*.amazonaws.com User APKAEIBAERJR2EXAMPLE IdentityFile ~/.ssh/ codecommit_rsa

Install Ajenti Control Panel on Ubuntu

systemctl: command not found on ubuntu docker

sudo apt-get install systemd Or re-install sudo apt-get install --reinstall systemd

The Ajenti Project consists of Ajenti Core and set of stock plugins forming the Ajenti Panel.

Ajenti Core: Web interface development framework which includes a web server, IoC container, a simplistic web framework and set of core components aiding in client-server communications. Ajenti Panel: Consists of plugins developed for the Ajenti Core and a startup script, together providing a server administration panel experience.

FTC Finalizes Settlement with Data Center Company over Allegations it Deceived Consumers about its Participation in the EU Privacy Shield

The Federal Trade Commission finalized a settlement   with a data storage services company that allegedly deceived consumers about its participation in the EU-U.S. Privacy Shield (Privacy Shield) framework. The FTC alleged that NTT Global Data Centers Americas, Inc. (NTT), formerly known as RagingWire Data Centers, Inc., claimed in its online privacy policy and marketing materials that the company participated in the Privacy Shield framework and complied with the program’s requirements. In fact, the FTC alleged, the company’s certification lapsed in January 2018 and it failed to comply with certain Privacy Shield requirements while it was a participant in the framework. Under the settlement, the company, among other things, is prohibited not just from misrepresenting its compliance with or participation in the Privacy Shield framework, but also any other privacy or data security program sponsored by the government or any self-regulatory or standard-setting organization. The company

Linux: Check Which Port Number a Process is Listening on

$ sudo ss -ltnp l: display only listening sockets t: display tcp connection n: display addresses in a numerical form p: display process ID/ Program name $ sudo lsof -i :80 This command will list all processes using TCP port number 80.

Find the default port number of a given service in Linux

To find the default port number of a given service in Linux: $ grep <port> /etc/services For example, to find the default port of a SSH service, simply run: $ grep ssh /etc/services

Full List of JVM System Properties

You can check he full list of system properties of JVM and their current value for  Oracle JDK or OpenJDK:  1 java -XshowSettings:properties  -version -version is used just to avoid displaying the usage of java command which is displayed if no standard option is specified. You can also use: jcmd <pid> VM.system_properties

FTC Releases FY 2020 National Do Not Call Registry Data Book

Image
Imposter calls once again top list of complaint topics in the past year The Federal Trade Commission today issued the National Do Not Call Registry Data Book for Fiscal Year 2020 . The FTC’s National Do Not Call (DNC) Registry lets consumers choose not to receive most legal telemarketing calls. The data show that the number of active registrations on the DNC Registry increased by two million over the past year, while the total number of consumer complaints decreased for the third year in a row. Now in its twelfth year of publication, the Data Book contains information about the DNC Registry for FY 2020 (from October 1, 2019 to September 30, 2020). The Data Book provides the most recent fiscal year information available on robocall complaints, the types of calls consumers reported to the FTC, and a complete state-by-state analysis. FY 2020 Registration and Complaint Data According to the Data Book, at the end of FY 2020, the DNC Registry contained 241.5 million actively registere

Start ssh agent automatically with powershell

Set-Service ssh-agent -StartupType automatic Start-Service ssh-agent

Campfire safety tips.

Build your campfire on bare soil or rock. Choose a spot that's sheltered from the wind and at least 3 meters from anything flammable. Keep your fire small and never leave it unattended. When you're ready to put it out, soak the campfire with water, stir the ashes to uncover hot coals, and soak it again.

HTTP microservices, reactive applications, message-driven microservices and serverless are now central players in modern systems.

The client-server architecture is not longer the de-facto standard to build applications.

FTC Announces New Fraud Reporting Platform for Consumers: ReportFraud.ftc.gov

Image
New reporting system will provide streamlined experience and advice for consumers filing complaints with the FTC The Federal Trade Commission has launched a new website, ReportFraud.ftc.gov, where consumers can easily report fraud and all other consumer issues directly to the FTC. At ReportFraud.ftc.gov, consumers will find a streamlined and user-friendly way to submit reports to the FTC about scams, frauds, and bad business practices. The FTC has long encouraged consumers to report these issues to the FTC when they encounter them—whether or not they lost money to the fraud. “Every time you report scams or bad business practices to the FTC, you’re helping to protect your community,” said Andrew Smith, Director of the FTC’s Bureau of Consumer Protection. “With ReportFraud.ftc.gov, it’s quicker and easier than ever to share your story, and each report helps the FTC, and other federal, state, and local law enforcement agencies, fight fraud.” One new feature of the site is that co

FTC Data Shows Big Jump in Consumer Reports about Scams Originating on Social Media

Newly released data from the Federal Trade Commission reveal that there has been a surge in reports from people who say they lost money to a scam that started on social media, including a spike of these complaints in the spring at the height of the COVID-19 pandemic. Data released by the FTC shows that the number of complaints about scams that started on social media more than tripled in the last year. People reported losing more than $117 million to this type of scam in just the first six months of 2020 compared to $134 million for all of 2019, according to the FTC’s latest Consumer Protection Data Spotlight . Online shopping topped the list of complaints from consumers who reported a scam to the FTC that originated on social media. Of these consumers, many were responding to an ad they saw on social media and reported that the item they ordered never arrived. Most of those consumers (94 percent) who identified the social media service in their complaint cited Facebook or Instagram a

Both Realtime Database and Cloud Firestore are NoSQL Databases.

Realtime Database Cloud Firestore Stores data as one large JSON tree. Simple data is very easy to store. Complex, hierarchical data is harder to organize at scale. Learn more about the  Realtime Database data model . Stores data as collections of documents. Simple data is easy to store in documents, which are very similar to JSON. Complex, hierarchical data is easier to organize at scale, using subcollections within documents. Requires less denormalization and data flattening. Learn more about the  Cloud Firestore data model .

FTC Approves Final Administrative Consent Order with Marketer of Product Falsely Claiming to Prevent or Treat COVID-19

Following a public comment period, the Federal Trade Commission has approved a final administrative consent order  settling charges that a California-based marketer of a supplement called Thrive, which consists mainly of Vitamin C and herbal extracts, made baseless claims that it can treat, prevent, or reduce the risk of COVID-19. According to the FTC’s April 2020 administrative complaint , since at least December 2018, Marc Ching, doing business as Whole Leaf Organics, advertised and sold Thrive online, through his Whole Leaf Organics website, and in March 2020 began marketing it as an “anti viral wellness booster” that treats, prevents, or reduces the risk of COVID-19. The complaint also alleged that Ching used his Whole Leaf Organics website to deceptively advertise and sell three CBD-containing products. The final order settling the complaint bars Ching’s false and unsubstantiated health claims and requires him to send written notices to customers and retailers of Thrive explainin

GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell.

GNU Aspell can either be used as a library or as an independent spell checker. Its main feature is that it does a superior job of suggesting possible replacements for a misspelled word than just about any other spell checker out there for the English language.

Word and language resources

Free Dictionary Project List Of English Words Aspell Dictionary Bad Word Filter   Detect and censor bad words, swear words and profanity in a given text. An English Word List Anglictinacz.com http://www.anglictinacz.com/ ESL Student resources http://www.ohiou.edu/linguistics/esl/ Rong-Chang http://www.rong-chang.com/ About.com http://esl.about.com/ ESLpodcast http://www.eslpod.com/website/ ESL Cafe http://www.eslcafe.com/ ESL Gold http://www.eslgold.com/ English-hilfen.de http://www.englisch-hilfen.de/en/ Anglicky s BBC http://www.bbc.co.uk/czech/lea... Learning languages online http://languages.fast-page.org

FTC Halts Scheme that Falsely Claimed to Offer Unlimited Inmate Calling Plans

Operators have bilked consumers out of at least $1 million, FTC alleges At the request of the FTC, a federal court issued a temporary restraining order   against Marc and Courtney Grisham and two companies they operate, Disruption Theory LLC and Emergent Technologies LLC, which do business as inmatecall.com and inmatecallsolutions.com. In its complaint , the FTC alleges that the operators advertised and marketed calling plans for unlimited minutes, which they did not provide. Prison and jail calls are provided by specialized service providers, which have contracts with correctional facilities and charge for calls at predetermined per-minute rates. Specialized service providers have not and do not currently offer unlimited calling plans. This is the first case the FTC has brought involving inmate calling plans. The FTC alleges that the operators of the scheme preyed on inmates’ families and friends who rely on phone calls to stay in touch with their incarcerated loved ones—particularly

Online Code Editor

Collabedit is an online code editor that lets people collaborate in real-time. It works in your web browser so no installation is needed. Try it now, no account necessary, just click  here . Features text editor chat document history syntax highlighting for programming languages

FTC Acts to Shut Down Unlawful Debt Collection Operation

Atlanta-based company allegedly posed as police, made threats to consumers about non-existent debt A federal court has shut down an Atlanta-based debt collector   in response to a Federal Trade Commission complaint alleging that its agents threatened consumers with arrest and imprisonment and tried to collect debts that consumers did not actually owe. The FTC’s complaint alleges that Critical Resolution Mediation LLC’s  collectors regularly posed as law enforcement officers, attorneys, mediators, or process servers when calling consumers, lending credence to their threats about supposed unpaid debts. In many cases, the defendants were attempting to collect on so-called “phantom” debt—debts that either were never owed—or debts that were no longer owed. The case was brought as part of the Operation Corrupt Collector law enforcement sweep. According to the complaint, the company’s collectors threatened not only to arrest and jail consumers who refused to pay immediately, but also to ga

Check Which Port Number a Process is Listening on

$ sudo ss -ltnp State Recv-Q Send-Q Local Address:Port Peer Address:Port LISTEN 0 100 127.0.0.1:25 0.0.0.0:* users:(("master",pid=3877,fd=13)) LISTEN 0 128 0.0.0.0:443 0.0.0.0:* users:(("sshd",pid=4544,fd=3)) LISTEN 0 127 0.0.0.0:988 0.0.0.0:* LISTEN 0 2 0.0.0.0:3389 0.0.0.0:* users:(("xrdp",pid=4060,fd=11)) LISTEN 0 128 127.0.0.1:38591 0.0.0.0:* users:(("containerd",pid=3748,fd=8)) LISTEN 0 128 0.0.0.0:111 0.0.0.0:* users:(("rpcbind",pid=2704,fd=8)) LISTEN

MONyog Default

Default MONyog port is 5555 • Default user name is “admin” • Default Password is Empty 

Get current IP address from command line

$ alias myip='export IP=`curl -s https://checkip.amazonaws.com`;echo $IP'

Reset the MONyog admin password

To reset the admin password, Stop MONyog service. Remove/empty the 'Password' string in the ‘MONyog.ini’ file and save it. Restart MONyog service. After removing the password and restarting the MONyog service, you should be able to login to Monyog UI using 'admin' username and a blank password.

How to Start one or more stopped containers

Example: $ docker start goyun_info_container

How to start a docker container as daemon process

Instead of running docker container with an interactive shell it is also possible to let docker container to run as a daemon which means that the docker container would run in the background completely detached from your current shell.  $ docker run --name goyun -d centos /bin/sh -c "while true; do sleep 8s; done" Use docker exec to reattach to your container interactive shell: $ docker exec -it goyun /bin/bash

FTC Sends $7 Million in Refunds to Victims of Tech Support Scam

Image
The Federal Trade Commission is sending PayPal payments totaling more than $7 million to victims of a tech support scam. According to the FTC, Vast Tech Support, LLC and OMG Tech Help, LLC used free security scanning software trials to trick people into thinking there were problems with their computers and then pressured them into buying tech support products and services. As part of settlements with the FTC , Vast Tech Support, LLC and OMG Tech Help, LLC, and their credit card payment processor, RevenueWire, Inc. —which the FTC alleged laundered credit card payments for the tech support scheme—agreed to pay money to the Commission for consumer refunds. The FTC will send 127,129 refunds through PayPal over a two-day period beginning on October 14, 2020. The average refund is $55.36. Recipients who receive a refund via PayPal will have 30 days to accept the payment. For more details about the PayPal payment process, please read the related FAQ . Consumers who do not receive a

Create Password Protected ZIP in Linux command

Use the zip command with -p flag to create a password protected zip archive: $ zip -e  goyun.info.contract.pdf

Red Hat JBoss Developer Studio (JBDS)

JBoss Developer Studio (JBDS) is an Integrated Development Environment (IDE) provided by Red Hat to simplify the development of Java EE applications. It is a set of integrated and well-tested plug-ins on top of the Eclipse™ platform. JBDS has the following built-in features: Plug-ins to simplify development of applications using Red Hat JBoss middleware. Unit testing plug-ins and wizards to do Test Driven Development (TDD). A visual debugger to help debug local and remote Java applications. Syntax highlighting and code completion for the most commonly used Java EE APIs, such as JPA, JSF, JSP, EL, and many more. Maven integration to simplify project builds, packaging, testing, and deployment. Unit adapters and plug-ins to work with JBoss EAP. You can control the life cycle (start, stop, restart, deployment, undeployment) of EAP without leaving the IDE.

Setup DNS Server with Docker Container

Quickstart Start BIND using: $ sudo docker run --name bind -d --restart=always  --publish 53:53/tcp --publish 53:53/udp --publish 10000:10000/tcp  --volume /opt/docker/bind:/data sameersbn/bind Login to Webmin with the username  root  and password  password . Specify  --env ROOT_PASSWORD=secretpassword  on the  docker run  command to set a password of your choosing. Persistence For the BIND to preserve its state across container shutdown and startup you should mount a volume at  /data . The  Quickstart  command already mounts a volume for persistence. SELinux users should update the security context of the host mountpoint so that it plays nicely with Docker: mkdir -p /opt/docker/bind chcon -Rt svirt_sandbox_file_t /opt/docker/bind Shell Access docker exec -it bind bash

Install docker on Oracle Linux 8

Install Docker on Oracle Linux dnf install -y dnf-utils zip unzip dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo dnf install -y docker-ce --nobest

The eval command is used to execute the arguments as a shell command on unix or linux system.

Eval command comes in handy when you have a unix or linux command stored in a variable and you want to execute that command stored in the string. The eval command first evaluates the argument and then runs the command stored in the argument. Example: eval `ssh-agent` eval $(ssh-agent) An agent is a program that keeps your keys in memory so that you only need to unlock them once, instead of every time. ssh-agent does this for SSH keys. eval `ssh-agent` – this runs the agent in background, and sets the apropriate environment variables for the current shell instance.

How to run Docker inside WSL Ubuntu

$ sudo /usr/bin/dockerd & $ sudo docker run hello-world

Install openssh-client on WSL Ubuntu

If your WSL distro does not have ssh-keygen installed, run: $ sudo apt-get install openssh-client -y

Use the qemu-img utility to convert the KVM image to a VHDX image

$ sudo apt-get install qemu-utils -y $ qemu-img convert ubuntu-core-18-amd64.img -O vhdx -o subformat=dynamic ubuntu-core-18-amd64.vhdx

Install XRDP+XORGXRDP via source on Ubuntu

microsoft / linux-vm-tools

Ubuntu Core is a tiny, transactional version of Ubuntu Linux from Canonical.

Ubuntu Core  is designed for 'internet of things' (IoT) devices and large container deployments.  Ubuntu Core uses snaps exclusively as a package manager. Unlike traditional Ubuntu, there is no apt package manager here. Learn more about Ubuntu Core.

Fixed – ping: socket: Operation not permitted

Error when trying to ping ping: socket: Operation not permitted Solution: sudo chmod 4711 /usr/bin/ping