View network_monitor.sh
#!/bin/bash
HOST=www.google.com
while true ; do
if ifconfig wlan0 | grep -q "inet addr:" ; then
#$printf "WLAN connected, IP: %s\n" $(hostname -I)
sleep 60
else
echo "Network connection down! Attempting reconnection."
View docker-compose.yml
postgres:
image: 'postgres'
ports:
- '5432:5432'
expose:
- '5432'
environment:
- POSTGRES_USER=drupal
- POSTGRES_PASSWORD=thisisasecretpass1
View keybase.md

Keybase proof

I hereby claim:

  • I am yorch on github.
  • I am yorch (https://keybase.io/yorch) on keybase.
  • I have a public key whose fingerprint is 5D5D A1D1 347A 1523 B268 694B 02AC 4F9E 4323 0DAC

To claim this, I am signing this object:

View .slate.js
var pushRight = slate.operation("push", {
"direction" : "right",
"style" : "bar-resize:screenSizeX/2"
});
var pushLeft = slate.operation("push", {
"direction" : "left",
"style" : "bar-resize:screenSizeX/2"
});
var pushTop = slate.operation("push", {
"direction" : "top",
View docker-volume-cleanup.py
#!/usr/bin/python
import json
import os
import shutil
import subprocess
import re
dockerdir = '/var/lib/docker'
volumesdir = os.path.join(dockerdir, 'volumes')
View ispconfig-migration.sh
#!/bin/bash
# Migrate ISPConfig 3 installation from one server to another
# This script should run on the final/destination ISPConfig 3 server
# You must first install the same ISPConfig on the destination server
# and make sure to create all the users from the previous installation
# (ISPConfig creates users for each client and web page)
# Tested on ISPConfig version 3.0.5.3
# Created by Jorge Barnaby (@jbarnaby) - March 2014
# EDIT YOUR PREVIOUS ISPCONFIG SERVER HERE
View example.rb
# Example of a DelayedJob that syncs info with mailchimp
class SyncMailchimp < Struct.new(:opts)
include Dobexer::ExceptionNotifier
def run_hominid(attempts = 0, &block)
attempts += 1
block.call
rescue EOFError => e
View rename_to_exiftime.py
## {{{ http://code.activestate.com/recipes/578219/ (r2)
# -*- coding: Windows-1251 -*-
'''
rename_to_exiftime.py
Rename JPEG files according to EXIF-date using PIL
If global variable CREATE_HARDLINK is set, script creates Windows (XP) batch file
for creating hardlink version of source files
View .gitignore
###################
# http://stackoverflow.com/questions/639647/git-and-asp-mvc
###################
#
###################
# compiled source #
###################
*.com
*.class
*.dll
View gist:2891402
(function() {
// Background image variable size (keeping aspect ratio fixed)
// Based on http://jonathanstark.com/blog/2011/01/03/variable-size-background-image/
// By Jorge Barnaby (jorge {dot} barnaby {at} gmail) - Jun 2012
// Background image
var imgPath = 'assets/background.jpg'; // Path of the image to be used as background
var origW = 1920; // Original width of the image
var origH = 1080; // Original height of the image
var ratio = origW / origH;