Skip to content

Instantly share code, notes, and snippets.

@urecho
urecho / gist:3dea0933169a42e35be193b8703e2378
Created April 17, 2016 08:19
vimium_custom_keymap_for_korean
# Insert your preferred key mappings here.
map  ㅓ scrollDown
map  ㅏ scrollUp
map  ㅗ scrollLeft
map  ㅣ scrollRight
map  ㅎㅎ scrollToTop
map  ㅇ scrollPageDown
map  ㅕ scrollPageUp
// ==UserScript==
// @author urecho
// @match https://feedly.com/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
'use strict';
(function(window, undefined ) {
waitForKeyElements("[data-page-action]", callbackFunction);
set -g prefix C-a
bind C-a send-prefix
unbind C-b
setw -g mode-keys vi
bind-key y set-window-option synchronize-panes
@urecho
urecho / gist:55c2e1e201c9964f6c36
Created March 3, 2015 00:56
Git: Copy a file or directory from another repository preserving the history
src : http://blog.neutrino.es/2012/git-copy-a-file-or-directory-from-another-repository-preserving-history/
mkdir /tmp/mergepatchs
cd ~/repo/org
export reposrc=myfile.c #or mydir
git format-patch -o /tmp/mergepatchs $(git log $reposrc|grep ^commit|tail -1|awk '{print $2}')^..HEAD $reposrc
cd ~/repo/dest
git am /tmp/mergepatchs/*.patch
@urecho
urecho / gist:da3d119fd64638a7b6b3
Created November 24, 2014 06:06
java vm options
from : http://blog.sokolenko.me/2014/11/javavm-options-production.html
Java < 8
-server
-Xms<heap size>[g|m|k] -Xmx<heap size>[g|m|k]
-XX:PermSize=<perm gen size>[g|m|k] -XX:MaxPermSize=<perm gen size>[g|m|k]
-Xmn<young size>[g|m|k]
-XX:SurvivorRatio=<ratio>
-XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled
-XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=<percent>
@urecho
urecho / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
git config --global alias.lga "log --graph --oneline --all --decorate"
git config --global alias.lg "log --graph --all --pretty=format:'%C(bold)%h%Creset -%C(auto)%d%Creset %s %C(green dim)(%cr)%Creset %C(ul)<%an>'"