Skip to content

Instantly share code, notes, and snippets.

View dumbmoron's full-sized avatar
😹

jj dumbmoron

😹
  • 04:58 (UTC +02:00)
View GitHub Profile
@dumbmoron
dumbmoron / rpgrep
Last active February 12, 2024 19:19
#!/bin/sh
# rpgrep - recursive pgrep(1)
[ $# = 0 ] \
&& echo "usage: $0 <pid>" \
&& exit 1
get_children() {
pgrep -P "$1" | \
while read pid; do
#include <stdio.h>
#define dont int
#define care main(
#define CURSE void
#define OF ) {
#define RA 0;
#define 𓀷 int
#define 𓃰 if
#define 𓂔 {
#define 𓂕 }
#!/usr/bin/env bash
# utility for syncing docker images across repos, or even registries
# depends on regclient. installation guide: https://github.com/regclient/regclient/blob/main/docs/install.md
# edit IMAGE_A and IMAGE_B below to whatever you want
# if the tags exist on both sides, but differ, A is the authoritative source (B will be overwritten)
IMAGE_A="ghcr.io/wukko/cobalt"
IMAGE_B="ghcr.io/justusecobalt/cobalt"
set -eu -o pipefail
@dumbmoron
dumbmoron / ideas.md
Last active February 11, 2024 17:59

feel free to implement these if you want, just let me know at log[@]riseup.net once you are done so i can see it =]

  • OBS layout to ffmpeg command converter
@dumbmoron
dumbmoron / dog.gif
Last active November 19, 2023 21:12
dog.gif
#!/bin/sh
echo -en "Enter username: "
read W_USERNAME
echo -en "Enter password: "
read W_PASSWORD
TS=$(date +%s)
AUTH_HASH=$(echo -en "952b4412f002315aa50751032fcaab03$TS" | md5sum | cut -d' ' -f1)
#!/bin/sh
RAND=$(uuidgen)
CHALLENGE=$(echo -en "$RAND" | sha256sum | cut -d' ' -f1)
INIT_DATA=$(curl -X POST 'https://api.nordvpn.com/v1/users/oauth/login'\
-H 'Content-Type: application/json'\
-d '{"preferred_flow": "login", "challenge": "'$CHALLENGE'"}' \
)
REDIRECT_URI=$(echo "$INIT_DATA" | jq -r .redirect_uri)
ATTEMPT=$(echo "$INIT_DATA" | jq -r .attempt)
window.k = (() => {
const p = [
['٩', '۶'],
['o', 'o'],
['☆*:.。.o', 'o.。.:*☆'],
['。゚', '゚。'],
['⸜', '⸝'],
['', 'ノ~ ♡'],
['╰', '╯♡'],
['┌∩┐', '┌∩┐'],