Skip to content

Instantly share code, notes, and snippets.

View Xunnamius's full-sized avatar
🐕

Bernard Xunnamius

🐕
View GitHub Profile
@Xunnamius
Xunnamius / pz_sp_known_problems.md
Last active March 13, 2023 15:03
Known problems with Project Zomboid 41
  • In Trelai, there is a building on the river (accessible via the boardwalk) that is missing some of its floor tiles, and upon entering the building you'll be immediately "drenched". You might also glitch through the locked reinforced door and be unable to escape. Be careful around this building.

  • Wildberries is a somewhat old map and as such has some glitchy tile issues and some roomes where you might fall through the floor/wall and break a limb or die, so be very very careful as you move around!

  • Seems like Sam Fisher's Night Vision Googles (from Brita's mod) are not working. Might consider adding in a working NVG mod.

  • One or more of the mods have a VRAM leak. Might be Brita's mods, might be one of the map mods. Either way, after 48-96 hours of continuous gameplay, make sure to keep an eye on your VRAM usage levels. Once you have less than a gig rema

@Xunnamius
Xunnamius / pz_sp_sandbox_settings.md
Last active July 23, 2023 19:01
Suggested sandbox settings for Project Zomboid 41

Anything unlisted was left at default.

Warning! These are pretty hardcore settings (to me), but they're not insane if you're skilled or like a challenge.

You can skip all of this and just load all these settings easily as a preset by adding the Fear The Dark (SP).cfg file under C:\Users\(your username)\Zomboid\Sandbox Presets\Fear The Dark (SP).cfg and then loading the preset in the sandbox settings menu.

  • Population > Zombie Count: High
  • Time > Start Time: 12am (more time to loot, can catch the early fishing show on TV, easier to count in-game days)
  • Nature > Erosion Speed: Slow
  • Sadistic AI Director > Helicopter: Sometimes (I think Expanded Helicopter Events mod overrides this, but just in case)
@Xunnamius
Xunnamius / clear.bash
Created December 3, 2021 02:48
Completely clear / delete all the GitHub Actions workflow run history of a GitHub repository
for a in $(curl -qs "https://api.github.com/repos/<OWNER>/<REPO>/actions/runs" | jq -r '.workflow_runs[].id'); do curl -X DELETE -H "Accept: application/vnd.github.v3+json" -H "Authorization: token <TOKEN>" "https://api.github.com/repos/<OWNER>/<REPO>/actions/runs/$a"; done
@joejordanbrown
joejordanbrown / gh-cleanup-releases-tags.sh
Last active April 27, 2025 14:50
GitHub Cli - Delete all releases and tags in repo.
#! /bin/sh
for num in `gh release list 2>/dev/null | awk '{print $1}'`; do
gh release delete $num -y
done
for num in `gh api repos/:owner/:repo/tags | jq -r '.[].name'`; do
gh api repos/:owner/:repo/git/refs/tags/${num} -X DELETE
echo '✓ Deleted tag' $num
done
#!/bin/bash -e
verbosity=info
tokfile="/tmp/tok-$$"
domlist_pfx="/tmp/doms-$$-"
doctl_tokens=(
# Place all your DO personal access tokens here in this array as simple text, preferably one per line
)
function log() {
@Xunnamius
Xunnamius / workaround.md
Created May 6, 2020 16:52
WSL2 External Host (LAN) Access Workaround

Step 1: netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=3000 connectaddress=localhost connectport=3000
Step 2: Add Allow local routing to ports 3000-4000 rule to Windows Firewall's inbound connection ruleset

@panoply
panoply / equal-width.md
Last active April 3, 2025 20:10
2 column full width table for github markdown

Equal widths

Github markdown full-width 2 column table.

@AvasDream
AvasDream / log-analysis.md
Last active August 31, 2023 07:36
Monitor your ssh login attempts with Fail2ban and make a graph with python and the shodan api.

Analyse SSH Logins

We are looking at the auth.log file in /var/log/auth.log.

All the login attempts were captured in a time frame of ~3 Hours.

Get all Ips from logfile.

sudo cat /var/log/auth.log | grep "Failed password" | awk -F 'from' '{print $2}' | cut -d" " -f2 &gt; failed-login-ips.txt
@ThomasLeister
ThomasLeister / rspamd-whitelisting.md
Last active February 15, 2025 06:19
How to whitelist IP addresses or domains in Rspamd

Whitelist IP addresses based on pre-filter policy

/etc/rspamd/local.d/multimap.conf:

  IP_WHITELIST {
      type = "ip";
      prefilter = true;
      map = "/${LOCAL_CONFDIR}/local.d/ip_whitelist.map";
 action = "accept";
@joedski
joedski / unboxing-parameters-and-return-types-and-key-enumerations.ts
Created June 28, 2018 03:16
Wherein I finally learn how to unbox and rebox things in Typescript for great genericization justice and the great annoyance of my coworkers.
interface BoxA<T> {
a: T;
}
interface BoxB<T> {
b: T;
}
type BoxerA<T> = (a: T) => BoxA<T>;