Skip to content

Instantly share code, notes, and snippets.

View dirkharrington's full-sized avatar
😫
Probably preparing for a demo

Dirk J Harrington dirkharrington

😫
Probably preparing for a demo
View GitHub Profile
@dirkharrington
dirkharrington / .screenrc
Last active January 4, 2016 09:29
Adds a snazzy toolbar to the bottom of your screen session
multiuser on
hardstatus alwayslastline "%{b kw}%H %{r}%1` %{w}| %{g}%c %{w}| %{y}%d.%m.%Y %{w}| %{g}%l %{w}| %{-b kw}%u %-Lw%{= rW}%50> %n%f %t %{-}%+Lw%<"
defscrollback 10000
# screen -t <name> for startup screens
@dirkharrington
dirkharrington / .httprc
Created January 14, 2014 14:18
Simple functions for serving via http
#!/bin/bash
# Starts an HTTP server.
# With no args port 8080 is bound to the CWD
serve() {
if [ -n "$2" ]; then pushd $2; fi
python -m SimpleHTTPServer ${1:-8080} &
}
@dirkharrington
dirkharrington / .mvnrc
Last active January 1, 2016 17:09
Simple functions for interacting with Maven
#!/bin/bash
#
# Exports
#
export MAVEN_OPTS='-XX:MaxPermSize=256m -Xmx1G -XX:+CMSClassUnloadingEnabled'
export MVN_REPO+=/work/mvn-dependency-repo
export PATH+=:/work/apache-maven-3.2.1/bin
#
@dirkharrington
dirkharrington / centered.css
Created December 1, 2012 04:06
Centered CSS Class
.centered {
margin:-25% 0 0 -25%;
top: 50%;
left: 50%;
height: 50%;
width: 50%;
position: absolute;
}