Skip to content

Instantly share code, notes, and snippets.

View r2dev2's full-sized avatar
🚀
I am web-scale

Ronak Badhe r2dev2

🚀
I am web-scale
View GitHub Profile
@r2dev2
r2dev2 / payload.js
Created November 21, 2023 07:14
Heavily commented solution to leak sql table of bug report repo of 1337CTF
// waits until a condition is met by polling every 2 ms
// i did not want to actually write truly async code, i just wanted something that
// works in a reasonable amount of time
const wait_until = (cond) => new Promise((res, rej) => {
const interval = setInterval(() => {
if (cond()) {
clearInterval(interval);
res();
}
}, 2);
@r2dev2
r2dev2 / ArrayDemo.svelte
Created July 31, 2021 15:58
Changing element of reactive array svelte
<script>
let messages = [
{ text: 'bru' },
{ text: 'moment' },
{ text: 'testing' },
{ text: '123' },
];
let hideChoice = '';
@r2dev2
r2dev2 / waifubook.js
Last active December 24, 2020 05:24
WaifuProgrammingBooks
/**
* WaifuProgrammingBooks
*
* This uses github's api to get images of anime girls holding programming books.
*
* Usage:
*
* Add <script src="https://gist.githubusercontent.com/r2dev2bb8/2e655ef24a6af288d01a8d6d823d5617/raw/1bb4db5484247c3d19ae5432168ca31f0e241c78/waifubook.js" /> to your document head
*
* waifuProgrammingBooks.getLanguages() returns a language object with key: language url
@r2dev2
r2dev2 / zoomselector.bash
Created September 25, 2020 17:42
This is my bash script for WSL2 for retrieving saved zoom links from a json. It opens the zoom link in firefox.
#!/bin/bash
hjelp="
Zoom link helper program\n
\n
Usage:\n
\t./zoomselector.bash class\n
\n
Subcommands:\n
\tinit:\n