In no particular order:
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
{ | |
"global": { | |
"check_for_updates_on_startup": true, | |
"show_in_menu_bar": true, | |
"show_profile_name_in_menu_bar": false | |
}, | |
"profiles": [ | |
{ | |
"complex_modifications": { | |
"parameters": { |
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
#!/usr/bin/env ruby | |
# Exports albums and their photos to plain directories and files. | |
# | |
# Built for Photos.app v1.5 on OS X 10.11.6. | |
# | |
# See also: | |
# https://github.com/koraktor/gallerist | |
# | |
# TODO: |
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>Change Plus-minus key</name> | |
<appendix>Plusminus to underscore</appendix> | |
<identifier>private.plusminus_to_underscore_r</identifier> | |
<autogen> | |
__KeyToKey__ | |
KeyCode::UK_SECTION, ModifierFlag::SHIFT_R, |
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
#!/bin/bash | |
# Adds reference to GitHub issue if available in branch name. | |
# The issue number should be at the end of the branch name, following | |
# a hyphen. | |
# Only proceed if no second parameter is given to the script. | |
if [ x = x${2} ]; then | |
branch=$(git symbolic-ref --short HEAD) | |
if [[ $branch =~ .*-([0-9]+)$ ]]; then |
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
==== start log session ==== | |
0.000024 function gitgutter#process_buffer[10]..gitgutter#diff#run_diff[73]..gitgutter#utility#system[1]: | |
0.000024 cd /Users/cody && (git ls-files --error-unmatch .vimrc && (git -c "diff.autorefreshindex=0" diff --no-ext-diff --no-color -U0 -- .vimrc | grep --color=never -e '^@@ ' || exit 0)) | |
==== start log session ==== | |
0.000042 function gitgutter#process_buffer[10]..gitgutter#diff#run_diff[73]..gitgutter#utility#system[1]: |
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
" Shuffles list in place. | |
function! Shuffle(list) | |
" Fisher-Yates-Durstenfeld-Knuth | |
let n = len(a:list) | |
for i in range(0, n-2) | |
let j = Random(0, n-i-1) | |
let e = a:list[i] | |
let a:list[i] = a:list[i+j] | |
let a:list[i+j] = e | |
endfor |
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
# config/initializers/email.rb | |
# Monkey-patch to enable ActionMailer to send STMP email over SSL. | |
# Necessitated by Fastmail mandating SSL by 30 June 2012. | |
module ActionMailer | |
class Base | |
def perform_delivery_smtp(mail) | |
destinations = mail.destinations | |
mail.ready_to_send |
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>Change Section key</name> | |
<appendix>Section to Hash</appendix> | |
<identifier>private.section_to_hash</identifier> | |
<autogen> | |
__KeyToKey__ | |
KeyCode::DANISH_DOLLAR, |
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>Easier umlauts</name> | |
<appendix>Use left-control + vowel</appendix> | |
<identifier>private.easier_umlauts</identifier> | |
<autogen> | |
__KeyToKey__ | |
KeyCode::A, ModifierFlag::CONTROL_L | ModifierFlag::SHIFT_L, |