This file contains 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
#!/bin/bash | |
# vi /usr/bin/tempcheck | |
# */5 * * * * /usr/bin/tempcheck | |
# chmod 744 /usr/bin/tempcheck | |
#!/bin/sh | |
# This script reads the Broadcom SoC temperature value and shuts down if it | |
# exceeds a particular value. | |
# 80oC is the maximum allowed for a Raspberry Pi. |
This file contains 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
# Encrypted password in sec.conf | |
/secure passphrase <pass> | |
/secure set bncpass <pass> | |
# Default setting for all network | |
This file contains 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
iptables -I INPUT -m tcp -p tcp --sport 1024:65535 --dport 53 -j ACCEPT | |
iptables -I INPUT -m udp -p udp --sport 1024:65535 --dport 53 -j ACCEPT | |
iptables -I OUTPUT -m tcp -p tcp --sport 1024:65535 --dport 53 -j ACCEPT | |
iptables -I OUTPUT -m udp -p udp --sport 1024:65535 --dport 53 -j ACCEPT |
This file contains 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
cat ZONEFILE| grep -v "@\|TTL\|Serial\|after\|;" | awk -F" " '{ if ($3 == "A") print $0 }' | awk '{print $4" IN PTR "$1".DOMAIN."}' |
This file contains 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
sed -e "s/\(.*\)/'\1'/" |
This file contains 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
awk '{print "add_to_beginning"$0}' file |
This file contains 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
VBoxManage list ostypes |
This file contains 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
diff --suppress-common-lines -y file1 file2 | colordiff -u | less -R |
This file contains 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
printf "USER:$(openssl passwd -crypt PASSWORD)\n" >> .htpasswd |
This file contains 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
# Look for the state tree in the local file system and not to contact a Salt Master | |
salt-call --local state.apply | |
# Same as above in debug mode | |
salt-call --local state.apply -l debug | |
# Re-register salt minion | |
systemctl stop salt-minion.service && rm -rf /var/cache/salt/* && systemctl start salt-minion.service |
OlderNewer