Skip to content

Instantly share code, notes, and snippets.

@root9b-zz
root9b-zz / get_vbox_win_dev_vm.sh
Last active July 8, 2022 23:34
Rapidly downloads the current Windows development VM, streaming the extraction and import.
#!/bin/bash
# Streaming setup of the VirtualBox Windows Dev VM. Saves lots of time, since instead of downloading a zip, then extracting it
# to an ova, then extracting that to an actual VM, it does it all in one stream, only writing the VM to disk once.
# On a Linux host or a Windows host with WSL and feeling the YOLO?
# curl -L https://bit.ly/2m9tr7B | bash
# Or just run the commands individually, it's ain't that long.
# If you use VMWare instead of VirtualBox, try curling from https://aka.ms/windev_VM_vmware and skipping the .vbox file creation
@project0
project0 / ad_password_reset.go
Last active May 6, 2024 09:47
Go AD password reset
package passwordresetservice
import (
"crypto/tls"
"fmt"
ldap "github.com/go-ldap/ldap"
"golang.org/x/text/encoding/unicode"
ber "gopkg.in/asn1-ber.v1"
)