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
{ | |
"pools" : [ | |
{ | |
"url" : "stratum+tcp://<url>:<port>", | |
"user" : "username.worker", | |
"pass" : "a" | |
}, | |
{ | |
"url" : "stratum+tcp://<url>:<port>", | |
"user" : "username.worker2", |
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
export -a | |
for f in $(declare -F | awk '{ print $3; }'); do | |
eval declare -f -x $f | |
done |
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
#!/bin/bash | |
HISTSIZE="10000" | |
set -o history | |
function debug() { | |
# Export arrays since BASH doesn't. | |
declare -a -p |grep -v BASH_ > ${tmpdir}/bash_arrays | |
history|sed -E 's/^[[:space:]]*[0-9]+[[:space:]]+//' > ${tmpdir}/debug.hist | |
PS1="DEBUG SHELL> " HISTFILE=$(ls ${tmpdir}/debug.hist) /bin/bash --rcfile ${tmpdir}/bash_arrays -o history|| true |
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
-- Handle the alarm | |
local state = luup.variable_get("urn:micasaverde-com:serviceId:AlarmPartition2", "DetailedArmMode", 7) | |
luup.log("Found alarm panel in '" .. state .. "' state when running Deadbolt PIN Entered scene.") | |
if ((state ~= "Ready") and (state ~= "NotReady")) then | |
luup.log("Sending Disarm command.") | |
luup.call_action("urn:micasaverde-com:serviceId:AlarmPartition2", "RequestArmMode", { State="Disarmed", PINCode="1234"} , 7) | |
end |
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
In Yubikey tool: | |
1. Click OATH+HOTP tab | |
2. Click Advanced | |
3. Deselect token identifier. | |
4. Press Generate to create a new random seed. |
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
#!/bin/sh | |
# this is a pre-connect script for Tunnelblick that displays a bnner prior to connect and bails if the user clicks "Decline". | |
# adjust the banner as needed for your compliance requirements. | |
# NOTE: after you add pre-connect.sh to your tblk config directory you must attempt to connect once and then in the subsequent dialog that appears | |
# you must alloiw tunnelblick to access the System UI Server. | |
# | |
banner=" | |
You will be monitored. | |
If you are unauthorized or do not agree to the terms above, you are not permitted to use this system. |
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
#!/bin/sh | |
pk12util -d . -r -n Server-Cert -o foo.p12 | |
openssl pkcs12 -in foo.p12 -out foo-crt.pem -clcerts -nokeys | |
openssl pkcs12 -in foo.p12 -out foo-key.pem -nocerts -nodes |
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
#!/bin/sh | |
SETNAME=baddies | |
echo "Current stats of ipset ${SETNAME}" | |
iptables -LINPUT -n -v | head -n2 | |
iptables -LINPUT -n -v | grep ${SETNAME} | |
echo -e "\nCreating or flushing the \"${SETNAME}\"." |
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
#!/bin/bash | |
cd /usr/share/icons | |
# Microseven MYM7 1080i-A etc | |
wget -O cam1.jpg 'http://192.168.0.2/tmpfs/snap.jpg?usr=username&pwd=password&1562769315776' | |
wget -O cam2.jpg 'http://192.168.0.3/tmpfs/snap.jpg?usr=username&pwd=password&1562769315776' | |
wget -O cam3.jpg 'http://192.168.0.4/tmpfs/snap.jpg?usr=username&pwd=password&1562769315776' | |
# foscam 9821 v2 | |
wget -O cam4.jpg 'http://192.168.0.5/cgi-bin/CGIProxy.fcgi?cmd%3DsnapPicture2%26usr%3Dsuername%26pwd%3Dpassword' |
OlderNewer