This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Use the correct shift keys.</name> | |
<identifier>private.correct_shift_keys</identifier> | |
<autogen>--KeyToKey-- KeyCode::Q, ModifierFlag::SHIFT_L, KeyCode::VK_NONE</autogen> | |
<autogen>--KeyToKey-- KeyCode::W, ModifierFlag::SHIFT_L, KeyCode::VK_NONE</autogen> | |
<autogen>--KeyToKey-- KeyCode::E, ModifierFlag::SHIFT_L, KeyCode::VK_NONE</autogen> | |
<autogen>--KeyToKey-- KeyCode::R, ModifierFlag::SHIFT_L, KeyCode::VK_NONE</autogen> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun nrepl-send-to-repl () | |
"Send the appropriate forms to the repl to be evaluated." | |
(interactive) | |
(save-excursion | |
(cond | |
;; Region selected - evaluate region | |
((not (equal mark-active nil)) | |
(copy-region-as-kill (mark) (point))) | |
;; At/before sexp - evaluate next sexp | |
((or (looking-at "\s(") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns zipper.core | |
(require [clojure.zip :as z])) | |
(def my-tree ["0" ["1A" "1B" "1C" | |
["2A" "2B" "2C" | |
["3A" "3B" "3C"]] | |
["2D" "2E" "2F" | |
["3D" "3E"]] | |
"1D" "1E" "1F"]]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use vim keybindings in copy mode | |
setw -g mode-keys vi | |
# Setup 'v' to begin selection as in Vim | |
bind-key -t vi-copy v begin-selection | |
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy" | |
# Update default binding of `Enter` to also use copy-pipe | |
unbind -t vi-copy Enter | |
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh -t -t -n -D 9999 YOUR_REMOTE_SERVER & >> /dev/null | |
sudo networksetup -setsocksfirewallproxy Ethernet localhost 9999 | |
sudo networksetup -setsocksfirewallproxy Wi-Fi localhost 9999 | |
sudo networksetup -setsocksfirewallproxystate Ethernet on | |
sudo networksetup -setsocksfirewallproxystate Wi-Fi on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo networksetup -setsocksfirewallproxystate Ethernet off | |
sudo networksetup -setsocksfirewallproxystate Wi-Fi off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ControlPersist yes | |
GSSAPIAuthentication no | |
Host * | |
Compression yes | |
CompressionLevel 7 | |
Cipher blowfish | |
ServerAliveInterval 600 | |
ControlMaster auto | |
ControlPath /tmp/ssh-%r@%h:%p |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(setq inferior-lisp-program "lein repl") | |
(require 'package) | |
(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/") t) | |
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t) | |
(windmove-default-keybindings) | |
(defun nrepl-send-to-repl () | |
"Send the appropriate forms to the repl to be evaluated." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo -n "password" | hdiutil create -encryption -stdinpass -srcfolder GYB-GMail-Backup-jeremie@grodziski.com encrypted.dmg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<root> | |
<appdef> | |
<appname>ITERM</appname> | |
<equal>com.googlecode.iterm2</equal> | |
</appdef> | |
<!-- | |
KeyRemap4MacBook defines a list of apps to ignore when using any of the | |
"Emacs Mode" key mappings. That list includes "TERMINAL" (as well as other |
OlderNewer