Skip to content

Instantly share code, notes, and snippets.

View baseonmars's full-sized avatar

Dan Cseko baseonmars

View GitHub Profile
li {
width: 200px;
min-height: 250px;
border: 1px solid #000;
display: -moz-inline-stack;
display: inline-block;
vertical-align: top;
margin: 5px;
zoom: 1;
*display: inline;
@baseonmars
baseonmars / gist:83724
Created March 23, 2009 19:16
allows pulling from github to local master (i think)
git config branch.master.remote origin
git config branch.master.merge refs/heads/master
# This seems to clean up the double entries in the Open With Dialog
/System/Library/Frameworks/ApplicationServices.framework/ Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
#!/bin/sh
# AUTHOR: Matt Simerson (matt@tnpi.net)
#
# VERSIONS:
# 1.02 - Dec 16, 2007
# - adjusted ps invocation for reliable detection when multiple
# - users run ssh-agent on a single system
# 1.01 - Oct 9, 2007
# - when cleaning up stale agent, remove stale sock file
<?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>BackgroundColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGCQpYJHZlcnNpb25UJHRvcFkkYXJjaGl2ZXJYJG9iamVjdHMS
AAGGoNEHCFRyb290gAFfEA9OU0tleWVkQXJjaGl2ZXKjCwwTVSRudWxs0w0ODxARElYk
Y2xhc3NcTlNDb2xvclNwYWNlVU5TUkdCgAIQAUYwIDAgMADSFBUWF1gkY2xhc3Nlc1ok
Y2xhc3NuYW1lohcYV05TQ29sb3JYTlNPYmplY3QIERofKTI3Oj9BU1ddZGt4foCCiY6X
[alias]
co = checkout
ci = commit
st = status
stage = add
unstage = reset HEAD
[user]
name = USERNAME
email = EMAIL_ADDRESS
[github]
@baseonmars
baseonmars / bullet-proof-font-face.css
Created December 3, 2009 12:00
Bullet proof font-face decleration
@font-face {
font-family: 'Graublau Web';
src: url('GraublauWeb.eot');
src: local('Graublau Web Regular'), local('Graublau Web'),
url('GraublauWeb.otf') format('opentype');
}
$ svn co http://svn.openqa.org/svn/selenium-rc/trunk selenium-rc
$ cd selenium-rc
$ patch -p0 < snow-leopard.patch
$ mvn install
$ cp selenium-server.jar selenium-server.jar.bak #if it exists
$ cp selenium-server/target/selenium-server-1.0.2-SNAPSHOT-standalone.jar selenium-server.jar
taken from http://jira.openqa.org/browse/SRC-743#action_18980
see snow-leopard.patch for patch. This is obviously for selenium server v1, the dev's recommend try 2.0 alpha in the bug thread - I haven't tried this yet.
@baseonmars
baseonmars / .tmux.conf
Created March 15, 2012 17:21
Dane's tmux file
# Use C-a, like screen
unbind C-b
unbind l
set -g prefix C-a
bind-key '`' last-window
bind-key C-a send-keys 'C-a'
setw -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
function say(phrase, language) {
var audio = ...
return audio.play()
}
function Audio(...) {
}
Audio.prototype.play = function () {
var def = new $.Deferred()