Skip to content

Instantly share code, notes, and snippets.

"node_modules/asteroid": {
"version": "0.6.1",
"resolved": "git+ssh://git@github.com/rocketchat/asteroid.git#a76a53254e381f9487aa2a9be3d874c9a2df6552",
"license": "MIT",
"dependencies": {
"ddp.js": "^0.5.0",
"faye-websocket": "^0.11.0",
"q": "^1.0.1"
}
},
#!/bin/bash -x
DEVICE_IP=$1
TASMOTA_URL=http://dice:40000/web/tasmota-lite.bin
DEVICE_ID=`curl -X POST http://$DEVICE_IP:8081/zeroconf/info -d '{"data": {}}' -H "Content-Type: application/json" | jq -r .data.deviceid`
wget $TASMOTA_URL
curl http://$DEVICE_IP:8081/zeroconf/ota_unlock -XPOST -d "{\"deviceid\":\"$DEVICE_ID\",\"data\":{}}"
curl http://$DEVICE_IP:8081/zeroconf/info -XPOST -d "{\"deviceid\":\"$DEVICE_ID\",\"data\":{}}"
SHA256=$(sha256sum tasmota-lite.bin | cut -f1 -d\ )
curl http://$DEVICE_IP:8081/zeroconf/ota_flash -X POST -d "{\"deviceid\": \"$DEVICE_ID\" , \"data\": {\"downloadUrl\": \"$TASMOTA_URL\" , \"sha256sum\": \"$SHA256\" } }" -vvv
rm tasmota-lite.bin
variable "hcloud_token" {}
terraform {
backend "s3" {
bucket = "hetzner-wireguard"
key = "wg/terraform.tfstate"
region = "eu-west-1"
profile = "private"
}
}
------ Network -----
----- /etc/systemd/network/10-internet.netdev -----
[NetDev]
Name=internet
Kind=bridge
MACAddress=${enp2s0-MAC}
[Bridge]
STP=false
------ /etc/systemd/network/20-enp2s0.network -----
#!/bin/bash
if ! hash speedtest-cli 2>/dev/null; then
wget -O /usr/local/bin/speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest_cli.py
chmod +x /usr/local/bin/speedtest-cli
fi
echo "------------------------------------" >> /var/log/speedtest.haskovo.log
echo `date -Iseconds` >> /var/log/speedtest.haskovo.log
/usr/local/bin/speedtest-cli --server 3176 >> /var/log/speedtest.haskovo.log
echo "------------------------------------" >> /var/log/speedtest.haskovo.log

Last updated: 2015-08-11

Searching for Files

Find images in a directory that don't have a DateTimeOriginal

exiftool -filename -filemodifydate -createdate -r -if '(not $datetimeoriginal) and $filetype eq "JPEG"' .

###Output photos that don't have datetimeoriginal to a CSV### Note this can take a long time if you have a lot of jpgs