I am doing way too much scripting, back to my simple work. #!/bin/bash for i in “$@” do case $i in -e=*|–extension=*) EXTENSION=”${i#*=}” shift # past argument=value ;; -s=*|–searchpath=*) SEARCHPATH=”${i#*=}” shift # past argument=value ;; -l=*|–lib=*) LIBPATH=”${i#*=}” shift # past argument=value ;; –default) DEFAULT=YES shift # past argument with no value ;; *) # unknown …
Tag EC2 & EBS Volumes on Creation @jeffbar – #aws cli needs #pip install not apt
Creating EBS Volumes and EC2 Instances with tags from the beginning is new Believe it or not this announcement that you can tag your ec2 or volume upon creation is new from March 2017. I am presently working with Ubuntu Xenial. When you install aws cli from the apt , it has the old version …
Continue reading “Tag EC2 & EBS Volumes on Creation @jeffbar – #aws cli needs #pip install not apt”
Change your #bash environment in your #script with Set Builtin even in #Windows
Use Bash even in Windows The Set Builtin This builtin is so complicated that it deserves its own section. set allows you to change the values of shell options and set the positional parameters, or to display the names and values of shell variables. set set [–abefhkmnptuvxBCEHPT] [-o option-name] [argument …] set [+abefhkmnptuvxBCEHPT] [+o option-name] [argument …] …
Continue reading “Change your #bash environment in your #script with Set Builtin even in #Windows”
Ec2 UserData can’t deal with plain #Bash variables
It seems that the UserData passed via Cloud Init doesn’t run the script like it would run from CLI or cron. my script it worked to export the value, which the UserData field of EC2 launch form likes. export name=value means that the variable name is available to any process you run …
Continue reading “Ec2 UserData can’t deal with plain #Bash variables”
More than Six steps to creating a successful email newsletter
Get your Emails read and in the Inbox I was going focus on me and how successful I am, when I read the following link, below. It reminded me that emails need to focus on the customer. Always give information that is useful. Click bait gets folks angry, so, even if your an introvert, don’t …
Continue reading “More than Six steps to creating a successful email newsletter”
Increase the Number of Records Shown on the List View In Charming CRM – VTiger Experts
See more Records in the List View of Charming CRM Here is some advice in how to use Charming CRM, which is a powerful opensource CRM package that uses a LAMP server. It is based a fork of Vtiger 7 with several of the bugs fixed. You can install it at AWS Marketplace In Charming …
#Docker Service Create How to use the mount option to use a directory on the host
Mongo DB likes XFS, so the project is to get MOngodb in a docker container to be happy with an XFS volume on the host. Using the mount type bind instead of volume does the trick. docker service create \ –mount type=bind,src=<HOST-PATH>,dst=<CONTAINER-PATH> \ –name myservice \ <IMAGE> Give a service access to volumes or bind …
Continue reading “#Docker Service Create How to use the mount option to use a directory on the host”
#Docker Machine, Compose & Swarm
I want to make a “one click” Cloud formation” on AWS that creates a MongoDB or MySql replica set of at least 3 servers in the same or globally in different regions, or even clouds and local Data Center, Wish me luck Finally, let’s look at the most interesting tool in the current …
Setup standalone #Docker swarms on Localhost
I am setting up on Localhost, in order to save cloud fees and maybe some time during development. Multi-host networking with standalone swarms Estimated reading time: 11 minutes Standalone swarm only! This article only applies to users who need to use a standalone swarm with Docker, as opposed to swarm mode. Standalone swarms (sometimes known …
Continue reading ” Setup standalone #Docker swarms on Localhost”
How to run scripts on #Linux start up? crontab @reboot #devops
Nothing like a good Geeky command after the Yom Kippur 25 hour fast! Ubuntu loves to run apt-daily.service on Startup, which messes with devops pre-installations. In My case I want to run docker-machine. Turn off auto updates edit file 20-auto-upgrades in /usr/share/unattended-upgrades Turn the service back on after 20 minutes or /etc/apt/apt.conf.d https://www.garron.me/en/linux/turn-off-stop-ubuntu-automatic-update.html …
Continue reading ” How to run scripts on #Linux start up? crontab @reboot #devops”
Stop Ubuntu from running Auto Upgrades at boot – #DEVOPS
Devops need to automatically install stuff on Ubuntu, however this clashed with the daily ubuntu auto update. The best way to stop autoupgrades is to prevent Ubuntu from download the updated package list Edit /etc/apt/apt.conf.d/20periodic or whatever number it is Change the 1 for Update-Package-Lists to a 0 APT::Periodic::Update-Package-Lists “0”; APT::Periodic::Unattended-Upgrade “1”; See: https://askubuntu.com/questions/9/how-do-i-enable-automatic-updates https://help.ubuntu.com/community/AutomaticSecurityUpdates https://debian-handbook.info/browse/stable/sect.regular-upgrades.html Other …
Continue reading “Stop Ubuntu from running Auto Upgrades at boot – #DEVOPS”
Hmailserver script to set account #passwords
I am going to try the following code to pre-set a password on Hmailserver. My previous code doesn’t work on the newly installed Cloud Instance. Stay Tuned. The link and code are pretty old, but hope it will still work. Advice welcome! <?PHP // Users password $strPassword = “test123”; // Generate 6 Character Random …
Continue reading “Hmailserver script to set account #passwords”
Tech travelers Be sure to tip Skycaps, They work harder than tech workers and Start-up folks
Skycaps Don’t Work for the Airlines They Work for You! Many travelers and even airline employees are not aware that skycaps, the people who check in your luggage curbside and carry your bags inside the terminal, and to and from the curb, are not airline employees. These uniformed workers don’t get any benefits such as …