Skip to content

Instantly share code, notes, and snippets.

Marcus Ilgner milgner

View GitHub Profile
@agam
agam / iTerm.md
Created Apr 29, 2016
Fix Alt-b and Alt-f behavior in iTerm
View iTerm.md
  • 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
rubo77 / rotate-screen.sh
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: http://askubuntu.com/q/405628/34298)
View rotate-screen.sh
#!/bin/bash
# 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: https://gist.github.com/rubo77/daa262e0229f6e398766
#### configuration
# find your Touchscreen and Touchpad device with `xinput`
TouchscreenDevice='ELAN Touchscreen'
TouchpadDevice='SynPS/2 Synaptics TouchPad'
@airtonix
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
ORIGINAL_PATH=$PATH
@nofxx
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 => "0.0.0.0"
port => 514
type => syslog
}
udp {
@naomik
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
Proc.new do |*more|
self.call *(args + more)
end
end
end
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
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.