Skip to content

Instantly share code, notes, and snippets.

View jstangroome's full-sized avatar

Jason Stangroome jstangroome

View GitHub Profile
@tburrows13
tburrows13 / factorio-2.0-mod-porting.md
Last active January 26, 2025 15:59
Factorio 2.0 mod porting guide
@0xdevalias
0xdevalias / reverse-engineering-golang.md
Last active April 28, 2026 20:20
Some notes, tools, and techniques for reverse engineering Golang binaries
@candlerb
candlerb / go-project-layout.md
Last active December 27, 2025 05:36
Suggestions for go project layout

If someone asked me the question "what layout should I use for my Go code repository?", I'd start by asking back "what are you building: an executable, or a library?"

Single executable

Stage 1: single source file

Create a directory named however you want your final executable to be called (e.g. "mycommand"), change into that directory, and create the following files:

@adamshand
adamshand / sshfp2cf.sh
Last active May 8, 2025 12:35
Automatically Add SSHFP Records to Cloudflare
#!/bin/bash
# Written by Adam Shand <[email protected]> 24 Mar 2023
# Inspired by: https://gist.github.com/mikroskeem/8cd3492ce2aa6699c2fa9db3545a58f1#file-setup_sshfp-sh
# TIPS
# - if ssh host and dns zone are the same, prefix ssh server hostname with a dot (eg. .example.nz)
# - set 'StrictHostKeyChecking accept-new' and 'VerifyHostKeyDNS yes' in ~/.ssh/config
# Use global api key or create a restricted token: https://dash.cloudflare.com/profile/api-tokens
@jdoss
jdoss / LUKS_and_TPM2_with_Fedora.md
Last active May 5, 2026 14:46
Decrypt LUKS volumes with a TPM on Fedora Linux

Decrypt LUKS volumes with a TPM on Fedora Linux

This guide allows you to use the TPM on your computer to decrypt your LUKS encrypted volumes. If you are worried about a cold boot attack on your hardware please DO NOT use this guide with your root volume!

Preflight Checks

Verify that you have a TPM in your computer:

# systemd-cryptenroll --tpm2-device=list
PATH DEVICE DRIVER
@SwitHak
SwitHak / 20211210-TLP-WHITE_LOG4J.md
Last active April 30, 2026 10:26
BlueTeam CheatSheet * Log4Shell* | Last updated: 2021-12-20 2238 UTC

Security Advisories / Bulletins / vendors Responses linked to Log4Shell (CVE-2021-44228)

Errors, typos, something to say ?

  • If you want to add a link, comment or send it to me
  • Feel free to report any mistake directly below in the comment or in DM on Twitter @SwitHak

Other great resources

  • Royce Williams list sorted by vendors responses Royce List
  • Very detailed list NCSC-NL
  • The list maintained by U.S. Cybersecurity and Infrastructure Security Agency: CISA List
@cyrenity
cyrenity / compile-and-install-freeswitch-1.10.x-on-ubuntu.md
Last active May 5, 2026 20:13
Install FreeSWITCH 1.10.x on Ubuntu 18.04 | 20.04 | 22.04 LTS

Installing FreeSWITCH 1.10.X on Ubuntu 18.04 | 20.04 | 22.04 LTS

Warning

Debian 13 (Trixie) and Modern Distros:
Modern repositories have dropped several legacy dependencies (like PCRE1 and FFmpeg 5) required by older architectures. If you are compiling on a newer OS (Debian 12, Debian 13), please refer to our updated Ultimate Guide to Compiling FreeSWITCH from Source to avoid compilation failures.

Introduction

FreeSWITCH is a software defined telecom stack that runs on any commodity hardware. FreeSWITCH can handle voice, video and text communication and support all popullar VoIP protocols. FreeSWITCH is flexible and modular, and can be used in any way you can imagine

[wsl2]
kernel=C:\\Users\\JAKA\\vmlinux
@jrapoport
jrapoport / different-ssh-deploy-keys-multiple-private-repos-github-go-mod.md
Last active March 17, 2025 15:29
How to use different ssh deploy keys for multiple private github repositories with Golang Modules (go mod)

How to use different ssh deploy keys for multiple private github repositories with Go Modules

Let's assume you are using Go Modules and have a go.mod file that contains multiple private repos each with a different ssh key. How can you get go mod download to do the right thing -- i.e. use ssh key A with private repo A and ssh key B with private repo B?

Ok, here we go!

Let's assume you have some github.com user with multiple private repos:

https://github.com/someuser/private-repo-1

@phil-blain
phil-blain / .gitattributes
Last active April 21, 2026 06:28
Git pickaxe : show only relevant hunks (filter displayed hunks using the given search string)
*.md diff=markdown