create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| #!/bin/sh | |
| # Use SourceGear DiffMerge as mergetool for git in cygwin. | |
| # git config --global mergetool.diffmerge.cmd "diffmergetool.sh \"\$LOCAL\" \"\$REMOTE\" \"\$BASE\" \"\$MERGED\"" | |
| # git config --global mergetool.diffmerge.trustExitCode false | |
| # git difftool -t diffmerge branch1..branch2 | |
| # Reference: http://www.tldp.org/LDP/abs/abs-guide.pdf | |
| library=githelperfunctions.sh |
| import fcntl | |
| import os | |
| from subprocess import * | |
| def non_block_read(output): | |
| fd = output.fileno() | |
| fl = fcntl.fcntl(fd, fcntl.F_GETFL) | |
| fcntl.fcntl(fd, fcntl.F_SETFL, fl | os.O_NONBLOCK) | |
| try: | |
| return output.read() |
| #!/usr/bin/env sh | |
| # TODO: replace your-hostname-here.com and path_to_your_rwget_folder | |
| if [ $# -lt 1 ] ; then | |
| echo "usage: rwget URL" | |
| exit 1 | |
| fi | |
| filename=`ssh your-hostname-here.com URL=$1 'bash -s' << 'ENDSSH' | |
| cd path_to_your_rwget_folder |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| #!/bin/bash | |
| # Credit to http://ubuntuforums.org/member.php?u=126210 | |
| # This script helps to install fonts | |
| # | |
| # Set your default font storage directory here | |
| ##DEFAULT_DIR="$HOME/fonts" | |
| DEFAULT_DIR=`pwd` | |
| # Set the default font installation directory here | |
| DEFAULT_DEST="/usr/share/fonts/truetype/font-install" |
rsync (Everyone seems to like -z, but it is much slower for me)
| (defun input-example (text) | |
| "Gets user input and prints it back. Defaults to word at point" | |
| (interactive | |
| (list | |
| (read-string | |
| (format "Text (%s): " (word-at-point)) ; prompt. It's nice to show the default value | |
| nil ; initial input. This value is prefilled in the mini-buffer. Available but considered deprecated. | |
| nil ; history list if you have a specific one for this | |
| (word-at-point) ; Whatever this evaluates to will be the default value | |
| ))) |
| [ | |
| // Working in some additional Vim or Vim-like bindings; using 'g' as <leader> | |
| // because it's homerow and unused for most commands: | |
| { "keys": ["g", "t"], "command": "next_view", "context": [{"key": "setting.command_mode"}] }, | |
| { "keys": ["g", "r"], "command": "prev_view", "context": [{"key": "setting.command_mode"}] }, | |
| { "keys": ["g", "n"], "command": "focus_side_bar", "context": [{"key": "setting.command_mode"}] }, | |
| { "keys": ["g", "w"], "command": "focus_group", "args": { "group": 0 } }, | |
| { "keys": ["g", "m"], "command": "find_under_expand", "context": [{"key": "setting.command_mode"}] }, | |
| { "keys": ["g", "s"], "command": "sftp_browse_server", "context": [{"key": "setting.command_mode"}] }, |
| ; Auto execute section is the region before any return/hotkey | |
| ; For Terminal/Vim | |
| GroupAdd Terminal, ahk_class PuTTY | |
| GroupAdd Terminal, ahk_class mintty ; cygwin | |
| GroupAdd TerminalVim, ahk_group Terminal | |
| GroupAdd TerminalVim, ahk_class Vim | |
| ; Include IME.hak | |
| ; http://www6.atwiki.jp/eamat/pages/17.html |