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
cat > /etc/apt/preferences.d/backports <<EOF | |
Package: puppet puppet-common puppetmaster facter | |
Pin: release a=lenny-backports | |
Pin-Priority: 900 | |
EOF | |
cat > /etc/apt/sources.list.d/backports.list <<EOF | |
deb http://backports.debian.org/debian-backports lenny-backports main contrib non-free | |
EOF |
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
PATH=/opt/nginx/sbin:/sbin:/bin:/usr/sbin:/usr/bin | |
DAEMON=/opt/nginx/sbin/nginx | |
NAME=nginx | |
DESC=nginx | |
test -x $DAEMON || exit 0 | |
# Include nginx defaults if available | |
if [ -f /etc/default/nginx ] ; then | |
. /etc/default/nginx |
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 2010-2011 Vincent Carmona | |
vinc4mai+taglib@gmail.com | |
This file is part of ruby-taglib2. | |
ruby-taglib2 is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation; either version 2 of the License, or | |
(at your option) any later 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
attributes.each do |attr| | |
attr.class.send(:alias_method, :original_set, :set) | |
attr.class.send(:define_method, :set) do |instance, value| | |
instance.send(:"#{name}_will_change!") unless value == self.get(instance) | |
__send__(:original_set, instance, value) | |
end | |
end |
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
[core] | |
repositoryformatversion = 0 | |
filemode = true | |
bare = false | |
logallrefupdates = true | |
autocrlf = false | |
[svn-remote "svn"] | |
url = http://bacon.server.dev/svn/project | |
fetch = trunk:refs/remotes/trunk | |
branches = branches/*:refs/remotes/* |
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
*sponsor.txt* For Vim version 7.3. Last change: 2008 Jun 21 | |
VIM REFERENCE MANUAL by Bram Moolenaar | |
SPONSOR VIM DEVELOPMENT *sponsor* | |
Fixing bugs and adding new features takes a lot of time and effort. To show |
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
sdfg |
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
info = data.lines.map(&:strip).delete_if(&:empty?).inject([]) do |res, line| | |
split = line.split(':').map(&:strip) | |
split[1] = nil unless split[1] | |
res << split | |
end |
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
Gems included by the bundle: | |
* abstract (1.0.0) | |
* erubis (2.6.5) | |
* extlib (0.9.14) | |
* fuzzyhash (0.0.11) | |
* haml (2.2.23) | |
* hashie (0.2.0) | |
* rack (1.1.0) | |
* rack-accept-media-types (0.9) | |
* rack-test (0.5.3) |
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 | |
export PASSPHRASE=SomeMagiclySecurePassphrase | |
export SSH_AUTH_SOCK=/tmp/ssh-agent | |
# | |
# Dump mySQL databases, relying on backup of /var/lib/mysql isn't advised. | |
# | |
mysqldump --all-databases -uroot -pTEHPAZZ | bzip2 -c > /root/backups/db/all_databases_$(date +%Y_%m_%d).sql.bz2 |