(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.
Sending Google Firebase push notification using #NodeJS | |
https://prasanthj.com/javascript/send-push-notifcations-to-devices-using-nodejs/ | |
https://medium.com/@jullainc/firebase-push-notifications-to-mobile-devices-using-nodejs-7d514e10dd4 | |
https://medium.com/@selvaganesh93/firebase-cloud-messaging-important-rest-apis-be79260022b5 | |
------------------------------------------------------------------- | |
var admin = require("firebase-admin"); | |
var serviceAccount = require("path_to_josn_downloaed_from_firebase_console/xxxxxx-club-firebase-adminsdk-xxxxxxxx.json"); |
touch .gitignore && echo "node_modules/" >> .gitignore && git rm -r --cached node_modules ; git status | |
It works perfectly (I'm using an OS). | |
OR | |
git rm -r --cached node_modules | |
git commit -m 'Remove the now ignored directory node_modules' | |
git push origin master |
#!/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.