Skip to content

Instantly share code, notes, and snippets.

View Xunnamius's full-sized avatar
🐕

Bernard Xunnamius

🐕
View GitHub Profile
@ThomasLeister
ThomasLeister / rspamd-whitelisting.md
Last active March 20, 2024 19:31
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";
@fnando
fnando / dev.conf
Created July 23, 2011 09:00
Nginx configuration for SSH tunnel
upstream tunnel {
server 127.0.0.1:3000;
}
server {
listen 80;
server_name dev.codeplane.com br.dev.codeplane.com;
location / {
proxy_set_header X-Real-IP $remote_addr;
@Xunnamius
Xunnamius / pz_sp_mod_order.md
Last active February 10, 2024 23:58
Mod load order for Project Zomboid 41

You can skip combing through these settings and copying them over one-by-one if you instead place/overwrite the saved_modlists.txt and modmanager-mods.txt files into your C:\Users\(your username)\Zomboid\Lua folder. When you next start the game, load the "Essential" mod preset in the game's Mods menu for a Single Player game. Load the "Multiplayer" mod preset if you're playing on my server.

These mods are listed in ascending order of priority, meaning mod #1 must have lowest relative priority (i.e. nearest the top of your mod load order list) and will have any conflicting code be overridden by the mods that come after it.

For map mods, however, this is reversed! The map mod that loads first claims its cells first, meaning it has the highest priority. This is why St. Bernard's Hill is the last map mod in its block but Common Sense is

// per https://docs.npmjs.com/misc/scripts, npm exposes a bunch of variables to
// the environment prefixed with npm_config_*, npm_package_* and npm_lifecycle_*.
// Here's a list of all variables exposed in my setup.
npm_config_access=
npm_config_allow_same_version=
npm_config_also=
npm_config_always_auth=
npm_config_argv='{"remain":[],"cooked":["run","foo"],"original":["run","foo"]}'
npm_config_auth_type=legacy
@MatthewVance
MatthewVance / unbound.conf
Last active January 13, 2024 02:38
Config for running Unbound as a caching DNS forwarder (performance settings optimized for Raspberry Pi 2).
server:
###########################################################################
# BASIC SETTINGS
###########################################################################
# Time to live maximum for RRsets and messages in the cache. If the maximum
# kicks in, responses to clients still get decrementing TTLs based on the
# original (larger) values. When the internal TTL expires, the cache item
# has expired. Can be set lower to force the resolver to query for data
# often, and not trust (very large) TTL values.
cache-max-ttl: 86400
#!/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() {
/* Scrollbar */
/* From Quassel Wiki: http://sprunge.us/iZGB */
QScrollBar {
background: #131313;
margin: 0;
}
QScrollBar:hover {
/* Optional: Subtle accent of scrolling area on hover */
background: #161616; /* base +2 */
}
@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 > failed-login-ips.txt
@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 / 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