- Enable gpio-ir on GPIO port 18
mount -o remount,rw /flash echo "dtoverlay=gpio-ir,gpio_pin=18" >> /flash/config.txt
- Get codes sent by IR remote
ir-keytable -p all -t
- Create keymap in /storage/.config/rc_keymaps/
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
{ | |
"openapi" : "3.0.1", | |
"info" : { | |
"title" : "FormData Test Api Documentation", | |
"description" : "Minimal OpenAPI spec file to showcase duplicated params for formData.", | |
"version" : "0.0.1" | |
}, | |
"servers" : [ { | |
"url" : "/backend/rest" | |
} ], |
I hereby claim:
- I am alexrashed on github.
- I am alexrashed (https://keybase.io/alexrashed) on keybase.
- I have a public key ASB2MNW4Q_qKEqrtT-uZx-KIiwIN_9sS1rFh1_ALI4C_xgo
To claim this, I am signing this object:
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 | |
convert () { | |
drawiofile=$1 | |
file=${drawiofile::-7} | |
pdffile="${file}.pdf" | |
echo "Updating $file" | |
curl --data-urlencode "format=pdf" --data-urlencode "xml@$drawiofile" --output $pdffile https:\//exp.draw.io/ImageExport4/export | |
pdfcrop $pdffile $pdffile | |
} |
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
from urlwatch import filters | |
import json | |
class JsonFilter(filters.FilterBase): | |
__kind__ = 'json' | |
def filter(self, data, subfilter=None): | |
self._no_subfilters(subfilter) | |
data = json.loads(data) | |
return json.dumps(data, sort_keys=True) |
NewerOlder