Skip to content

Instantly share code, notes, and snippets.

View 1stvamp's full-sized avatar
:shipit:

Wes Mason 1stvamp

:shipit:
View GitHub Profile
@bloodearnest
bloodearnest / md5_check.py
Created August 4, 2014 16:32
md5_check.py
import os
import hashlib
class FilterModule(object):
def filters(self):
return {
'md5_check': self.md5_check,
}
wavy@shredder:~/canonical/dev/sso$ cat ~/bin/juju-sync-charm
#!/bin/bash
if [ -z "$1" ]
then
echo "You must provide a unit name" >&2
exit 1
fi
UNIT=$1
DIR=${2:-.}
anonymous
anonymous / mailFilters.xml
Created November 13, 2014 18:09
<?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:apps='http://schemas.google.com/apps/2006'>
<title>Mail Filters</title>
<id>tag:mail.google.com,2008:filters:1379887346141,1380221719440,1382518874213,1382518894571,1382977508777,1382977521425,1383153631839,1385167025659,1394822320113,1394825526150,1395186917683,1404335447263,1414438371526,1414438407375,1414438455629,1414438507193,1414438537486</id>
<updated>2014-11-13T18:03:49Z</updated>
<author>
<name>Your Name</name>
<email>your.name@canonical.com</email>
</author>
<entry>
<category term='filter'></category>
@caius
caius / gist:ef463ad94312988d7381
Created December 2, 2014 12:14
Table flipping exceptions in Ruby
A = Class.new(Exception)
# => A
A_(╯°□°)╯︵┻━┻ = Class.new(Exception)
# => A_(╯°□°)╯︵┻━┻
A_(╯°□°)╯︵┻━┻.new(Marshal.load("\x04\bI\"\flbs\xCA\x8E\xC9\xAF\x06:\x06ET"))
# => #<A_(╯°□°)╯︵┻━┻: lbsʎɯ>
@RobertAudi
RobertAudi / gist:487163
Created July 23, 2010 08:04
Recent Items Stack
defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }'
@bassdread
bassdread / Version Display
Created February 24, 2011 09:48
Display branch and version at your prompt
# Show current git branch or SVN subfolder in prompt.
GREEN="\[\033[0;32m\]"
LIGHT_GREEN="\[\033[1;32m\]"
GRAY="\[\033[1;30m\]"
LIGHT_BLUE="\[\033[1;34m\]"
LIGHT_GRAY="\[\033[0;37m\]"
COLOR_OFF="\[\e[0m\]"
function prompt_func() {
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
@1stvamp
1stvamp / gplus_unf.css
Last active October 13, 2015 13:27
User stylesheet to make Google+ UI usable again by removing excess dross
div.Nj.mu.a-f-e.bR > div.ZNa.aS
{
display: none;
}
div[componentid="13"], div[componentid="4"], div[componentid="14"], div[componentid="34"], div[componentid="33"], div[componentid="56"], div[componentid="6"], div[componentid="5"], div[componentid="7"], div[componentid="76"],
div[componentid="81"]
{
display: none;
}
@1stvamp
1stvamp / bootstrap.py
Last active December 12, 2015 10:49
zc.buildout 1.x bootstrap that uses the version of zc.buildout from your buildout.cfg, if set
##############################################################################
#
# Copyright (c) 2006 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
@jamestait
jamestait / applist.py
Last active January 30, 2017 13:27 — forked from rschroll/applist.py
A script to browse the Ubuntu Touch apps
#!/usr/bin/env python
# A basic Python script to let you browse the apps available in the
# Ubuntu Touch App store. Run it and your web browser should open.
#
# Copyright 2014 Robert Schroll
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
@benatkin
benatkin / fabfile.py
Last active March 16, 2017 18:01
mining dogecoin in the cloud
from fabric.api import env, task, run, sudo, cd, local
from fabric.decorators import with_settings
from fabric.operations import put
env.user = 'ec2-user'
env.hosts = [
'ec2-your-address-1.us-west-2.compute.amazonaws.com',
'ec2-your-address-2.us-west-2.compute.amazonaws.com',
'ec2-your-address-3.us-west-2.compute.amazonaws.com',
'ec2-your-address-4.us-west-2.compute.amazonaws.com',