Skip to content

Instantly share code, notes, and snippets.

View aaronbuchanan's full-sized avatar

Aaron Buchanan aaronbuchanan

View GitHub Profile
$ gource -f -1280x720 --auto-skip-seconds 1 --bloom-multiplier 1.0 --bloom-intensity 1.2 -e 0.2 --background 000000 --background-image gource/bg.png --seconds-per-day .2 --highlight-all-users -o gource/out.ppm
$ ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i gource/out.ppm -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 gource/out.mp4
@implementation InterfaceController
{
SRWebSocket *_webSocket;
}
- (void)awakeWithContext:(id)context {
[super awakeWithContext:context];
}
- (IBAction)didOpen {
<smil><head><layout><root-layout width="2460px" height="1440px"/><region id="Image" left="0" top="0" width="2460px" height="1296px" fit="meet"/></layout></head><body><par dur="5000ms"><img src="20150815_140057.jpeg" region="Image"/></par></body></smil>
@aaronbuchanan
aaronbuchanan / top 100 domain occurrences by email.sql
Created September 1, 2015 03:43
MYSQL statement to parse the domain of an email and show the most common domains
select count(*) as occurrances, substring_index(email, "@", -1) as domain
from users
group by substring_index(email, "@", -1)
ORDER by occurrances DESC
limit 100;
@aaronbuchanan
aaronbuchanan / Gulpfile.js
Created October 19, 2015 17:50 — forked from ddprrt/Gulpfile.js
Gulp: Grabbing JavaScript assets from a CDN to add to your build pipeline
var gulp = require('gulp');
var source = require('vinyl-source-stream');
var request = require('request');
var merge = require('merge2');
var concat = require('gulp-concat');
var buffer = require('gulp-buffer');
/**
* 1. We request the latest jQuery version from the jQuery CDN. The
* request package allows for streaming. What we get in return
TheDevOpsFactory.com
===================
### Site Architecture & Request Flow
TheDevOpsFactory.com is composed of a statically compiled Single Page Application (SPA) front-end responding to / routes, and a .NET back-end that responds to /api and /login routes. The .NET application is a proxy to DVLUP apis which requires users to authenticate with MSA's Live.com login.
```sequence
Users->SPA: GET /
SPA-->Users: Render HTML Response
113542073_DwITk8Qx8Z76gZVo06bdXCwysqH2l0
@aaronbuchanan
aaronbuchanan / LICENSE.txt
Created February 23, 2017 00:17 — forked from jed/LICENSE.txt
generate random UUIDs
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE

Pastec.io is an OSS feature recognition project that provides an http interface to train and search for matches.

Setup on a Mac

Get pastec:

$ git clone git@github.com:Visu4link/pastec.git && cd pastec

Get dependencies:

@aaronbuchanan
aaronbuchanan / maxmind-geo-issue.md
Last active March 2, 2017 17:53
maxmind-geo-issue.md

Maxmind is returning this data:

{
  "location": {
    "accuracy_radius": 10,
    "latitude": 33.7866,
    "longitude": -118.2987,
    "metro_code": 803,
    "time_zone": "America/Los_Angeles"
 },