Reduce connection counts to MySQL by using an array to get many values at once (assuming they’re single ‘word’ values)
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….
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 […]
Some alternative bash things…. ( avoiding unneecessary use of cat / awk / grep …. )