Skip to content

Instantly share code, notes, and snippets.

View nicklozon's full-sized avatar

Nick Lozon nicklozon

View GitHub Profile
#!/bin/bash
# Update all git repositories in the given directory
# Originally intended for pathogen bundle folder to update all vim extensions
# Cron job:
# 0 20 * * * ~/.vim/bundle/update_all.sh
cd ~/.vim/bundle
find . -maxdepth 1 -mindepth 1 -type d -exec sh -c 'cd $0 && git pull' {} \;
# Conky, a system monitor, based on torsmo
#
# Any original torsmo code is licensed under the BSD license
#
# All code written since the fork of torsmo is licensed under the GPL
#
# Please see COPYING for details
#
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
# Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
# Tint2 config file by Kexolino
# Background definitions
# ID 1
rounded = 0
border_width = 1
background_color = #2D2D2D 100
border_color = #484848 100
# Tint2 config file
# Generated by tintwizard (http://code.google.com/p/tintwizard/)
# For information on manually configuring tint2 see http://code.google.com/p/tint2/wiki/Configure
# Background definitions
# ID 1
rounded = 0
border_width = 1
background_color = #2D2D2D 100
border_color = #484848 100
compton -b -c -r 6 -l -7 -t -7 &
xrdb -merge ~/.Xresources &
feh --bg-scale ~/Wallpapers/quetzalhill.jpg &
tint2 &
conky &
synergyc nick-pc &
xset -b &
shadow-exclude = [ "_GTK_FRAME_EXTENTS@:c" ];
! special
*.foreground: #ffffff
*.background: #000000
*.cursorColor: #ffffff
! black
*.color0: #333333
*.color8: #3d3d3d
! red
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
#!/bin/sh
players=($(ls /home/unhinged/world/players | gawk '{ print $0 }' | gawk -F . '{ print $1 }'))
case $1 in
config)
cat <<'EOM'
graph_title Minecraft Players
graph_args --base 1000 -l 0
graph_vlabel Players
graph_scale no
'use strict';
var spawn = require('child_process').spawn;
var cpu = require('./available-configs/cpu.json');
// Use Gnu stdbuf to avoid buffering from commands
var child = spawn('stdbuf', ['-oL', 'bash', '-c', cpu.command]);
child.stdout.on('data', function(data) {
process.stdout.write(data);