Skip to content

Instantly share code, notes, and snippets.

View milgner's full-sized avatar
🖖
Greetings, fellow traveler of the universe!

Marcus Ilgner milgner

🖖
Greetings, fellow traveler of the universe!
View GitHub Profile
@rubo77
rubo77 / rotate-screen.sh
Last active October 9, 2023 11:30
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)
#!/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'
@agam
agam / iTerm.md
Created April 29, 2016 03:12
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
@airtonix
airtonix / .profile
Last active March 10, 2023 18:25
dynamic npm .bin.
# 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 December 24, 2015 13:49
Centralized Ruby/Rails/MongoDB/Redis/Sidekiq/Elasticsearch/Haproxy/PG/OS -> syslog-ng -> logstash -> elasticsearch -> kibana =D
#
# Logstash conf!
#
input {
tcp {
host => "0.0.0.0"
port => 514
type => syslog
}
udp {
@JohannesRudolph
JohannesRudolph / TeamCityAdapter.m
Created May 27, 2011 08:53
TeamCity Adapter for SenTestingKit/OCUnit
//
// 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,