View process.sh
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 | |
INFILE=biomes.mp4 | |
# Check that infile exists | |
stat $INFILE >/dev/null 2>&1 || { echo "Expect $INFILE in the current folder. Aborting." >&2; exit 1; } | |
# Check that ffmpeg exists | |
command -v ffmpeg >/dev/null 2>&1 || { echo "I require ffmpeg but it's not installed. Aborting." >&2; exit 1; } |
View gist:3e2878087fecf26b161976898aba80ff
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
$ ./videorekognize.rb --extract-period 60 ~/Desktop/Sintel.2010.1080p.mkv | |
Extracting video frames... | |
Extracted 16 video frames | |
Cleaning up stale S3 objects... | |
Uploading img00001.png... | |
Uploading img00002.png... | |
Uploading img00003.png... | |
Uploading img00004.png... | |
Uploading img00005.png... | |
Uploading img00006.png... |
View static_ffmpeg_build.sh
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
# This script now lives in the following repository: https://github.com/BrianEnigma/StaticBinaries |
View auth_curl.sh
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 | |
#URL=/live_events?filter=archived | |
URL=/live_events | |
USER=admin | |
KEY=1acpJN7oEDn3BDDYhQ | |
NOW=`date +%s` | |
EXPIRES=$(expr $NOW + 30) | |
SUBHASH=`echo -n "$URL$USER$EXPIRES" | md5` | |
HASH=`echo -n "$KEY$SUBHASH" | md5` |
View gist:2cb7e5ba53f0ac35d70c
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
rotate_extrude($fn=100) | |
{ | |
difference() | |
{ | |
polygon(points = [ | |
[0,0], // origin | |
[15,0], // base radius | |
[13,6], // bottom lip | |
[30,34], // top lip | |
[30,40], // top radius |
View gist:c021a6d9cb4ef1578c9f
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
### Keybase proof | |
I hereby claim: | |
* I am BrianEnigma on github. | |
* I am brianenigma (https://keybase.io/brianenigma) on keybase. | |
* I have a public key whose fingerprint is 489B 9421 9947 C5C3 48A8 7601 E1EB D30D 8174 A623 | |
To claim this, I am signing this object: |
View getcomments.rb
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
#!/usr/bin/ruby | |
URL_LIST = [ | |
'site1', 'http://example.com/comments/feed/', | |
'site2', 'http://example.com/comments/feed/', | |
'site3', 'http://example.com/comments/feed/', | |
] | |
position = 0 | |
while position < URL_LIST.length |
View make_heatmap2.rb
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
#!/usr/bin/ruby | |
require 'csv' | |
HEADER = '<?xml version="1.0" encoding="UTF-8"?> | |
<kml xmlns="http://www.opengis.net/kml/2.2"> | |
<Document> | |
<name>Puzzled Pint Heat Map</name> | |
' | |
FOOTER = ' </Document> | |
</kml>' |
View .gitconfig
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
[tig] | |
show-rev-graph = yes | |
line-graphics = no |