diff options
Diffstat (limited to 'Personal/draft')
| -rw-r--r-- | Personal/draft/map_ctrl_to_both_esc_and_ctrl.md | 2 | ||||
| -rw-r--r-- | Personal/draft/multiple_ssh_key_setting.md | 24 | ||||
| -rw-r--r-- | Personal/draft/socks_on_linux_app.md | 14 |
3 files changed, 40 insertions, 0 deletions
diff --git a/Personal/draft/map_ctrl_to_both_esc_and_ctrl.md b/Personal/draft/map_ctrl_to_both_esc_and_ctrl.md new file mode 100644 index 0000000..d7722da --- /dev/null +++ b/Personal/draft/map_ctrl_to_both_esc_and_ctrl.md @@ -0,0 +1,2 @@ +xcape -e 'Control_L=Escape' +xcape -e "Shift_L=parenleft;Shift_R=parenright" diff --git a/Personal/draft/multiple_ssh_key_setting.md b/Personal/draft/multiple_ssh_key_setting.md new file mode 100644 index 0000000..07772dc --- /dev/null +++ b/Personal/draft/multiple_ssh_key_setting.md @@ -0,0 +1,24 @@ +~/.ssh/config alias +gitDir/.git/config + +change + +# ~/.ssh/config +Host work + HostName bitbucket.org + IdentityFile ~/.ssh/work + +Host personal + HostName bitbucket.org + IdentityFile ~/.ssh/personal +And then in my project's local git config, I changed the host part of the remote URL to the appropriate host. For example, in the following file: + +# ~/repos/myworkproject/.git/config +# or you can access this file by going into the repo and running `git config -e` +...snip... +[remote "origin"] + fetch = ... + url = git@bitbucket.org:mybitbucketusername/myworkproject.git +Change the url line to: + +url = git@work:mybitbucketusername/myworkproject.git diff --git a/Personal/draft/socks_on_linux_app.md b/Personal/draft/socks_on_linux_app.md new file mode 100644 index 0000000..9ec8c15 --- /dev/null +++ b/Personal/draft/socks_on_linux_app.md @@ -0,0 +1,14 @@ +using tsocks + +apt-get install tsocks + +/etc/tsocks.conf +server = 127.0.0.1 +server_type = 5 +server_port = 1080 + +usage: + +tsocks wget url +tsocks pear +tsocks gems |
