Skip to content

Instantly share code, notes, and snippets.

View jiahut's full-sized avatar
🎯
Focusing

zhijia,.zhang jiahut

🎯
Focusing
View GitHub Profile
@jiahut
jiahut / build.gradle
Last active May 22, 2019 10:34
slf4j.gradle
// Logging - slf4j logging to log4j2
// https://mvnrepository.com/artifact/org.slf4j/slf4j-log4j12
compile 'org.slf4j:slf4j-api:1.7.26'
// https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-slf4j-impl
compile group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: '2.11.2'
compile 'org.slf4j:jcl-over-slf4j:1.7.26'
compile 'org.apache.logging.log4j:log4j-api:2.11.2'
compile 'org.apache.logging.log4j:log4j-core:2.11.2'
@jiahut
jiahut / mac-optimize.md
Created February 18, 2019 02:21
mac optimize
@jiahut
jiahut / Disable_Windows_Key.reg
Last active December 19, 2020 16:32
win helper reg script
Windows Registry Editor Version 5.00
; Created by: Shawn Brink
; http://www.sevenforums.com
; Tutorial: http://www.sevenforums.com/tutorials/75295-windows-key-enable-disable.html
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,00,00,5b,e0,00,00,5c,e0,00,00,00,00
@jiahut
jiahut / polipo.config
Last active February 18, 2019 07:45
polico config proxy sock5 to http
# Sample configuration file for Polipo. -*-sh-*-
# /etc/polipo/config
# You should not need to use a configuration file; all configuration
# variables have reasonable defaults. If you want to use one, you
# can copy this to /etc/polipo/config or to ~/.polipo and modify.
# This file only contains some of the configuration variables; see the
# list given by ``polipo -v'' and the manual for more.
@jiahut
jiahut / docker-compose.yml
Created February 14, 2019 01:05 — forked from heipei/docker-compose.yml
Docker Compose for nsqd, nsqlookupd and nsqadmin, all linked
nsqlookupd:
image: nsqio/nsq
ports:
- "4160:4160"
- "4161:4161"
command: /nsqlookupd
nsqd:
image: nsqio/nsq
ports:
@jiahut
jiahut / README.md
Last active May 9, 2019 07:05
win & mac vscode settings & keybindings

backup vscode extensions

code --list-extensions >! mac-vscode-list-extensions.log

useful key

| key | note | | Mac + j | toggle panel |

@jiahut
jiahut / win.ahk
Last active February 22, 2019 14:54
win shotcut behavior like mac
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; +CapsLock::CapsLock
; CapsLock::Ctrl
; #::Ctrl
\::BackSpace
BackSpace::\
`::Escape
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]
"DisableLockWorkstation"=dword:00000001
;; You need to install https://github.com/vovkasm/input-source-switcher
;; In thу Terminal # issw show you namу of the current layout
;; (setq issw_default_lang_source "com.sogou.inputmethod.sogou.pinyin")
(setq issw_default_lang_source "com.apple.keylayout.US")
(defun my/enter-evil-state-hook()
(interactive)
(shell-command (concat "issw " issw_default_lang_source)))
(defun my/exit-evil-state-hook()