Skip to content

Instantly share code, notes, and snippets.

Poisoning pigeons in the park

Kit Sunde kitsunde

Poisoning pigeons in the park
View GitHub Profile
kitsunde /
Last active Sep 8, 2017
<video> doesn't get muted
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'video',
attributeBindings: ['_muted:muted', 'playsinline', 'autoplay', 'src', 'controls'],
_muted: Ember.computed(function(){
return true;
muted: true,
playsinline: true,
import Ember from 'ember';
export default Ember.Component.extend({
actions: {
View gist:8c43bceda4a64cdfaceba5d38b85b2e1
### Keybase proof
I hereby claim:
* I am kitsunde on github.
* I am kitsunde ( on keybase.
* I have a public key ASDNjRB3ZAPxi1xab21wLv786J5Q_dSF2n3qWeNC0vUtago
To claim this, I am signing this object:
kitsunde /
Created Dec 28, 2015
Terraform AWS provision.
# We control the existance of the build-server by setting this to 0 or 1
variable "build_servers" {
provider "aws" {
access_key = "<aws_key>"
secret_key = "<aws_secret>"
region = "us-east-1"
class IsAuthenticated(object):
def __init__(self, origin):
self.origin = origin
def __nonzero__(self):
raise Exception("lol noob")
def __call__(self, *args, **kwargs):
return self.origin._noob_is_authenticated()
View gist:aa1dc7cb5fbb8d41751a
(::) failed steps (::)
TypeError: Cannot use 'in' operator to search for 'compareDocumentPosition' in null
at /Users/kitsunde/Development/flower/src/like/node_modules/zombie/node_modules/jsdom/node_modules/nwmatcher/src/nwmatcher-noqsa.js:306:43
at module.exports (/Users/kitsunde/Development/flower/src/like/node_modules/zombie/node_modules/jsdom/node_modules/nwmatcher/src/nwmatcher-noqsa.js:37:7)
at addNwmatcher (/Users/kitsunde/Development/flower/src/like/node_modules/zombie/node_modules/jsdom/lib/jsdom/living/selectors.js:27:27)
at HTMLDocument.<anonymous> (/Users/kitsunde/Development/flower/src/like/node_modules/zombie/node_modules/jsdom/lib/jsdom/living/selectors.js:8:14)
at HTMLDocument.querySelector (/Users/kitsunde/Development/flower/src/like/node_modules/zombie/node_modules/jsdom/lib/jsdom/utils.js:168:45)
at World.isLiked (/Users/kitsunde/Development/flower/src/like/features/support/world.js:14:39)
at World.<anonymous> (/Users/kitsunde/Development/flower/src/like/features/step_defi
View gist:0856f280735f74cb64ba
init: function(elevators, floors) {
passengersGoingDown = new Set();
passengersGoingUp = new Set();
idleElevators = [];
function provisionElevatorOrAdd(queue){
return function(){
kitsunde / pre-commit
Created Aug 25, 2014
ESLint lint pre_commit hook
View pre-commit
#!/usr/bin/env node
var exec = require('child_process').exec;
var fs = require('fs');
var eslint = require('../node_modules/eslint/lib/cli');
var files;
var child = exec("git diff-index --cached --name-only HEAD", function(error, stdout, stderr){
files = stdout.split('\n').filter(function(i){
View gist:e1875a1a1e1e71e75f33
#!/usr/bin/perl -w
use strict;
use Socket;
use IO::Handle;
if($#ARGV+1 != 2){
print "$#ARGV $0 Remote_IP Remote_Port \n";
exit 1;
kitsunde / foo.txt
Created Aug 16, 2013
Shows repeated calls to repos not being cached.
View foo.txt
You can’t perform that action at this time.