Skip to content

Instantly share code, notes, and snippets.

View guedressel's full-sized avatar

guedressel guedressel

  • Protobyte GmbH
  • Vienna
View GitHub Profile
@guedressel
guedressel / nineteen.sh
Last active September 20, 2015 07:49 — forked from bhundven/nineteen.sh
Enlightenment 19 build script for Ubuntu/Debian
#!/bin/bash
#
# NINETEEN.SH
# This script allows you to install/update Enlightenment 19 git version on
# Ubuntu 14.04 LTS or Debian wheezy/sid, or remove E19 git from your system.
# Originally from: http://ubuntuforums.org/showthread.php?t=2203190
# By: Philippe J. Guillaumie (batden AT sfr DOT fr).
# Additional updates by: Bryan Hundven (bryanhundven AT gmail DOT com).
#
# Tip:
@guedressel
guedressel / gist:524f30b1296add6f9a4f
Created December 5, 2014 08:46
List sizes of Zimbra Mailboxes
#> zmaccts | grep '@' | awk -F" " '{print $1}' > /tmp/accounts
#> for account in $(< /tmp/accounts); do size=$(zmmailbox -z -m $account gms); echo $account $size; done
@guedressel
guedressel / ext_keyboard_layout.sh
Created May 28, 2014 20:07
Switch layout of keyboard in X11
#!/bin/bash
#
# switch keyboardlayout of my external cherry keyboard to german layout
#
set -e
DEV_NAME="HID 046a:0023"
LAYOUT="at"
@guedressel
guedressel / graphite-fcgi
Created May 7, 2014 12:20
Init-script to run graphite-web as FastCGI Daemon (based on ubuntu package graphite-web 0.9.12+debian-3) + lighttpd example config
#! /bin/sh
### BEGIN INIT INFO
# Provides: FastCGI server for graphite
# Required-Start: networking
# Required-Stop: networking
# Default-Start: 2 3 4 5
# Default-Stop: S 0 1 6
# Short-Description: Start/Stop FastCGI server of graphite-web package.
# Description: Grahpite-web is a Django webapp. Django has a built-in FastCGI server
# which is started/stopped by this init script.
#!/bin/bash
echo
echo
DEVS=($(cat /proc/net/dev | tail -n+3 | cut -d: -f1 | tr -d " "))
for i in "${DEVS[@]}"