This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import hashlib | |
class FilterModule(object): | |
def filters(self): | |
return { | |
'md5_check': self.md5_check, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:-.} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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ʎɯ> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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\]\$ ' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################## | |
# | |
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', |
OlderNewer