Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
let g:PYTHON3 = has('python3') | |
let g:PYTHON = has('python') || has('python3') | |
let g:UNIX = has('unix') || has('macunix') || has('win32unix') | |
if has('multi_byte') | |
let g:UNICODE = 0 | |
if &termencoding == '' | |
let &termencoding = &encoding | |
endif | |
if $LC_ALL =~? '\vutf-?8' || $LANG =~? '\vutf-?8' |
# https://stackoverflow.com/a/63670795/4293785 | |
parameters: | |
- name: RunTask | |
displayName: Run task? | |
type: boolean | |
default: true | |
steps: | |
- pwsh: Write-Host "always run this task" |
import groovy.util.Eval | |
def compareArrays(def first, def path = '', def second) { | |
if (first instanceof java.util.LinkedHashMap) { | |
first.each { index, value -> | |
if ( index.indexOf('-') > 0 ) { | |
index = index.inspect() | |
} | |
if ( value instanceof java.util.LinkedHashMap ) { | |
def newPath = path ? path + "." + index : index |
[user] | |
gui = gitk | |
[push] | |
default = current | |
;default = matching | |
;default = simple | |
[rebase] | |
autosquash = false | |
[core] | |
autocrlf = false |
🌺 Minimalist Vim Plugin Manager |
KeyPress event, serial 34, synthetic NO, window 0x4000001, | |
root 0x139, subw 0x0, time 356984, (-111,112), root:(600,476), | |
state 0x0, keycode 49 (keysym 0x60, grave), same_screen YES, | |
XLookupString gives 1 bytes: (60) "`" | |
XmbLookupString gives 1 bytes: (60) "`" | |
XFilterEvent returns: False | |
KeyPress event, serial 37, synthetic NO, window 0x4000001, | |
root 0x139, subw 0x0, time 360368, (-107,104), root:(604,468), | |
state 0x0, keycode 94 (keysym 0x3c, less), same_screen YES, |
{ | |
"aururl": "https://aur.archlinux.org", | |
"buildDir": "$HOME/.cache/yay/", | |
"absdir": "$HOME/.cache/yay/abs", | |
"editor": "vim", | |
"editorflags": "", | |
"makepkgbin": "/usr/bin/makepkg", | |
"makepkgconf": "", | |
"pacmanbin": "/usr/bin/pacman", | |
"pacmanconf": "/etc/pacman.conf", |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
function k8s_context_prompt { | |
local kube_namespace | |
kube_namespace="$(kubectl config view --minify --output 'jsonpath={..namespace}' 2>/dev/null)" | |
# Set namespace to 'default' if it is not defined | |
kube_namespace="${kube_namespace:-default}" | |
echo -e "$(kubectl config current-context):${kube_namespace}" | |
} |