Skip to content

Instantly share code, notes, and snippets.

View cpietsch's full-sized avatar
💭
in the void

Christopher Pietsch cpietsch

💭
in the void
View GitHub Profile
@cpietsch
cpietsch / README.md
Last active May 29, 2016 17:59
Local Variables 2
@cpietsch
cpietsch / .block
Last active April 25, 2017 13:30
Geo Scatterplot Transitions
license: mit

Keybase proof

I hereby claim:

  • I am cpietsch on github.
  • I am chrispie (https://keybase.io/chrispie) on keybase.
  • I have a public key ASA1z5V4JBxq8UzVGSXn8oqk_wln55LjyjfFZEUtiEz2IAo

To claim this, I am signing this object:

@cpietsch
cpietsch / download.js
Created December 19, 2018 21:42
nodejs script to download images from a csv file
var fsPromises = require('fs').promises
var dsv = require('d3-dsv');
var download = require('download');
async function all(){
let data = dsv.csvParse(await fsPromises.readFile("data.csv", { encoding: "utf8" }))
for(let entry of data) {
console.log(entry.url, entry.id)
Q: What is human life expectancy in the United States?
A: Human life expectancy in the United States is 78 years.
Q: Who was president of the United States in 1955?
A: Dwight D. Eisenhower was president of the United States in 1955.
Q: What party did he belong to?
A: He belonged to the Republican Party.
Q: Who was president of the United States before George W. Bush?
[
{
"id":"8447d084.7e9fb",
"type":"tab",
"label":"Flow 1",
"disabled":false,
"info":""
},
{
"id":"5ab61f98.c68d3",
Serial
- https://openwrt.org/toh/tp-link/re450#serial
- https://forum.openwrt.org/t/tp-link-re450-brick-after-trying-to-return-the-original-firmware/10563/13
- https://forum.openwrt.org/t/help-please-110-re450-bricked/7641/12
Tftp
- https://forum.freifunk.net/t/router-recovery-tftp-pushbutton-und-ttl-serial-recovery/8691
- https://community.tp-link.com/en/home/forum/topic/81462?page=1
- https://mikepalmer.net/tp-link-archer-c7-ac1750-v2-tftp-recovery/
@cpietsch
cpietsch / shutdown.sh
Created November 28, 2021 14:57
shutdown linux when amdgpu reaches junction temperature
#!/bin/sh
maxTemp="+64"
while true; do
currTemp=$(sensors | awk '/junction/ {print $2}' | cut -d"." -f1)
if [[ $currTemp > $maxTemp ]]; then
shutdown now
echo "too high"
fi
@cpietsch
cpietsch / steps.sh
Created May 17, 2022 18:43
compile jq for arm64 (raspberry pi)
wget https://github.com/stedolan/jq/releases/download/jq-1.6/jq-1.6.tar.gz
tar xvfz jq-1.6.tar.gz
cd jq-1.6/
autoreconf -vfi
modules/oniguruma
autoreconf -vfi
cd ../..
./configure --with-oniguruma=builtin
make -j8
sudo make install
@cpietsch
cpietsch / command
Created May 17, 2022 19:19
e3dc post history to firebase
jq -ncM "$(cat ./input.jq)" | ./e3dc -splitrequests | jq -cM "$(cat ./output.jq)" | jq '.result.DB_HISTORY_DATA + {"date":{".sv": "timestamp"}}' | curl -X POST -d @- https://XXXX.europe-west1.firebasedatabase.app/history.json
sources:
- https://knx-user-forum.de/forum/%C3%B6ffentlicher-bereich/knx-eib-forum/diy-do-it-yourself/1614158-neue-library-f%C3%BCr-rscp-kommunikation-mit-e3dc-speicher-inkl-kommandozeilen-utility