This file contains hidden or 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/sh | |
| # see lircd.conf here: https://gist.github.com/jlongman/a7a56241506681083d9b939828716dd6 | |
| irsend SEND_ONCE seiki KEY_TV | |
| sleep 5 | |
| irsend SEND_ONCE seiki KEY_INPUT_SOURCE | |
| irsend SEND_ONCE seiki KEY_UP | |
| irsend SEND_ONCE seiki KEY_UP | |
| irsend SEND_ONCE seiki KEY_UP | |
| irsend SEND_ONCE seiki KEY_UP | |
| irsend SEND_ONCE seiki KEY_OK |
This file contains hidden or 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
| count = 0 | |
| while (count < 0x10000): | |
| formatted = format(count, '04X') | |
| print " KEY_{0} 0x{0}".format(formatted) | |
| count += 1 |
This file contains hidden or 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
| begin | |
| remote = element | |
| prog = irexec | |
| button = KEY_PLAYPAUSE | |
| config = /bin/sh /home/pi/chromecast-button/pause.sh | |
| config = /bin/sh /home/pi/chromecast-button/play.sh | |
| end | |
| begin | |
| remote = element | |
| prog = irexec |
This file contains hidden or 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
| # sample data: | |
| echo '{"count": {}, "block": | |
| { | |
| "67.215.237.26": { | |
| "paths": { | |
| "/js/compiled.js": 1, | |
| "/css/global-compiled.css": 1, | |
| "/js/pace.min.js": 1 | |
| }, | |
| "max_req_per_min": 1, |
This file contains hidden or 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
| #EXTM3U | |
| #EXT-X-VERSION:3 | |
| #EXT-X-TARGETDURATION:2 | |
| #EXT-X-MEDIA-SEQUENCE:10395 | |
| #EXTINF:1.0, | |
| fake_10395.ts | |
| #EXTINF:1.0, | |
| fake_10396.ts | |
| #EXTINF:1.0, | |
| fake_10397.ts |
This file contains hidden or 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
| /** | |
| * Created by jonathan.longman on 2017-06-15. | |
| */ | |
| var list = [ | |
| "www.foo.com", | |
| "bar.com" | |
| ]; | |
| // searches as substring now | |
| function FindProxyForURL(url, host) { | |
| for (var i = list.length - 1; i >= 0; i--) { |
This file contains hidden or 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
| #!/usr/bin/env python | |
| from mitmproxy import ctx | |
| # an intermittent 404 for .ts files - HLS m3u8 streaming chunks | |
| def start(): | |
| return Foo() | |
| class Foo: | |
| MUCHO = 0 |
This file contains hidden or 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/sh | |
| # Output the HostName value from ~/.ssh/config | |
| # SOURCE this, don't execute (e.g. "source ssh_host.sh" or ". ssh_host.sh") | |
| # echos $@ if no HostName present | |
| # Useful for shell substitution | |
| # e.g. iperf -u -p 6970 -c $(ssh_host dev_backend) | |
| ssh_host() { | |
| ssh -G "$@" | grep -i '^hostname ' | awk '{print $2}' | |
| } |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # Convert a data uri file into the data part | |
| # | |
| # Usage: daturi.py infile | |
| # | |
| # Copy a response from Chrome | |
| # pbaste > foo | |
| # daturi.py foo | |
| # creates foo.mimetype |
This file contains hidden or 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
| Verifying my Blockstack ID is secured with the address 1NgV5rvZJa6w1cEjEdXkokfS4BAWJv92Bc https://explorer.blockstack.org/address/1NgV5rvZJa6w1cEjEdXkokfS4BAWJv92Bc |