把 Caps Lock 變成智慧的 Control 以及 Escape :
- 單獨輕按一下就是 Escape 。
- 若按下時同時按著其他鍵,就會是 Control 。
這應該是 Vim 和 Emacs 的最佳解了!(Emacs? Bash 的快捷鍵就是 Emacs 系列的)
- Send Escape if you tap Caps Lock alone.
| #!/usr/bin/python | |
| """ | |
| msysGit to Unix socket proxy | |
| ============================ | |
| This small script is intended to help use msysGit sockets with the new Windows Linux Subsystem (aka Bash for Windows). | |
| It was specifically designed to pass SSH keys from the KeeAgent module of KeePass secret management application to the | |
| ssh utility running in the WSL (it only works with Linux sockets). However, my guess is that it will have uses for other |
| # | |
| # https://github.com/tknerr/bills-kitchen | |
| # All you need for cooking with Chef and Vagrant on Windows you will find in Bill's Kitchen | |
| # https://github.com/tknerr/linus-kitchen | |
| # An Ubuntu-based developer VM for hacking with Chef, Vagrant, Docker & Co | |
| # | |
| # Based on: https://github.com/felixrieseberg/windows-development-environment | |
| # Test-Admin is not available yet, so use... | |
| if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent| #!/usr/bin/env python | |
| # Copyright (C) 2006 by Johannes Zellner, <johannes@zellner.org> | |
| # modified by mac@calmar.ws to fit my output needs | |
| # modified by crncosta@carloscosta.org to fit my output needs | |
| # Original source: https://github.com/incitat/eran-dotfiles/blob/master/bin/terminalcolors.py | |
| import sys | |
| import os |
| #!/usr/bin/env bash | |
| #Build and install neovim for Debian | |
| #See: https://neovim.io/ | |
| #See: https://github.com/neovim/neovim/wiki/Building-Neovim#quick-start | |
| #See: https://gist.github.com/darcyparker/153124662b05c679c417 | |
| #Save current dir | |
| pushd . >/dev/null || exit |
| # curl -Lk https://gist.githubusercontent.com/prabirshrestha/279d8b179d9353fe8694/raw/.bash_profile -o ~/.bash_profile | |
| [[ -s ~/.nvm/nvm.sh ]] && . ~/.nvm/nvm.sh # This loads NVM | |
| export PATH="$HOME/.cargo/bin:$HOME/go/bin:$HOME/Library/Python/3.7/bin:$PATH" | |
| export PATH="$HOME/.config/nvim/plugins/vim-themis/bin:$PATH" | |
| stty -ixon | |
| alias pbcopy='xsel --clipboard --input' | |
| alias pbpaste='xsel --clipboard --output' |
The version of git that comes with RHEL6 is very old. I'll outline steps for compiling the latest git version on RHEL6. Working from /usr/local/src.
Following instructions for Git Pro book Getting Started Installing Git.
yum install gcc curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-ExtUtils-MakeMaker
Optional man page prereqs.
This configuration is not maintained anymore. You should think twice before using it, Breaking change and security issue will likely eventually happens as any abandonned project.