I keep forgetting the syntax for these two things, so there’s a chance writing it here will help me remember.
Possibly of use/relevance for: elasticsearch or Debezium….
Continue reading “curl, jq and slightly dynamic input to a service”
Linux, PHP, geeky stuff … boring man.
I keep forgetting the syntax for these two things, so there’s a chance writing it here will help me remember.
Possibly of use/relevance for: elasticsearch or Debezium….
Continue reading “curl, jq and slightly dynamic input to a service”
Arbitrary tweets made by TheGingerDog up to 04 March 2018
Continue reading “Automated twitter compilation up to 04 March 2018”
Arbitrary tweets made by TheGingerDog up to 25 February 2018
Continue reading “Automated twitter compilation up to 25 February 2018”
Arbitrary tweets made by TheGingerDog up to 18 February 2018
Continue reading “Automated twitter compilation up to 18 February 2018”
Arbitrary tweets made by TheGingerDog up to 11 February 2018
Continue reading “Automated twitter compilation up to 11 February 2018”
Arbitrary tweets made by TheGingerDog up to 04 February 2018
Continue reading “Automated twitter compilation up to 04 February 2018”
Arbitrary tweets made by TheGingerDog up to 28 January 2018
Continue reading “Automated twitter compilation up to 28 January 2018”
This might work to configure monit on Debian (Jessie) to monitor postsrsd.
check process postsrsd matching "/usr/sbin/postsrsd" group postsrsd start program = "/etc/init.d/postsrsd start" stop program = "/etc/init.d/postsrsd stop" if failed host localhost port 10001 then restart if failed host localhost port 10002 then restart
Arbitrary tweets made by TheGingerDog up to 21 January 2018
Continue reading “Automated twitter compilation up to 21 January 2018”
I have a TP-Link HS110 plug (probably identical to the HS100 … but I thought being able to query it through the app to find out energy usage would be neat …).
Anyway, it originally didn’t seem to let me schedule it through the app, so I dug around and wrote a crap shell script I can prod via cron.
Usage examples:
1. tplink.sh -u my@email.com -p mypassword -o off -> turns the first device found off.
2. tplink.sh -u my@email.com -p mypassword -o on -> turns the first device found on.
3. tplink.sh -u my@email.com -p mypassword -d TpLinkDeviceId -o on -> now for a specific device.
4. tplink.sh -u …. -p …. -d “?” -> dumps device list output …
5. tplink.sh -t tpLinktoken -d DeviceId -o on|off …