Skip to content

Instantly share code, notes, and snippets.

View xentek's full-sized avatar
🌩️
Conjuring Clouds

Eric Marden xentek

🌩️
Conjuring Clouds
View GitHub Profile
define('GMAP_KEY','');
@xentek
xentek / .tmux.conf
Created July 5, 2010 21:54
custom .tmux.conf file for your multiplexing pleasure
# Custom tmux configuration: ~/.tmux.conf
# Cobbled together from google and trial & error by Eric Marden (xentek.net)
# set the command prefix to match gnuscreen (i.e. CTRL+a)
set -g prefix C-a
bind-key C-a last-window
# utf8
set-window-option -g utf8 on
@xentek
xentek / cloudcity-errors
Created December 9, 2010 19:33
Cloudcity Errors
$: ./cloudcity
Cleaning up...
Traceback (most recent call last):
File "/usr/local/bin/duplicity", line 825, in <module>
with_tempdir(main)
File "/usr/local/bin/duplicity", line 818, in with_tempdir
fn()
File "/usr/local/bin/duplicity", line 783, in main
cleanup(col_stats)
File "/usr/local/bin/duplicity", line 594, in cleanup
@xentek
xentek / gist:738634
Created December 13, 2010 04:01
upgrade jquery-ui (or any 'core' script) in WordPress with this handy idiom
<?php
if ( !is_admin() ):
wp_deregister_script('jquery-ui');
wp_enqueue_script('jquery-ui', get_bloginfo('stylesheet_directory') . '/js/jquery.ui.core.min.js', array('jquery'), '1.8.6');
endif;
?>
@xentek
xentek / XENTEK.tmTheme
Created December 31, 2010 19:29
Custom TextMate theme based on Hunch-Dark-dimmed.tmTheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>XENTEK</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
node $id="7a1689c7-06e7-4572-aab9-21ad9e56284a" proxy1
property $id="cib-bootstrap-options" \
dc-version="1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd" \
cluster-infrastructure="Heartbeat"
debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility daemon
keepalive 2
deadtime 15
warntime 5
initdead 120
udpport 694
ucast eth0 173.255.201.40
auto_failback on
@xentek
xentek / Git Shell Aliases
Created July 18, 2011 06:03
put this in your .profile (or similar)
# GIT
alias gst='git status'
alias gb='git branch'
alias gitp='git pull && git push'
alias gitundo='git commit --amend'
alias fixgit='git config branch.master.remote origin && git config branch.master.merge refs/heads/master'
@xentek
xentek / Git Command Aliases
Created July 18, 2011 06:04
handy command aliases, especially if you're used to svn. these go in your ~/.gitconfig file
[alias]
commit = ci
ci = commit
co = checkout
st = status
info = status
svn-diff = !git-svn-diff
@xentek
xentek / gist:1103588
Created July 25, 2011 05:06
my current tt.fm song list
<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<title>Exported from Turntable.fm</title>
<trackList>
<track><creator>Ephixa</creator><title>Lost Woods Dubstep Remix</title><duration>227000</duration></track>
<track><creator>Amon Tobin</creator><title>Four Ton Mantis (Bonobo Mix)</title><album>Bonobo: One Offs... Remixes &amp; B-Sides</album><duration>249000</duration></track>
<track><creator>Playgroup</creator><title>Make It Happen (Zongamin Remix)</title><album>Channel 2 - A Compilation Of Output Recordings</album><duration>284000</duration></track>
<track><creator>Nobukazu Takemura</creator><title>perch</title><album>10th</album><duration>469000</duration></track>
<track><creator>Meat Beat Manifesto</creator><title>I Hold the Mic!</title><album>Autoimmune</album><duration>285000</duration></track>
<track><creator>Shigeto</creator><title>Sky Of The Revolution</title><album>Full Circle</album><image>http://images.mndigital.com/albums/046/726/889/m.jpeg</image><dura