Skip to content

Instantly share code, notes, and snippets.

@syqrefind
syqrefind / git.plugin.zsh
Created April 29, 2024 21:45 — forked from DavidToca/git.plugin.zsh
oh-my-zsh git alias
# Aliases
alias g='git'
compdef g=git
alias gst='git status'
compdef _git gst=git-status
alias gl='git pull'
compdef _git gl=git-pull
alias gup='git fetch && git rebase'
compdef _git gup=git-fetch
alias gp='git push'
@syqrefind
syqrefind / proxy.js
Created July 26, 2021 13:26 — forked from beradrian/proxy.js
CORS proxy with node-http-proxy
/** If you want to use the local development environment with the dev backend,
* this will create a proxy so you won't run into CORS issues.
* It accepts the following command line parameters:
* - port the port where the proxy will listen
* - target the DEV backend target to contact.
* Example: If you set the port to 3000 and target to https://dev.nibo.ai then
* your actual "resourceBaseUrl" in NiboSettings should be http://localhost:3000/api/v1
*/
// Define the command line options
const optionDefinitions = [
@syqrefind
syqrefind / NERDTree.mkd
Created February 12, 2019 18:17 — forked from m3nd3s/NERDTree.mkd
My Vim Cheat Sheet

NERDTree

o.......Open files, directories and bookmarks....................|NERDTree-o|
go......Open selected file, but leave cursor in the NERDTree.....|NERDTree-go|
t.......Open selected node/bookmark in a new tab.................|NERDTree-t|
T.......Same as 't' but keep the focus on the current tab........|NERDTree-T|
i.......Open selected file in a split window.....................|NERDTree-i|
gi......Same as i, but leave the cursor on the NERDTree..........|NERDTree-gi|
s.......Open selected file in a new vsplit.......................|NERDTree-s|
gs......Same as s, but leave the cursor on the NERDTree..........|NERDTree-gs|

O.......Recursively open the selected directory..................|NERDTree-O|

@syqrefind
syqrefind / install-oh-my-zsh-on-ubuntu
Created May 1, 2018 06:42 — forked from richardtape/install-oh-my-zsh-on-ubuntu
Install Oh My ZSH on Ubuntu 14.04
# Where is the location of your current shall. Useful if we need to revert
echo $0
# Install ZSH
sudo apt-get install zsh
# Instal GIT
sudo apt-get install git-core
# Install OhMyZSH
@syqrefind
syqrefind / Mac OS X.md
Created April 27, 2018 00:05
常用Mac软件和工具 Useful Mac OS X Tools

常用软件 Useful Softwares

键盘/鼠标/触摸板 Keyboard/Mouse/Touchpad

  • CatchMouse

Help catch the Cursor when having multiple screens.

  • Wraparound

Allows cursor to traverse another screen each time it hits borders.

  • Reverse Scrolling

Allows separate scroll settings for touchpad and mouse.

  • BetterTouchTool

屏幕 Screen