Skip to content

Instantly share code, notes, and snippets.

Verifying that +biddster is my blockchain ID. https://onename.com/biddster
# This script work on any system using systemd as the init process.
# It works on Debian/Raspbian Jessie.
# If you have Debian/Rapbian Wheezy and want to use this script with systemd
# follow the information here : https://wiki.debian.org/systemd
# To easily download, install and set at startup:
# wget -O /tmp/download https://gist.github.com/biddster/9a700b0974f3a7b7a34e/download && sudo tar -zxf /tmp/download --strip-components 1 -C /etc/systemd/system/ && sudo systemctl --reload-daemon && sudo systemctl enable Node-RED
# To consult the log : journalctl -u Node-RED
[Unit]
@biddster
biddster / build-node-red.sh
Last active January 2, 2018 20:18
Curl the raw link to this script and $ sudo bash build-node-red.sh
#/bin/bash
function exit_if {
retcode=$?
[[ $retcode = 0 ]] || { echo "${1} - exit code [${retcode}]"; exit $retcode; }
}
cd
apt-get update
@biddster
biddster / quick-release
Last active July 29, 2017 23:01 — forked from tristanlins/quick-flow.sh
Quick creation of new releases with git flow, without using the release branch.
#!/bin/bash
TAG=${1?"Usage: $0 <release version>"}
function exit_if {
retcode=$?
[[ $retcode = 0 ]] || { echo "${1} - exit code [${retcode}]"; exit $retcode; }
}
if [[ -n "$(git status --porcelain)" ]]; then
echo "Uncommited changes detected!"
#!/bin/bash
#set -x
SALT_MASTER_IP=${1?"Please specify the salt-master ip address"}
function exit_if {
retcode=$?
[[ $retcode = 0 ]] || { echo "${1} - exit code [${retcode}]"; exit $retcode; }
}