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
# Quick and dirty Apple HTTP Live Stream ripping to MP4 | |
# John_K 9/9/2014 | |
# First, grab the mov URL from the website using Web Inspector | |
$ curl http://p.events-delivery.apple.com.edgesuite.net/14pijnadfpvkjnfvpijhabdfvpijbadfv09/refs/14oijhbaefvohi9_sl_ref.mov | |
?moov?rmra?rmdazrdrfurl fhttp://p.events-delivery.apple.com.edgesuite.net/14pijnadfpvkjnfvpijhabdfvpijbadfv09/m3u8/sl_mvp.m3u8rmdr | |
# Then grab the playlist that's referred to in it | |
$ curl http://p.events-delivery.apple.com.edgesuite.net/14pijnadfpvkjnfvpijhabdfvpijbadfv09/m3u8/sl_mvp.m3u8 | |
#EXTM3U |
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
# | |
# setup ssh-agent | |
# | |
# set environment variables if user's agent already exists | |
SSH_AUTH_SOCK=$(ls -l /tmp/ssh-*/agent.* 2> /dev/null | grep $(whoami) | awk '{print $9}') | |
SSH_AGENT_PID=$(echo $SSH_AUTH_SOCK | cut -d. -f2) | |
[ -n "$SSH_AUTH_SOCK" ] && export SSH_AUTH_SOCK | |
[ -n "$SSH_AGENT_PID" ] && export SSH_AGENT_PID |
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
#generate ECDSA key using secp256r1 (or as openssl knows it, prime256v1) | |
#heed warnings about this curve: http://safecurves.cr.yp.to/ | |
openssl ecparam -out kelley.ca_ec_key.pem -genkey -name prime256v1 | |
#generate your CSR | |
#note: Comodo PositiveSSL will issue the cert both with and without www. automatically if you prepend www to your CN | |
openssl req -new -key kelley.ca_ec_key.pem-nodes -out www_kelley_ca.csr -keyout www_kelley_ca.key -subj "/C=US/ST=California/L=San Francisco/O=John Kelley/CN=www.kelley.ca" | |
#submit your CSR and follow instructions |
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
while true; do VAR=`pmset -g batt|tr -d "'%;"`; if [ `echo $VAR | awk '{print $4}'` == 'Battery' ]; then if [ `echo $VAR|awk '{print $7}'` -lt 100 ]; then echo "Killing caffeinate"; pkill caffeinate; fi; fi; sleep 2; done |
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
git --git-dir=../<some_other_repo>/.git \ | |
format-patch -k -1 --stdout <commit SHA> | \ | |
git am -3 -k |
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
drive_add 0:1:1 file=/dev/sdb,format=raw,if=none,id=newdisk | |
device_add virtio-blk-pci,drive=newdisk |
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
[root@beta ~]# ./pac1720_info.sh | |
ZED_5V 5.1562 V [2100] +8.9062 mV [0e4] +296.88 mA | |
BETA_5V 5.1562 V [2100] +2.9297 mV [04b] +97.66 mA | |
HDN 3.2812 V [1500] -0.0391 mV [fff] -1.30 mA | |
PCIE_N_V 3.2812 V [1500] -0.0391 mV [fff] -1.30 mA | |
HDS 3.2812 V [1500] +0.0000 mV [000] +0.00 mA | |
PCIE_S_V 3.2812 V [1500] +0.0000 mV [000] +0.00 mA | |
RFW_V 3.2422 V [14c0] +0.0000 mV [000] +0.00 mA | |
IOW_V 3.2812 V [1500] +0.0000 mV [000] +0.00 mA | |
RFE_V 3.2812 V [1500] +0.0000 mV [000] +0.00 mA |
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
python icsp_picid.py | |
b'Z' | |
b'L' | |
b'#3DAF3DAF' | |
b'^' | |
['0x3fff', '0x3fff'] | |
b'#E8B45465' | |
b'Z' |
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
# python gpio.py | |
[20a0] MXN_PG I1+1^ [21a0] NE_PG I1+1^ [22a0] IOE_PG I1+1^ [23a0] IOW_PG I1+1^ | |
[20a1] MXN_EN O1+1^ [21a1] NE_EN O1+1^ [22a1] IOE_EN O1+1^ [23a1] IOW_EN O1+1^ | |
[20a2] MCN_PG I1+1^ [21a2] NN_PG I1+1^ [22a2] RFE_PG I1+1^ [23a2] RFW_PG I1+1^ | |
[20a3] MCN_EN O1+1^ [21a3] NN_EN O1+1^ [22a3] RFE_EN O1+1^ [23a3] RFW_EN O1+1^ | |
[20a4] VIO_PG I1+1^ [21a4] NW_PG I1+1^ [22a4] B_#RST O0+0^ [23a4] A_#RST O1+1^ | |
[20a5] VIO_EN O1+1^ [21a5] NW_EN O1+1^ [22a5] u22#a5 I1+0^ [23a5] u23#a5 I1+0^ | |
[20a6] MCS_PG I1+1^ [21a6] WW_PG I1+1^ [22a6] CSE_EN O0+0^ [23a6] u23#a6 I1+0^ | |
[20a7] MCS_EN O1+1^ [21a7] WW_EN O1+1^ [22a7] CD' I0+0^ [23a7] u23#a7 I1+0^ |
OlderNewer