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
name: "GoogleNet" | |
input: "data" | |
input_dim: 10 | |
input_dim: 3 | |
input_dim: 224 | |
input_dim: 224 | |
# hierarchy 1 | |
# conv -> relu -> pool -> lrn |
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 | |
EFIVARS=/sys/firmware/efi/efivars/ | |
cd / | |
umount $EFIVARS | |
mount -t efivarfs rw $EFIVARS |
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
[ | |
{ | |
"id": "10a5ef39.f60931", | |
"type": "function", | |
"z": "61f14b03.8125a4", | |
"name": "Prep", | |
"func": "var device = msg.topic;\nvar transducers = msg.payload;\nvar ckanData = {\n pressure: 0,\n temperature: 0, \n illuminance: 0,\n pm2_5: 0,\n latitude: 0, \n longitude: 0, \n altitude: 0,\n speed: 0,\n device: device,\n timestamp: 0\n}\n\nfor (var i = 0; i < transducers.length; i++){\n var trans = transducers[i];\n if (trans.name === \"Atmospheric Pressure\"){\n ckanData.pressure = trans.sensorData.rawValue\n }\n if (trans.name === \"Atmospheric Temperature\"){\n ckanData.temperature = trans.sensorData.rawValue\n }\n if (trans.name === \"Illuminance\"){\n ckanData.illuminance = trans.sensorData.rawValue\n }\n if (trans.name === \"PM2.5\"){\n ckanData.pm2_5 = trans.sensorData.rawValue\n }\n if (trans.name === \"Longitude\"){\n ckanData.longitude = trans.senso |
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 | |
if [ $# -eq 0 ] | |
then | |
echo "supply the peer IP address" | |
exit 1 | |
fi | |
SUBNET_PREFIX=192 | |
MY_HOST=me.test |
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 | |
ctrlkeys=("a" "b" "c" "d" "f" "h" "n" "p" "q" "r" "s" "t" "v" "x" "z" "w") | |
for key in "${ctrlkeys[@]}" | |
do | |
echo "mapping for ctrl-$key to alt-$key" | |
echo "keyboard.send_keys('<ctrl>+$key')" > alt-$key.py | |
cat >.alt-$key.json <<kyng | |
{ |
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 | |
if [[ $(id -u) -ne 0 ]] | |
then echo "Please run as root" | |
exit | |
fi | |
apt-get update |
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 | |
if [[ $# -eq 0 ]]; then | |
echo "Usage: ./shitspace.sh <folder where spacy files located>" | |
exit 1 | |
fi | |
cd $1 | |
for oldname in * | |
do | |
newname=`echo $oldname | sed -e 's/ /_/g'` |
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 | |
for flac in * | |
do | |
if [[ $flac == *".flac"* ]]; then | |
filename="${flac%.*}" | |
ffmpeg -i $flac $filename.mp3 | |
fi | |
done |
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
[{"id":"d627a496.144108","type":"tab","label":"Washers"},{"id":"f585beb5.00bac","type":"inject","z":"d627a496.144108","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":106.5,"y":38,"wires":[["1ad562f4.97e2fd"]]},{"id":"1ad562f4.97e2fd","type":"http request","z":"d627a496.144108","name":"","method":"GET","ret":"txt","url":"https://hollyburn.laundroworks.com","tls":"","x":285.5,"y":39,"wires":[["ae701ff1.37aaa"]]},{"id":"ae701ff1.37aaa","type":"html","z":"d627a496.144108","name":"","tag":"[name=_token]","ret":"attr","as":"single","x":489.5,"y":39,"wires":[["7321ced1.a56cd"]]},{"id":"7321ced1.a56cd","type":"change","z":"d627a496.144108","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload[0].value","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":702.5,"y":39,"wires":[["82ecd7b3.f43b58"]]},{"id":"843e044b.41a478","type":"exec","z":"d627a496.144108","command":"curl","addpay":true,"append":"","useSpawn":"","timer":"","name":"", |
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
# /etc/lirc/hardware.conf | |
# | |
# Arguments which will be used when launching lircd | |
LIRCD_ARGS="-u -l" | |
#Don't start lircmd even if there seems to be a good config file | |
#START_LIRCMD=false | |
#Don't start irexec, even if a good config file seems to exist. | |
#START_IREXEC=false |
OlderNewer