Skip to content

Instantly share code, notes, and snippets.

View jens-a-e's full-sized avatar

jens alexander ewald jens-a-e

View GitHub Profile
#!/bin/sh
#
# This hook does two three things:
#
# 1. update the "info" files that allow the list of references to be
# queries over dumb transports such as http
#
# 2. if this repository looks like it is a non-bare repository, and
# the checked-out branch is pushed to, then update the working copy.
# This makes "push" function somewhat similarly to darcs and bzr.
@jens-a-e
jens-a-e / battery.rb
Created April 3, 2012 20:58 — forked from alexmcpherson/battery.rb
Ruby Battery Level
#!/usr/bin/env ruby
# coding: utf-8
output = `pmset -g batt`
percent_battery = output.match(/\d+\%/).to_s.gsub("%","").to_f
empty = '▹'
filled = '▸'
color_green = '%{%}'
color_yellow = '%{%}'
@jens-a-e
jens-a-e / dabblet.css
Created January 25, 2012 15:09 — forked from Superwalli/dabblet.css
wenn nicht anders gesagt, schwarze serifenlose schrift
/*version 2*/
/* wenn nicht anders gesagt, schwarze serifenlose schrift*/
html {
color: black;
font-family:verdana, sans-serif;
}
/* Große Überschriften orange*/
h1 {
color: orange;