Skip to content

Instantly share code, notes, and snippets.

@martinklepsch
martinklepsch / .Xresources
Created April 22, 2011 17:56
urxvt is not using the settings from .Xresources
# I also tried to rename this file to .Xdefaults but no change.
!URXVT related things
urxvt*scrollBar:false
urxvt*font: xft:inconsolata:size=11
!urxvt*font: -*-profont-*-*-*-*-12-*-*-*-*-*-iso8859-1
!! drop in Solarized colorscheme for Xresources/Xdefaults
###########################
# Thinkpad volume buttons #
###########################
# Mute
"amixer -q set Master toggle"
⇢ m:0x0 + c:121
⇢ NoSymbol
# VolDown
"amixer -q set Master unmute && amixer -q set Master 5%-"
###########################
# xbindkeys configuration #
###########################
#
# Version: 1.8.5
#
# If you edit this file, do not forget to uncomment any lines
# that you change.
# The pound(#) symbol may be used anywhere for comments.
#
#
# /etc/inittab
#
# Runlevels:
# 0 Halt
# 1(S) Single-user
# 2 Not used
# 3 Multi-user
# 4 Not used
@martinklepsch
martinklepsch / rc.lua
Created September 2, 2011 23:30
awesome config
-- Standard awesome library
require("awful")
require("awful.autofocus")
require("awful.rules")
-- Theme handling library
require("beautiful")
-- Notification library
require("naughty")
-- {{{ Variable definitions
@martinklepsch
martinklepsch / gist:1211189
Created September 12, 2011 12:59
tvm fails to install rvm
[2011-09-12 14:52:46] ./installer -a /home/martin/.rvm/rubies/ree-1.8.7-2011.03 --dont-install-useful-gems
Welcome to the Ruby Enterprise Edition installer
This installer will help you install Ruby Enterprise Edition 1.8.7-2011.03.
Don't worry, none of your system files will be touched if you don't want them
to, so there is no risk that things will screw up.
You can expect this from the installation process:
1. Ruby Enterprise Edition will be compiled and optimized for speed for this
system.
@martinklepsch
martinklepsch / Fabricate_multiple_objects_in_a_spec.md
Created December 7, 2011 10:23
How to fabricate multiple objects in a spec with Fabrication

How to Fabricate Multiple Objects in a Spec with Fabrication

1. Fabricate(:a, :count => 2)

Fabricate(:a, :count => 2)
...
NoMethodError: undefined method `count=' for #<Ad:0x12e4ec8c8>

This one is kind of obvious since this is usually the syntax to override specific attributes.

# Documentation for this file can be found here:
# /usr/share/offlineimap/offlineimap.conf
[general]
accounts = Gmail
maxconnections = 3
maxsyncaccounts = 3
[Account Gmail]
localrepository = Local

What's this

I had a few ideas in how Graylog2 could even more support the user in finding relvant log messages.

Both of them are described below.

Activity Graph

This would be a dotgraph which displays the relative amount of log messages occuring at a given timespan. Here is an example of this kind of graph, which is called dotgraph as far as I know.

@martinklepsch
martinklepsch / About.markdown
Created March 7, 2012 14:13
Script to download Command Line Tools for XCode

Script to Download Apple's Command Line Tools For Xcode

This is a script which will download and install Apple's Command Line Tools for Xcode by using Applescript.

It requires credentials of an Apple developer account.

NOTE: This is not working yet. If you feel a use for it, test it and fix what you can.