Fixes: nodejs/node#29829
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
**The text below is publicly available at https://gist.github.com/rexagod/39c3121f66cd799c40fc5932adb8467a as well.** | |
Author: Pranshu Srivastava -- "@rexagod" | |
Project: Node.js (https://github.com/nodejs/node) | |
Role: Collaborator (Collaborators are core members of the Node.js ecosystem, responsible for module life-cycles and quality commits aimed at critical and major bugs. There are approx. 100 Node.js Collaborators worldwide, 3 of whom are from India. Look for "rexagod" @ https://github.com/nodejs/node#collaborators) | |
Contributions: | |
- Helped triage issues concerning the core modules and the Jenkins CI. | |
- Made significant contributions to various parts of the code-base, including Buffer, Streams, HTTP/1/2, Readline, and URL core modules. | |
- Member of HTTP, Streams, and Testing Working Groups. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/vim | |
" Vim is a lot like Javascript: it allows you to play fast and loose with types{{{ | |
" sometimes, but it's a really bad idea to do so because it will come back to | |
" bite you at some point. | |
" ~ Steve Losh.}}} | |
" Author: @rexagod | |
" Plugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let colorschemes = split(globpath('~/.vim/plugged/vim256-color/colors/', '*'), '\n') | |
let wcc = [] | |
for i in colorschemes | |
call add(wcc, [split(system('wc -l '.i))[0], i]) | |
endfor | |
echo reverse(sort(wcc, {a,b -> a[0] - b[0]})) | |
""x.vim" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [[ $EUID -ne 0 ]]; then | |
exit 1 | |
fi | |
set -e | |
# Remove older conflicting packages | |
dnf remove -y docker \ | |
docker-client \ | |
docker-client-latest \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [[ $EUID -ne 0 ]]; then | |
exit 1 | |
fi | |
set -e | |
egrep '^flags.*(vmx|svm)' /proc/cpuinfo || exit 1 | |
dnf group install --with-optional virtualization | |
systemctl start libvirtd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Resource endpoints | |
declare -A pull | |
pull=( | |
["docker"]='rexagod/f16bc3cde0cdde21b1f20473f701bc07/raw/a3ff4edf6629ed63d4d45f2068807a060e1009ef/docker.bash' | |
["k8s"]='rexagod/a0a8cb19770fee943c91b0abd4ab9a7f/raw/cddb0aa687fe988c15d58a23997e717034f148f4/k8s.bash' | |
["kvm"]='rexagod/53223bd451d372b2299351ffdfd818b0/raw/c45e48697b25d6f689998264ed8aa2034a669110/kvm.bash' | |
) | |
printf "=> %s\n" "${!pull[@]}" | |
echo "Press <Enter> to install all of the above packages." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" grep! | |
function! s:ToggleQuickFix() | |
if empty(filter(getwininfo(), 'v:val.quickfix')) | |
copen | |
else | |
cclose | |
endif | |
endfunction | |
function! s:Grepper(type) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Mappings based on autocommands. | |
" Autocommands can also be chained. | |
" au Filetype javascript nn <buffer> <M-a> :!node %<cr> | |
" <buffer> points to the script the com was declared in | |
" nn <buffer> <leader>l :echom expand('%')<cr> | |
" OPERATOR-PENDING MAPPING | |
" :normal hides the effect of the preceding operator | |
" onoremap in( :<c-u>normal! f(vi(<cr> | |
" onoremap in( :<c-u>normal! f{vi}<cr> | |
" normal does not recognise special symbols like <cr> |