Skip to content

Instantly share code, notes, and snippets.

@AndyIsHereBoi
AndyIsHereBoi / index.js
Last active November 26, 2025 08:41
Scans Discord for its voice servers.
import dns from 'node:dns';
import fetch from 'node-fetch';
import regions from "./regions.json" assert { type: "json" };
import fs from 'node:fs';
const IPINFO_API_KEY = "key here";
const loops = 15000;
var regionscomplete = {};
@farosas
farosas / chroot-nbd
Last active February 5, 2025 09:13
Script to use qemu-nbd to edit a locked image (cloud-init)
#!/bin/bash
MOUNTPOINT=/mnt/tmp_nbd
IMAGE=$1
PARTITION=${2:-/dev/nbd0p1}
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
@niksumeiko
niksumeiko / disable-html-form-input-autocomplete-autofill.md
Last active November 26, 2025 15:46
Disable HTML form input autocomplete and autofill

Disable HTML Form Input Autocomplete and Autofill

  1. Add autocomplete="off" onto <form> element;
  2. Add hidden <input> with autocomplete="false" as a first children element of the form.
<form autocomplete="off" method="post" action="">
    <input autocomplete="false" name="hidden" type="text" style="display:none;">
    ...
@dol
dol / csr.php
Last active August 13, 2020 08:20
PHP CSR with subjectAltName
<?php
$keyConfig = [
'private_key_type' => OPENSSL_KEYTYPE_RSA,
'private_key_bits' => 2048,
];
$key = openssl_pkey_new($keyConfig);
$sanDomains = [
'mydomain.tld',