Skip to content

Instantly share code, notes, and snippets.

View rexagod's full-sized avatar
💭
I may be slow to respond.

Pranshu Srivastava rexagod

💭
I may be slow to respond.
View GitHub Profile
if [[ $EUID -ne 0 ]]; then
exit 1
fi
set -e
# Remove older conflicting packages
dnf remove -y docker \
docker-client \
docker-client-latest \
@rexagod
rexagod / x.vim
Created December 15, 2020 10:16
choosing the most definitive colorscheme for vim
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"
@rexagod
rexagod / .vimrc
Last active December 11, 2020 21:31
#! /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
**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.
@rexagod
rexagod / irc101.md
Last active June 23, 2020 19:09 — forked from xero/irc.md
The Internet Relay Chat (IRC) 101!

IRC Reference

Not intended as a guide for newbies, more like a "cheat sheet" for the somewhat experienced IRC user, especially one who wields some power over a channel.

The Basics

  • /join #channel
    • Joins the specified channel.
  • /part #channel
  • Leaves the specified channel.
=== release test-crypto-domains ===
Path: parallel/test-crypto-domains
events.js:164
throw new Error("!!! " + type);
^
Error: !!! error
at Domain.emit (events.js:164:13)
at Domain.EventEmitter.emit (domain.js:474:20)
@rexagod
rexagod / gsoc19-final-work-product.md
Last active February 27, 2020 20:17
The project was divided into two parts, namely, building a `matcher.js` library and revamping Public Lab's `Leaflet.DistortableImage` repository, a helper module for `Mapknitter`.

Google Summer of Code 2019 Public Lab Final Work Product: Pranshu Srivastava

Project Details

Project Description

matcher-core essentially employs the ORB(Oriented FAST and Rotated BRIEF) algorithm to mine patterns using the well-known [FAST(Features from Accelerated Segment Test)](http://homepages.inf.ed.ac.uk/

Keybase proof

I hereby claim:

  • I am rexagod on github.
  • I am rexagod (https://keybase.io/rexagod) on keybase.
  • I have a public key ASDdn3x0Givd615aFPXE986qDpUbo1MuRhYsQm0ut_0_4go

To claim this, I am signing this object:

@rexagod
rexagod / cli-demo.sh
Last active June 23, 2019 02:28
`matcher-cli` demo (w/ static data)
echo -e $"\033[38m Hi there! 👋\n \033[34m This is a demo for the https://github.com/publiclab/matcher-cli repository,\n which in itself is a Node-based CLI utility for headlessely testing your matcher.js configurations.\n\033[34m All issues and doubts are welcome at https://github.com/publiclab/matcher-cli/issues"
while true
do
echo ""
read -p "matcher@demo ~> " argv
URL = ""
case $argv in
"matches")
URL = "https://gist.githubusercontent.com/rexagod/0b1e9dad6ba12bc93f1213f8a068686a/raw/9bbc2dba5400f55ebed40154f6f74ae4cfefaac5/matches"
;;