(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/bin/bash | |
export FTP_PASSWORD="123456" | |
FTP_USER="user" | |
FTP_HOST="user.your-backup.de" | |
BACKUP_TARGET="ftp://${FTP_USER}@${FTP_HOST}/$(hostname)" | |
DUPLICITY_LOGFILE="/var/log/duplicity.log" | |
DUPLICITY_TEMPDIR="/tmp/duplicity" | |
# Rollbar access token | |
ACCESS_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxx |
#!/bin/bash | |
user="${1}" | |
host="${2}" | |
like="${3}" | |
all_dbs="$(mysql -u $user -p -h "$host" -Bse 'SELECT SCHEMA_NAME from information_schema.SCHEMATA WHERE SCHEMA_NAME like "${like}"' 2> /dev/null)" | |
for db in $all_dbs | |
do | |
mysql -u $user -p -h "$host" $db -sN -e "SELECT * FROM centerdaten;" 2> /dev/null |
#!/bin/bash | |
dir1="/tmp/dir1" | |
dir2="/tmp/dir2" | |
IFS=$'\n' | |
for file in $(grep -Ilsr -m 1 '.' "$dir1"); do diff -q --exclude="cache" "$file" "${file/${dir1}/${dir2}}" 2> /dev/null; done |
Here are the simple steps needed to create a deployment from your lokal GIT repository to a server based on this in-depth tutorial.
You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like my Deepl.io to act upon a Web-Hook that's triggered that service.