Skip to content

Instantly share code, notes, and snippets.

View Xunnamius's full-sized avatar
🐕

Bernard Xunnamius

🐕
View GitHub Profile
@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

@sinewalker
sinewalker / compositing.md
Created March 9, 2018 23:30
Toggle compositing in KDE

qdbus org.kde.KWin /Compositor org.kde.kwin.Compositing.active

Gives you true or false depending on whether it is currently enabled or not

You can enable compositing by calling

qdbus org.kde.KWin /Compositor org.kde.kwin.Compositing.resume

and disable by calling

@garethrees
garethrees / php-fpm.ini
Last active November 4, 2021 21:56
Default php fpm pool configuration
; Start a new pool named 'www'.
[www]
; The address on which to accept FastCGI requests.
; Valid syntaxes are:
; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on
; a specific port;
; 'port' - to listen on a TCP socket to all addresses on a
; specific port;
; '/path/to/unix/socket' - to listen on a unix socket.
@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
@morewry
morewry / monorepo-tool-comparison.md
Last active May 11, 2022 08:54
Comparison of Monorepo Tools For Web Client / Front End Projects (That Probably Use HTML, CSS, and JS)

Mono Repository Tool Comparison

For Web Client / Front End Projects

(That Probably Use HTML, CSS, and JS)

I made a list of 20 things I might want out of a monorepo tool for a Design System to use as a basis for comparing some of the options including Lerna, Northbrook, and Rush.

⚠️ Northbrook's author says the project is pretty dead and now uses Lerna.

Qualifications Wanted

@mxmerz
mxmerz / ANSI-Test.sh
Created November 2, 2015 16:29
Shell script to test support of ANSI color and style codes
# ANSI Start Codes
# Styles.
Normal="\x1b[0m"
Bold="\x1b[1m"
Faint="\x1b[2m"
Italic="\x1b[3m"
Underline="\x1b[4m"
Blink_Slow="\x1b[5m"
Blink_Rapid="\x1b[6m"
@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 / cloudSettings
Last active March 22, 2023 01:27
[LINUX] Visual Studio Code Settings Sync Gist
{"lastUpload":"2023-02-12T14:30:28.930Z","extensionVersion":"v3.4.3"}
@Xunnamius
Xunnamius / pz_sp_recommendations.md
Last active April 8, 2023 03:21
Recommendations for Project Zomboid 41

These suggestions assume you've enabled ALL mods from this collection.

Generic Suggestions

  • Consider giving Project Zomboid more memory. If you do this, you might also need to raise the ProjectZomboid64.exe process priority in Windows to prevent the game from being killed by the OS.

  • Set the Save Our Stations mod settings to "reliable" Edit the SteamLibrary\steamapps\workshop\content\108600\2398274461\mods\Save Our Station - Core\media\lua\shared\SWWS_Config.lua file (wherever you have it located) and change the following two lines to the listed values: ... What this will do is make the "breakdown" events about 4x less likely to happen, so they'll happen every couple months instead of every couple weeks.

  • Ensure 2X texture size option is enabled or some mods will not function properly

@Xunnamius
Xunnamius / pz_sp_changelog.md
Last active May 12, 2023 09:40
A list of changes between versions of this Project Zomboid collection

Only the addition and subtraction of mods will be listed here. To see how each gist changed, check out their respective "Revisions" tab.

  • [05/12/2023] Added several mods: Improvized Silencers by Maxwell218, Improved Muzzle Flash, WeBuildZ: Barricade, Gun Stock Attack [READ DESC], Cheval de frise, Barricade Hurt Zombies, Easy Engine Rebuild, AutoMechanics, CorpseStudy (fork / remake by ttr), Radial Menu API, Visible Generator Range, Generator Time Remaining, Nepenthe's Colored Battery Status, Cookie Tile Pack (To Be Continued), Simon MDs Tiles
  • [03/17/2023] Added Generator's magazine without RNG because my character has been alive for 5 months and I still can't find a f@#$ing generator manual.
  • [03/10/2023] Added Big Noise Generator and Long Range Remote mods
  • [03/08/2023] Added [How Strong Is That W