Skip to content

Instantly share code, notes, and snippets.

View sckevmit's full-sized avatar

Szymon Dziech sckevmit

View GitHub Profile
@sckevmit
sckevmit / tasks.py
Created November 29, 2016 10:31 — forked from daniellawrence/tasks.py
Queuing fabric tasks and stream reading output using celery & redis - A little bit of evil with tempfiles and stdout redirection.
# 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://')
@sckevmit
sckevmit / contrail-db-row-replication-check
Created January 20, 2016 13:14 — forked from ajayhn/contrail-db-row-replication-check
contrail-db-row-replication-check
# 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)
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
#!/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

Dark version

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