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
#!/bin/sh | |
if [ -z "$2" ] | |
then | |
wmctrl -x -a "$1" || exec $1 & | |
else | |
wmctrl -x -a "$1" || exec $2 & | |
fi |
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
def asciionly(input): | |
"""Return only us-ascii characters from input string""" | |
return ''.join([x for x in input if ord(x) < 128]) |
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 | |
"""quotewrap | |
Word-wrap or apply quotation marks to input | |
Accepts either data on stdin or a list of filenames to read | |
Released into public domain, originally written by Nick Groenen <zoni@zoni.nl> | |
""" |
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
[general] | |
accounts = Gmail | |
maxsyncaccounts = 3 | |
[Account Gmail] | |
localrepository = Local | |
remoterepository = Remote | |
[Repository Local] | |
type = Maildir |
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
#/bin/sh | |
# Turn on debugging, makes it clearer what is happening | |
set -x | |
# I don't want the overlay bound to Super_L, it messes with other shortcuts | |
gsettings set org.gnome.mutter overlay-key '' | |
# That huge 24-pixel notification area sucks. Whoever thought that was a good idea.... | |
sudo sed -i -e 's/SOURCE_ICON_SIZE:\ 48,/SOURCE_ICON_SIZE:\ 24,/g' /usr/share/gnome-shell/js/ui/messageTray.js |
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 errbot.backends.test import * | |
from os.path import dirname, abspath | |
pluginpath = dirname(abspath(__file__)) + "/../" | |
class TestCommands(FullStackTest): | |
def setUp(self): | |
from errbot import holder | |
holder.plugin_manager.updatePluginPlaces([pluginpath]) |
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
Exec { path => '/usr/bin:/bin:/usr/sbin:/sbin' } | |
package { "git": | |
ensure => present, | |
} | |
vcsrepo { "/usr/share/err/repo": | |
ensure => latest, | |
provider => git, | |
source => "git://github.com/gbin/err.git", |
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
module Jekyll | |
class JekyllVersionTag < Liquid::Tag | |
def initialize(tag_name, text, tokens) | |
super | |
@text = text | |
end | |
def render(context) | |
Jekyll::VERSION |
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
flask |
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 | |
# -*- coding: utf-8 -*- | |
""" | |
Ansible module to manage iptables rules | |
Written by Nick Groenen <zoni@zoni.nl>. If you get your hands on a | |
copy of this code, please feel free to do with it whatever you like. | |
""" |
OlderNewer