Skip to content

Instantly share code, notes, and snippets.

@seren
seren / obscure.sh
Created November 30, 2017 20:49
obscure.sh
#!/bin/bash
# obscure provides a command that will obscure any text passed in via standard input
#
# obscure replaces all the text passed into standard input, save the first five characters,
# with random symbols by default. It was developed as a way to show sensitive information
# (auth tokens, etc.) to the audience during presentations. It lets you prove, e.g., that
# an environment variable is set without disclosing the full contents of the variable.
#
# Example usage: $ echo $MYVAR | obscure
@seren
seren / dispatcher.py
Created February 11, 2017 22:49
Simple event dispatcher in python. Inspired by Symfony/EventDispatcher component.
from collections import OrderedDict
class Event(object):
def __init__(self):
self.__name = None
def setName(self, name):
self.__name = name
arn:aws:iam::627731813305:policy/many-denies
# PowerUserAccess
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"NotAction": "iam:*",
[{
"name": "wik.is",
"id": 561968,
"address": {
"city": "new york",
"state": "NY"
}
},{
"name": "bob.com",
"id": 50000,

Keybase proof

I hereby claim:

  • I am seren on github.
  • I am seren (https://keybase.io/seren) on keybase.
  • I have a public key whose fingerprint is 4A32 0AB1 128D CCA3 0A18 6440 D466 E9E6 996D E102

To claim this, I am signing this object:

@seren
seren / gist:3e2d61fb923d2319ec2f
Created October 4, 2014 21:11
render.py fixes
Commands:
# may or may not be necessary
brew install libtiff libjpeg webp little-cms2
# may need sudo in front
pip install pyopengl
pip install Pillow
@seren
seren / gist:470f368760f17e0261f3
Last active August 29, 2015 14:07
tracking.py fixes and environment changes
#For OS X:
# Install homebrew (http://brew.sh/) with this command:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Then install opencv:
brew update
brew upgrade
brew install liblo