Skip to content

Instantly share code, notes, and snippets.

Marcus Ilgner milgner

View GitHub Profile
agam /
Created Apr 29, 2016
Fix Alt-b and Alt-f behavior in iTerm
  • Open Preferences, select Profiles, and then the Keys tab.
  • Change the radio button selection for the left (and/or right) Option key to be +Esc instead of Normal
rubo77 /
Last active Mar 15, 2020
This script rotates the screen and touchscreen input, disables or enbles the touchpad, and dis- or enables the virtual keyboard on a Lenovo Yoga 13 or Yoga 2 Pro (source:
# This script rotates the screen and touchscreen input 90 degrees each time it is called,
# also disables the touchpad, and enables the virtual keyboard accordingly
# by Ruben Barkow:
#### configuration
# find your Touchscreen and Touchpad device with `xinput`
TouchscreenDevice='ELAN Touchscreen'
TouchpadDevice='SynPS/2 Synaptics TouchPad'
airtonix / .profile
Last active Jun 21, 2019
dynamic npm .bin.
View .profile
# Copy this into your `~/.profile`.
# This setup an incredibly ugly hack that recompiles your `PATH`
# everytime the prompt is printed.
# I need this to inject the nearest `node_modules/.bin` into my
# path to make it easy to use the binarys there.
# Your normal PATH exports here
export PATH=$HOME/bin:$PATH
nofxx / logstash.conf
Last active Dec 24, 2015
Centralized Ruby/Rails/MongoDB/Redis/Sidekiq/Elasticsearch/Haproxy/PG/OS -> syslog-ng -> logstash -> elasticsearch -> kibana =D
View logstash.conf
# Logstash conf!
input {
tcp {
host => ""
port => 514
type => syslog
udp {
naomik / bind.rb
Last active Dec 5, 2016
Function.prototype.bind in Ruby. I'm so happy right now.
View bind.rb
class Method
def bind *args do |*more| *(args + more)
def foo a, b, c, d, e, f, x=100, y=200, z=300
puts a, b, c, d, e, f, x, y, z
JohannesRudolph / TeamCityAdapter.m
Created May 27, 2011
TeamCity Adapter for SenTestingKit/OCUnit
View TeamCityAdapter.m
// TeamCityAdadpter.m
// Created by Johannes Rudolph on 27.05.11.
// Use of this source code is governed by the following license:
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
// (1) Redistributions of source code must retain the above copyright notice,
You can’t perform that action at this time.