Skip to content

Instantly share code, notes, and snippets.

View sansb's full-sized avatar

Sean Bloomfield sansb

  • San Francisco, CA
View GitHub Profile
2018/08/27 18:14:34 [INFO] Terraform version: 0.11.8
2018/08/27 18:14:34 [INFO] Go runtime version: go1.10.3
2018/08/27 18:14:34 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.11.8/bin/terraform", "apply"}
2018/08/27 18:14:34 [DEBUG] Attempting to open CLI config file: /Users/amitree/.terraformrc
2018/08/27 18:14:34 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/08/27 18:14:34 [INFO] CLI command args: []string{"apply"}
2018/08/27 18:14:34 [INFO] command: empty terraform config, returning nil
2018/08/27 18:14:34 [DEBUG] command: no data state file found for backend config
2018/08/27 18:14:34 [DEBUG] New state was assigned lineage "a7d9e27f-4dde-215e-81ed-8df862384979"
2018/08/27 18:14:34 [INFO] command: backend initialized: <nil>

Keybase proof

I hereby claim:

To claim this, I am signing this object:

git log --author="sean" --numstat --since '6 months' --pretty=tformat: | grep '\.py$' | awk '{print $1}' | paste -sd+ - | bc
@sansb
sansb / boarders.json
Created August 10, 2015 05:51
boarder-scraper sample output
[
{
"username": "Scrumptious Justice",
"joined_date": "Mon Dec 14, 2009 1:48 pm",
"posts_per_day": 32.19,
"post_count": 66443,
"username_html": "<span style=\"color: #9900CC; font-weight: bold;\">Scrumptious Justice</span>",
"avatar_html": "<img src=\"http://farm3.staticflickr.com/2596/4187620553_998474a46b_t.jpg\" width=\"86\" height=\"94\" alt=\"User avatar\">",
"avatar_url": "http://farm3.staticflickr.com/2596/4187620553_998474a46b_t.jpg",
"id": 2
@sansb
sansb / gist:9d308a80596af7451ed3
Created August 4, 2015 18:13
vanilla rds mysql vars
Variable_name Value
auto_increment_increment 1
auto_increment_offset 1
autocommit ON
automatic_sp_privileges ON
back_log 63
basedir /rdsdbbin/mysql/
big_tables OFF
bind_address *
binlog_cache_size 32768
@sansb
sansb / draggable.js
Created March 24, 2014 21:56
dont remember if this works, just putting it here for now
angular.module('draggable').directive('draggable', function(){
return {
restrict: 'C',
link: function(scope, element, attrs){
//todo:
//register a "done" function
//interaction with containing element
var $element = $(element);
var oldPos = {
position: $element.css('position'),
@sansb
sansb / videojs.mousebehavior.js
Created July 31, 2013 14:42
Plugin for making videojs controls hide when user is "idle"
(function(){
function timeUpdate(){
if(window.mouseIdleTime !== undefined &&
window.mouseIdleTime > 2 &&
!this.idleMouseHide.mouseIdleActive){
this.trigger('mouseidle')
}
if(this.idleMouseHide.mouseIdleActive &&
window.mouseIdleTime !== undefined &&
@sansb
sansb / videojs.mousebehavior.js
Created July 31, 2013 14:42
Plugin for making videojs controls hide when user is "idle"
(function(){
function timeUpdate(){
if(window.mouseIdleTime !== undefined &&
window.mouseIdleTime > 2 &&
!this.idleMouseHide.mouseIdleActive){
this.trigger('mouseidle')
}
if(this.idleMouseHide.mouseIdleActive &&
window.mouseIdleTime !== undefined &&
@sansb
sansb / windows8.1.html
Last active January 10, 2021 05:39
microsoft windows 8.1 preview
<html>
<head>
<meta "BULLSHIT">
<meta "HORSE SHIT">
<title>WINAMP is now playing _-_Pink-_-Floyd_-_The-_-Wall_-_</title>
<script>
//you shouldnt use semicolons in here because
//i'll fuck you up
var windows_kernel_bootstrapping_cockring = "NUTS"
for(var i=1; i<800; i=i*3){
import random
class Announcement(object):
def __init__(self, article):
self.grammars['article'] = [article]
start = ['"%(article)s" is a %(hyperbole)s, %(name)s!']
grammars = {