Skip to content

Instantly share code, notes, and snippets.

View BitesizedLion's full-sized avatar
🔌
Nothing

Casper BitesizedLion

🔌
Nothing
View GitHub Profile
@adrianbrad
adrianbrad / .golangci.yaml
Last active March 22, 2023 12:30
golangci-lint strict config file
# .golangci.yml
run:
modules-download-mode: vendor
skip-dirs: [vendor]
linters-settings:
staticcheck:
# Select the Go version to target. The default is '1.13'.
go: "1.19"
@izzyleung
izzyleung / README.md
Last active June 5, 2024 03:23
Update your WireGuard public key in Mullvad via its public API

Generate a new pair of keys via wg

$ wg genkey | tee privatekey | wg pubkey > publickey

Rotate your public key via the same logic as in Mullvad's source code:

  • Step 1: Obtaining an access token:
$ curl -fsSL -X POST \
    -H 'Content-Type: application/json' \
@loganvolkers
loganvolkers / Byte Formatting for Google Sheets.md
Last active June 21, 2024 21:59
Byte formatting for Google Sheets
#!/usr/bin/sudo ruby
#
# revealer.rb -- Deobfuscate GHE .rb files.
#
# This is simple:
# Every obfuscated file in the GHE VM contains the following code:
#
# > require "ruby_concealer.so"
# > __ruby_concealer__ "..."