Me asking: https://groups.google.com/forum/#!topic/salt-users/wUCFRcbTexg https://forum.micropython.org/viewtopic.php?f=16&t=1652&start=20#p13968
mpfshell: https://github.com/wendlers/mpfshell/blob/master/mp/mpfexp.py
| #!/usr/bin/env python | |
| """ | |
| A slight adaptation of http://code.activestate.com/recipes/343386-wolfram-style-cellular-automata/ | |
| to be called on the command line like | |
| for r in $(seq 0 255); do echo $r; ./ca2.py -w 9 -h 10 -R $r; done | |
| and writing both an image and a textual representation | |
| """ | |
| """ | |
| CellularAutomata.py: Wolfram-style cellular automata in Python |
| #!/usr/bin/env python | |
| import ephem | |
| sp = ephem.Observer() | |
| sp.lon = 0 * ephem.degree | |
| sp.lat = -89.9 * ephem.degree | |
| sp.elevation = 0 | |
| moon = ephem.Moon() |
| install Visual Studio Code: | |
| cmd.run: | |
| - name: dpkg -i /tmp/code.deb | |
| - unless: dpkg -s code | |
| - require: | |
| - file: /tmp/code.deb | |
| #curl -I https://go.microsoft.com/fwlink/?LinkID=760868 | |
| #Location: https://vscode-update.azurewebsites.net/latest/linux-deb-x64/stable | |
| /tmp/code.deb: |
@see http://www.edesign.nl/examples/sunlightmap/index.php
@see http://www.edesign.nl/examples/sunlightmap/map.php?show_source
@see http://www.edesign.nl/examples/sunlightmap/sphere.class.php?show_source
@see http://www.edesign.nl/examples/sunlightmap/vec3.class.php?show_source
@see http://www.edesign.nl/2009/05/14/math-behind-a-world-sunlight-map/comment-page-1
| #!/usr/bin/env bash | |
| #/** | |
| # * A bash script to initialize a Nitrokey HSM in a basic way. | |
| # * Does nothing on a Nitrokey HSM that was ever initialized before. | |
| # * Its main purpose is to validate user input, especially the -so-pin. | |
| # * I wrote it to make me read the docu carefully. ;) | |
| # * | |
| # * What the script does: | |
| # * - uses readline with plain input, and not "enter twice and compare" | |
| # * -- so "secret input" are visible on the screen |
Two versions:
THAT moment when you realize that the webinterface of the access point in a Devolo dLAN® 1200+ Powerline gets updated via jQuery from a json file!
curl 'http://10.xxx.yyy.zzz/cgi-bin/htmlmgr?_file=getjson&service=hpdevices'
[{"loc":"local","type":"hp200","name":"dLAN 1200+ WiFi ac","mac":"F4:06:ab:ab:ab:ab","tx":"","rx":"","ustr":"teh remote"},{"loc":"remote","type":"hp200","name":"dLAN 1200+","mac":"F4:06:aa:bb:cc:dd","tx":"85.3125","rx":"254.625","ustr":"teh master"},{}]
| /** | |
| * Automated download of gas station prices | |
| * leveraging tankerkoenig.de API | |
| * | |
| * @author: Christian Prior-Mamulyan <cprior@gmail.com> | |
| * @license: MIT | |
| * | |
| * depends on config file containing apikey, ids_csv, output_spreadsheetId, output_sheetname | |
| */ |