Skip to content

Instantly share code, notes, and snippets.

View 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 Feb 11, 2017
Simple event dispatcher in python. Inspired by Symfony/EventDispatcher component.
View dispatcher.py
from collections import OrderedDict
class Event(object):
def __init__(self):
self.__name = None
def setName(self, name):
self.__name = name
View gist:f19ba37ccf538340d9364c6b3959597d
arn:aws:iam::627731813305:policy/many-denies
# PowerUserAccess
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"NotAction": "iam:*",
View jq examples
[{
"name": "wik.is",
"id": 561968,
"address": {
"city": "new york",
"state": "NY"
}
},{
"name": "bob.com",
"id": 50000,
View keybase.md

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:

View gist:3e2d61fb923d2319ec2f
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 Aug 29, 2015
tracking.py fixes and environment changes
View gist:470f368760f17e0261f3
#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