Skip to content

Instantly share code, notes, and snippets.

On vacation

Jewel Mahanta lap00zza

On vacation
Block or report user

Report or block lap00zza

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
# coding=utf-8
Handles the inter process communications between Lapzbot and the Console, without having to rely on the database
for Server / User information. This is intended to be run in a thread.
Typical UseCase:
import lapzbotAPI
lap00zza / scrapper.js
Last active Oct 16, 2017
Scrape anime info from MAL
View scrapper.js
const h2 = document.querySelectorAll("h2");
const infoH2 = (() => {
for (let i = 0; i < h2.length; i++) {
if (h2[i].innerText === "Information") return h2[i];
// holds the elements between the Information (H2) and the next H2
const elList = [];
// start from the element after the H2
let now = infoH2.nextElementSibling;
lap00zza / Abstract Equality
Last active Nov 11, 2017
Javascripts Abstract Equality Algorithm in tabular form
View Abstract Equality

Abstract Equality Comparison

Consider this expression:

x == y



Keybase proof

I hereby claim:

  • I am lap00zza on github.
  • I am lapoozza ( on keybase.
  • I have a public key whose fingerprint is 2CFE 64FF D63F CEEE 3EA4 DD1B ACBB 0D63 AD9D 3A7E

To claim this, I am signing this object:

lap00zza /
Created Sep 5, 2018
A simple shell wrapper for Windows Defender (tested with msys2/mintty)
# A simple shell wrapper for Windows Defender
defender_path="/c/Program Files/Windows Defender/MpCmdRun.exe"
if [ $1 == "--help" ]
echo "Usage:"
echo " ./defender_scan /full/path/to/file_or_directory"
echo "Note:"
lap00zza / static-server.js
Created Sep 26, 2018
Easily serve all your static files
View static-server.js
const http = require("http");
const fs = require("fs");
const path = require("path");
const util = require("util");
const PORT = process.argv[2] || 8080;
const __cwd = process.cwd();
const _access = util.promisify(fs.access);
const _readdir = util.promisify(fs.readdir);
lap00zza / start_zsh.bat
Created Oct 2, 2018
Setting up msys2 zsh on Webstorm can be a bit of a hassle. This script helps out with that. Download it and point terminal to it.
View start_zsh.bat
@echo off
set MSYS2_PATH_TYPE=inherit
set SHELL=/usr/bin/zsh
set MSYS=winsymlinks:nativestrict
"D:\msys64\usr\bin\zsh.exe" -i --login
lap00zza / urlify_headings.js
Created Oct 4, 2018
Most websites don't add anchors to headings. Its important because you can bookmark it at that spot instead of scrolling all the way down. This bookmarklet helps solve that.
View urlify_headings.js
javascript:(document.querySelectorAll("h1[id],h2[id],h3[id],h4[id],h5[id],h6[id]").forEach(x => x.innerHTML = `<a href="#${}">${x.innerHTML}</a>`))
lap00zza / idgen.js
Last active Oct 6, 2018
Quick 'n' dirty id generator
View idgen.js
const generateId = (len=16) => {
const allowedRanges = [[48, 57], [65,90], [97, 122]];
let str = "";
let expand = allowedRanges.reduce((acc, each) => {
let [start, end] = each;
let nums = [];
for(let i = start; i <= end; i++) {
return acc.concat(nums);
lap00zza / nanoWs-client.js
Last active Oct 29, 2018
A barebones WebSocket client for nodejs
View nanoWs-client.js
* nanoWS
* A very basic websocket client. Its does not fully cover rfc6455 so
* it must not used for any real world work. I wrote it to find out
* how websockets actually worked.
* @licence MIT
* @author Jewel Mahanta <>
You can’t perform that action at this time.