aboutsummaryrefslogtreecommitdiff
path: root/Personal
diff options
context:
space:
mode:
authorSteve Lee <me@xiangyangli.com>2017-12-02 06:10:20 +0800
committerSteve Lee <me@xiangyangli.com>2017-12-02 06:10:20 +0800
commit9b939e65cf007e859dabe5de6b31d255d647e0ce (patch)
treebf9229755f4e58bb81add73c7f3c32fe4023e7ec /Personal
parent5dc061ae68ac3b5b28556bdbd1574579d8da33e7 (diff)
download42-9b939e65cf007e859dabe5de6b31d255d647e0ce.tar.xz
42-9b939e65cf007e859dabe5de6b31d255d647e0ce.zip
category
Diffstat (limited to 'Personal')
-rw-r--r--Personal/Notes/audio_problem_with_thinkpad_ultrabase_dock_on_x220.md1
-rw-r--r--Personal/Notes/mysql/having.md3
-rw-r--r--Personal/Notes/zsh.md3
-rw-r--r--Personal/draft/map_ctrl_to_both_esc_and_ctrl.md2
-rw-r--r--Personal/draft/multiple_ssh_key_setting.md24
-rw-r--r--Personal/draft/socks_on_linux_app.md14
6 files changed, 47 insertions, 0 deletions
diff --git a/Personal/Notes/audio_problem_with_thinkpad_ultrabase_dock_on_x220.md b/Personal/Notes/audio_problem_with_thinkpad_ultrabase_dock_on_x220.md
new file mode 100644
index 0000000..aefadc0
--- /dev/null
+++ b/Personal/Notes/audio_problem_with_thinkpad_ultrabase_dock_on_x220.md
@@ -0,0 +1 @@
+alsactl init solve it
diff --git a/Personal/Notes/mysql/having.md b/Personal/Notes/mysql/having.md
new file mode 100644
index 0000000..3ff342e
--- /dev/null
+++ b/Personal/Notes/mysql/having.md
@@ -0,0 +1,3 @@
+group_by having count(a) sum(a+b) > 2
+
+对某一个group的某些字段操作之后的filter
diff --git a/Personal/Notes/zsh.md b/Personal/Notes/zsh.md
new file mode 100644
index 0000000..76780f5
--- /dev/null
+++ b/Personal/Notes/zsh.md
@@ -0,0 +1,3 @@
+The duplicate char, also solve the chinese display and input
+export LANG=en_US.UTF-8
+export LC_ALL=en_US.UTF-8
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