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/bash | |
# | |
# usage: ./mkchangelog | |
# | |
# author: Marek Wywiał <[email protected]> | |
# | |
# description: Script creates CHANGELOG.txt according to current git tags. Also | |
# supports commits without tags (git log HEAD...first_tag). | |
# Lines starting with 'Merge' will be skipped. | |
# Remember to add 'include CHANGELOG.txt' into your MANIFEST.in if |
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
[gui] | |
editor = gvim | |
[color] | |
ui = auto | |
diff = auto | |
branch = always | |
status = off | |
[color "branch"] | |
current = yellow reverse | |
local = yellow |
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
<advancedsettings> | |
<network> | |
<cachemembuffersize>20971520</cachemembuffersize> | |
<disableipv6>true</disableipv6> | |
</network> | |
<fanartres>720</fanartres> | |
<imageres>540</imageres> | |
<gputempcommand>echo "$(/opt/vc/bin/vcgencmd measure_temp | grep -o "[0-9]\{2\}") C"</gputempcommand> | |
<cputempcommand>echo "$(/opt/vc/bin/vcgencmd measure_temp | grep -o "[0-9]\{2\}") C"</cputempcommand> | |
<lookandfeel> |
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/bash | |
env PULSE_LATENCY_MSEC=30 LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so /usr/bin/skype |
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/bash | |
# | |
# Grant SELECT on database to given username | |
# ./grant_ro_pgsql_access.sh dbname dbuser | |
# | |
function usage { | |
echo "Usage: $0 dbname dbuser" | |
} |
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/bash | |
# | |
# Gets screenshot using imagemagick import command | |
# puts it in Dropbox folder and returns dropbox url | |
# to screenshot | |
# Usage: dropshot [suffix] | |
# suffis - is optional, default 'dropshot' | |
# screenshots target directory |
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 | |
# https://launchpad.net/~dotcloud/+archive/lxc-docker/+packages | |
### BEGIN INIT INFO | |
# Provides: docker | |
# Required-Start: $local_fs $remote_fs | |
# Required-Stop: $local_fs $remote_fs | |
# Should-Start: autofs $network $named alsa-utils pulseaudio | |
# Should-Stop: autofs $network $named alsa-utils pulseaudio | |
# Default-Start: 2 3 4 5 |
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
{ | |
"pools" : [ | |
{ | |
"url" : "http://stratum.d7.lt:3333", | |
"user" : "user.1", | |
"pass" : "pass" | |
} | |
] | |
, |
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 | |
""" | |
Git commit hook: | |
.git/hooks/commit-msg | |
Check commit message according to angularjs guidelines: | |
* https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit# | |
""" | |
import sys |
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 | |
import sys | |
import re | |
import json | |
def jsongrep(d, patterns): | |
try: | |
pattern = patterns.pop(0) | |
except IndexError: |