Skip to content

Instantly share code, notes, and snippets.

Brian Enigma BrianEnigma

Block or report user

Report or block BrianEnigma

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:3e2878087fecf26b161976898aba80ff
$ ./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...
@BrianEnigma
BrianEnigma / static_ffmpeg_build.sh
Last active Apr 19, 2017
Build a 100% static version of a modern ffmpeg
View static_ffmpeg_build.sh
# This script now lives in the following repository: https://github.com/BrianEnigma/StaticBinaries
@BrianEnigma
BrianEnigma / auth_curl.sh
Created Aug 27, 2015
Test script to auth against an Elemental box
View auth_curl.sh
#!/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
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
### 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:
@BrianEnigma
BrianEnigma / getcomments.rb
Created Feb 6, 2014
Grab and locally cache comments from multiple WordPress blogs
View getcomments.rb
#!/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
@BrianEnigma
BrianEnigma / make_heatmap2.rb
Created Jan 26, 2014
Generate a kml heatmap from a csv input
View make_heatmap2.rb
#!/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>'
@BrianEnigma
BrianEnigma / .gitconfig
Last active Dec 31, 2015
gitconfig to show graphic lines in tig
View .gitconfig
[tig]
show-rev-graph = yes
line-graphics = no
You can’t perform that action at this time.