Skip to content

Instantly share code, notes, and snippets.

View svenwin's full-sized avatar

Sven Winkler svenwin

View GitHub Profile
#!/bin/sh
#
# This shell script passes all its arguments to the binary inside the
# MacVim.app application bundle. If you make links to this script as view,
# gvim, etc., then it will peek at the name used to call it and set options
# appropriately.
#
# Based on a script by Wout Mertens and suggestions from Laurent Bihanic. This
# version is the fault of Benji Fisher, 16 May 2005 (with modifications by Nico
# Weber and Bjorn Winckler, Aug 13 2007).
@svenwin
svenwin / cmd_to_ctrl.xml
Last active December 10, 2015 22:59
KeyRemap private.xml Switch Cmd to Ctrl on Terminal
<?xml version="1.0"?>
<root>
<item>
<name>SW: Avoid Terminal-RSI</name>
<appendix>Get two new big CTRL buttons for your thumbs</appendix>
<item>
<name>Swap Command_R with Control_R</name>
<identifier>remap.app_terminal_commandR2controlR</identifier>
<only>TERMINAL</only>
<autogen>--KeyToKey-- KeyCode::COMMAND_R, KeyCode::CONTROL_R</autogen>
@svenwin
svenwin / SassMeister-input.scss
Created October 15, 2014 11:09
Generated by SassMeister.com.
// ----
// Sass (v3.4.5)
// Compass (v1.0.1)
// ----
@mixin honk($important:null) {
@if $important == true
{ $important: !important }
color: green $important;
}
@svenwin
svenwin / medium.xml
Last active July 15, 2016 07:09
Make medium shortcuts ⌘⌥5 and ⌘⌥6 usable on a german keyboard layout
<?xml version="1.0"?>
<root>
<item>
<name>Medium for german keyboard layout</name>
<item>
<name>Make CMD+ALT+5,6 useable</name>
<only>GOOGLE_CHROME</only>
<identifier>remap.medium_keys</identifier>
<autogen>__KeyToKey__ KeyCode::5, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND | MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION, KeyCode::KEYPAD_5, ModifierFlag::OPTION_L, ModifierFlag::COMMAND_L</autogen>
<autogen>__KeyToKey__ KeyCode::6, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND | MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION, KeyCode::KEYPAD_6, ModifierFlag::OPTION_L, ModifierFlag::COMMAND_L</autogen>
@svenwin
svenwin / private.xml
Created August 19, 2016 15:13
Remap Lenovo USB to Mac
<?xml version="1.0"?>
<root>
<item>
<name>Lenovo USB for Mac</name>
<item>
<name>Remap CMD + Alt (sticky)</name>
<identifier>remap.print_to_option_r</identifier>
<device_only>DeviceVendor::RawValue::0x17ef, DeviceProduct::RawValue::0x6047</device_only>
<autogen>__KeyOverlaidModifier__ KeyCode::OPTION_R, KeyCode::COMMAND_R, KeyCode::VK_STICKY_ACTIVE_MODIFIERS_FORCE_ON, KeyCode::VK_STICKY_COMMAND_R</autogen>
<autogen>__KeyOverlaidModifier__ KeyCode::F13, KeyCode::OPTION_R, KeyCode::VK_STICKY_ACTIVE_MODIFIERS_FORCE_ON, KeyCode::VK_STICKY_OPTION_R</autogen>
@svenwin
svenwin / bb_reviews.js
Created January 23, 2018 14:12
Bitbucket Reviews
// ==UserScript==
// @name Bitbucket Approver
// @namespace http://tampermonkey.net/
// @version 0.3.1
// @description Fades out already approved commits …
// @author Sven Winkler
// @include https://bitbucket.org/*
// @grant none
// @updateURL https://gist.githubusercontent.com/svenwin/f89d122680e452e6ab24ae27ded589e3/raw
// ==/UserScript==