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
/srv/mirror# cat dotdeb/conf/distributions | |
origin: Dotdeb | |
Codename: dotdeb | |
Description: Dotdeb repository for Debian-based LAMP servers | |
Architectures: amd64 source | |
Components: all | |
Contents: .gz | |
Update: dotdeb | |
Log: dotdeb | |
# SignWith: |
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
git stash -q --keep-index | |
for file in data_bags/user/* data_bags/group/* ; do | |
python -mjson.tool $file 1> /dev/null; | |
RESULT=$? | |
[ $RESULT -ne 0 ] && echo "JSON syntax faulty: $file" && exit 1 | |
done | |
git stash pop -q | |
exit 0 |
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
This post is late because, two days ago (December 24th), I went to the emergency | |
room with appendicitis. Pretty sweet timing, eh? | |
After surgery, I was bored and took to observing nursing shift rotations - | |
hand-offs of patients, documentation maintenance, etc. The entire process semeed | |
to last about an hour for each shift change. I thought to myself, "Self, you | |
have never been involved in any operations project, task, or fire hand-off that | |
went as smoothly." Pretty sad realization. | |
Further, throughout my hospital stay (emergency room, surgery, and recovery), |
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
server { | |
listen 80; | |
server_name foo.bar; | |
rewrite ^(.*) https://foo.bar$1? permanent; | |
} |
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
set -g default-terminal "screen-256color" | |
bind-key C-b last-window | |
# start window index of 1 instead of 0 | |
set-option -g base-index 1 | |
# UTF-8 character support in the status bar | |
set-option -g status-utf8 on | |
# Set window notifications |
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 ruby | |
# Compares semantic versions of cookbooks, by looking at the metadata.rb file and | |
# rejects pushes if the cookbook version has not been bumped. If running this | |
# script from another script, remeber to pass along the parameters to this | |
# script. | |
# | |
# Requires a gem install semantic. | |
require 'rubygems' | |
require 'semantic' |
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 bash | |
# Runs all .json or .js files through pythons json lint tool before commiting, | |
# to make sure that you don't commit broken json objects. | |
git_dir=$(git rev-parse --show-toplevel) | |
for file in $(git diff-index --name-only --diff-filter=ACM --cached HEAD -- \ | |
| grep -P '\.((js)|(json))$'); do | |
python -mjson.tool $file 2> /dev/null | |
if [ $? -ne 0 ] ; then |
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 bash | |
# Runs all .json or .js files through pythons json lint tool before updating, | |
# to make sure that you don't push broken json objects. | |
refname=$1 | |
old=$2 | |
new=$3 | |
for file in $(git ls-tree --name-only -r $new \ | |
| grep -P '\.((js)|(json))$'); do |
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
username = "foo" | |
homedir = "/home/#{username}" | |
user username do | |
action :create | |
comment "foo user" | |
home homedir | |
supports :manage_home => true | |
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
# yum list --showduplicates nodejs | |
Loaded plugins: fastestmirror, security | |
Loading mirror speeds from cached hostfile | |
Available Packages | |
nodejs.x86_64 0.10.1-1.el6 thirdparty | |
nodejs.x86_64 0.10.2-1.el6 thirdparty | |
nodejs.x86_64 0.10.3-1.el6 thirdparty | |
# shef -z |
OlderNewer