Using robots.txt to block @Yandex #DDOS from #Russia @yandexcom

User-agent: YandexBot Disallow: / User-agent: YandexDirect Disallow: / User-agent: YandexDirectDyn Disallow: / User-agent: YandexImages Disallow: / User-agent: YaDirectFetcher Disallow: / User-agent: YandexBlogs Disallow: / User-agent: YandexNews Disallow: / User-agent: YandexPagechecker Disallow: / User-agent: YandexMetrika Disallow: / User-agent: YandexCalendar Disallow: / Also see: https://charmingwebdesign.com/blocking-ip-addresses-of-any-country-with-iptables/     ‘YandexBot’ — the main indexing robot ‘YandexDirect’ — downloads information about …

Set Mautic to set a simple bounce adress

F you do not have the means to setup a catchall: In app/bundles/EmailBundle/Helper/MailHelper.php: Change: public function generateBounceEmail($idHash = null) { $monitoredEmail = false; if ($settings = $this->isMontoringEnabled(‘EmailBundle’, ‘bounces’)) { // Append the bounce notation list($email, $domain) = explode(‘@’, $settings[‘address’]); $email .= ‘+bounce’; if ($idHash) { $email .= ‘_’.$this->idHash; } $monitoredEmail = $email.’@’.$domain; } return $monitoredEmail; …

Script to create a #docker swarm mode cluster

I found this script on GitHub.  I have been writing a similar one, with less functionality and flexibility, but that’s OK it is for Databases with volumes. #!/bin/bash Size=3 if [ -z “${DOCKER_MACHINE_DRIVER}” ]; then DOCKER_MACHINE_DRIVER=virtualbox fi # REGISTRY_MIRROR_OPTS=”–engine-registry-mirror https://jxus37ac.mirror.aliyuncs.com” # INSECURE_OPTS=”–engine-insecure-registry 192.168.99.0/24″ STORAGE_OPTS=”–engine-storage-driver overlay2″ MACHINE_OPTS=”${STORAGE_OPTS} ${INSECURE_OPTS} ${REGISTRY_MIRROR_OPTS}” function create_nodes() { for i in $(seq …

How do I parse command line arguments in #Bash? with flags like -s for speed or -ami for AMI ID

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 …

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 …] …

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 …

 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 …

 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 …