This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
CMD=$(basename $0) | |
PEM="key.pem" | |
PUB="key.pub" | |
ENC=".env.enc" | |
TMP=".env.tmp" | |
ENV=".env" | |
if [[ ! -f ${PEM} ]]; then | |
echo "Private file not found." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
diff -u $@ | sed "s/^-/`echo -e \"\x1b\"`[31m-/;s/^+/`echo -e \"\x1b\"`[32m+/;s/^@/`echo -e \"\x1b\"`[34m@/;s/$/`echo -e \"\x1b\"`[0m/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## /home/pi/bridge.sh | |
#!/usr/bin/env bash | |
service hostapd stop | |
service dnsmasq stop | |
service dhcpcd restart | |
ifdown wlan0 | |
ifup wlan0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin | |
NAME="fluentd" | |
DAEMON="/usr/local/bin/${NAME}" | |
PID_FILE="/var/run/${NAME}.pid" | |
LOG_FILE="/var/log/${NAME}.log" | |
SCRIPT_NAME="/etc/init.d/${NAME}" | |
DAEMON_ARGS="-d ${PID_FILE} -o ${LOG_FILE}" |