wget --no-check-certificate https://raw.github.com/seebi/dircolors-solarized/master/dircolors.ansi-dark
mv dircolors.ansi-dark .dircolors
eval `dircolors ~/.dircolors`
git clone https://github.com/sigurdga/gnome-terminal-colors-solarized.git
cd gnome-terminal-colors-solarized
./set_dark.sh
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 | |
if [[ $UID -ne 0 ]]; then | |
echo "This script must be run as root" | |
exit 1 | |
fi | |
service conntrackd stop | |
# stop conntrackd.The daemon maybe writes the information about destroyed connections to a logfile. | |
# /var/log/conntrackd-stats.log |
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
python-pip: | |
pkg.installed | |
docker-py: | |
pip.installed: | |
- require: | |
- pkg: python-pip | |
# TODO: ensure docker-py is declared a requirement for all dockerio states without having to explicitely declare the requirement in each container state again |
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
# REPLACE localhost with DB-IP %s/localhost/<IP>/g | |
#assume obj_fq_name_table keys as utf8; | |
#assume obj_fq_name_table comparator as utf8; | |
#assume obj_fq_name_table validator as utf8; | |
#assume obj_uuid_table keys as utf8; | |
#assume obj_uuid_table comparator as utf8; | |
#assume obj_uuid_table validator as utf8; | |
LOG_FILE=repl-check.out.$(date +%Y%m%d-%H%M%S) |
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
# RUN ME, I am the worker! | |
# $ pip install fabric celery-with-redis | |
# $ celery -A tasks worker -E --loglevel=debug | |
from celery import Celery | |
from time import sleep | |
from fabric.api import env, run, execute | |
import sys | |
celery = Celery('tasks', broker='redis://', backend='redis://') |
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
["hello.coffee"] |
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 | |
# dhclient change hostname script for Ubuntu | |
# /etc/dhcp/dhclient-exit-hooks.d/sethostname | |
# logs in /var/log/upstart/network-interface-eth0.log | |
# for debugging: | |
echo "sethostname BEGIN" | |
export | |
set -x |
This file has been truncated, but you can view the full file.
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
-------------------------------------------------------------------------------- | |
Preparing input task | |
-------------------------------------------------------------------------------- | |
Input task is: | |
This file has been truncated, but you can view the full file.
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
-------------------------------------------------------------------------------- | |
Preparing input task | |
-------------------------------------------------------------------------------- | |
Input task is: | |
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
# Parse results | |
result = StringIO.StringIO('\n'.join(stdout.split('\n')[1:])) | |
creader = csv.reader(result) | |
report = [] | |
for row in creader: | |
if len(row) >= 1 : | |
report.append(["single-{}".format(row[1]),row[2]]) | |
report.append(["aggregate-{}".format(row[1]),row[3]]) | |
print report |
OlderNewer