recentpopularlog in

racl101 : reference   6048

« earlier  
TCP/IP Subnet Masking made easy - YouTube
Video explaining subnet masking. Even then it's still a little tough to comprehend. Might require a few viewings.
youtube  screencast  video  tutorial  networking  ipaddress  cidr  tcp  ip  subnet  masking  calculation  explanation  guide  reference  howto  example 
yesterday by racl101
Gate Computer Organization-13 | Byte Ordering (Big Endian &Little Endian) - YouTube
Really good YouTube tutorial video explaining the concepts of Big Endian and Little Endian as it pertains to byte ordering.
youtube  screencast  video  tutorial  big  endian  little  byte  ordering  explanation  guide  reference  howto  example 
yesterday by racl101
Rename a git submodule - Stack Overflow

$ mv submodule-oldpath ~/another-location
$ git rm submodule-oldpath
$ git submodule add submodule-repository-URL submodule-newpath
stackoverflow  git  howto  example  rename  submodule  guide  reference  mv  rm  remove  move 
yesterday by racl101
How to get HTTPS working on your local development environment in 5 minutes
This still works as of October 2018. Followed a Homstead Vagrant Bash shell script implementation of this found in a file called: /scripts/

The thing that makes all the difference is creating the root certificate and then creating the specific site certificate from the root script.
blog  tutorial  freecodecamp  howto  create  ssl  certificate  self  signed  site  root  google  chrome  https  development  environment  example  guide  reference  security 
2 days ago by racl101
How to remove <none> images after building - Open Source Projects / DockerEngine - Docker Forums
Even though they said it didn't work for them, it worked for me on Docker CE: 18.06.1-ce version:

docker rmi $(docker images -f "dangling=true" -q)
docker  forum  howto  remove  images  dangling  example  guide  reference  repository  tag  value  none 
8 days ago by racl101
iptables sometimes works inside container, sometimes not - docker 0.8.1 · Issue #4424 · moby/moby
In short, you need to use --cap-add=NET_ADMIN when you launch a Docker Image to be able to enable tools such as the ufw tool in say a Docker image running the Ubuntu . 16.04 image, for example.
github  forum  howto  run  docker  container  troubleshoot  fix  network  admin  capabilities  universal  firewall  ufw  example  guide  reference 
8 days ago by racl101
Installing MySQL (with Debconf) | Servers for Hackers

echo mysql-server mysql-server/root_password password root | debconf-set-selections;\
echo mysql-server mysql-server/root_password_again password root | debconf-set-selections;\
apt-get install -y mysql-server mysql-client libmysqlclient-dev

So that you don't have install mysql server interactively and can set the root password programmatically.

Works for installing MySQL 5.7 on Ubuntu 16.04 as well.
blog  tutorial  screencast  video  howto  install  mysql  mysql5.7  server  debian  configuration  root  password  programmatically  ubuntu  ubuntu16.04  script  bash  shell  example  guide  reference 
8 days ago by racl101
Script to open a mysql database in Sequel Pro from a service in docker-compose.
A gist of an Bash Shell Script to open up Sequel Pro MacOS / MacOS X app with credentials to view a MySQL database running within a Docker container.
github  gist  script  bash  shell  open  sequel  pro  sequelpro  database  mysql  docker  container  credentials  totry  guide  reference 
8 days ago by racl101
Connecting to a mysql running on a Docker container · Issue #95 · docker-library/mysql
Frankly, this forum page has no consensus on a solution to this issue. Nevertheless, what worked for me on my set up with running MacOS as the Docker host and running a container with: Ubuntu 16.04 and MySQL 5.7 is the following:

1) Within the container: change in /etc/mysql/mysql.conf.d/mysqld.cnf the bind-address option from to
2) Restart MySQL server (note that whenever you start MySQL you must use this command in the Dockerfile:

RUN sed -i -e"s/^bind-address\s*=\s* =" /etc/mysql/mysql.conf.d/mysqld.cnf
RUN find /var/lib/mysql -type f -exec touch {} \; && service mysql start

That is, you must touch the files in /var/lib/mysql and then start the server with service command and not systemctl.

Next, create a user separate from root e.g. dev_1, in MySQL and given them privileges to their '' and '%' hosts. Like this in the Dockerfile:

RUN find /var/lib/mysql -type f -exec touch {} \; && service mysql start && mysql -uroot -proot mysql -e "GRANT ALL ON *.* TO root@'' IDENTIFIED BY 'secret' WITH GRANT OPTION; CREATE USER 'dev_1'@'' IDENTIFIED BY 'secret'; GRANT ALL ON *.* TO 'dev_1'@'' IDENTIFIED BY 'secret' WITH GRANT OPTION; GRANT ALL ON *.* TO 'dev_1'@'%' IDENTIFIED BY 'secret' WITH GRANT OPTION; FLUSH PRIVILEGES;"

Then when you start the container you must publish the port number like so:

docker run -t -d -p 4406:3306 ubuntu_16_04_lemp_php_7_2:latest

If your container stops prematurely, then you might want to add a CMD line in your docker file to run a script and within that script you might want to add something like this:

# stupid hack to keep container from being stopped
tail -f /dev/null

Finally, to connect to your DB instance on your local MacOS machine with an app like Sequel Pro for example, use the following credentials:

Username: dev_1
Password: <dev_1_password>
Port: 4406

If you don't like to use port 4406, try 3307, 3308, 3309.
github  forum  howto  example  troubleshoot  mysql  server  docker  host  connection  issue  sequel  pro  mariadb  client  hostname  docker-machine  ip  address  ipaddress  guide  reference  toread  tolearn  totry  tounderstand  image  port  detached  database  credentials 
8 days ago by racl101
Docker container will automatically stop after "docker run -d" - Stack Overflow
TLDR: I've tried adding: tail -f /dev/null to my start script and that worked allong with invoking the container with the: docker run -t -d <image-name> command invocation.
stackoverflow  howto  troubleshoot  example  docker  container  automatically  suddenly  stops  running  detached  mode  foreground  workaround  hack  hackfix  fix  toread  tolearn  totry  tounderstand  guide  reference 
8 days ago by racl101
All You Need To Know About Processes in Linux [Comprehensive Guide]
Interesting tutorial giving an introduction to Linux processes that is understandable .
blog  tutorial  toread  tolearn  totry  tounderstand  linux  processes  explanation  guide  reference  overview  system  comprehensive 
8 days ago by racl101
How to install a free legal Windows in VirtualBox - Easy Linux tips project
Tutorial explaining how to install Microsoft hosted OS / Internet Explorer virtual machine images manually (i.e. not using ievms since for some reason it's currently buggy.)
blog  tutorial  howto  example  install  microsoft  windows  internet  explorer  ie  ievms  virtual  machine  manually  virtualbox  guide  reference 
15 days ago by racl101
Learn Docker in 12 Minutes 🐳 - YouTube
Pretty decent tutorial introducing how to do something in Docker.
youtube  screencast  video  guide  reference  learn  learning  docker  container  web  server  apache  php  script  deployment 
15 days ago by racl101
« earlier      
per page:    204080120160

Copy this bookmark:

to read