Skip to content

Instantly share code, notes, and snippets.

View TehPeGaSuS's full-sized avatar

TehPeGaSuS TehPeGaSuS

View GitHub Profile
@TehPeGaSuS
TehPeGaSuS / duckhunt_shop.md
Last active January 31, 2025 18:31
Duck Hunt Shop
Duck Hunt - shop
@TehPeGaSuS
TehPeGaSuS / IPv4_CIDR.md
Last active June 17, 2024 09:32
CIDR Masks
CIDR Notation Prefix Length Subnet Mask (Decimal) Network Address Address Range Total Hosts
/8 8 255.0.0.0 167.0.0.0/8 167.0.0.0 - 167.255.255.255 16,777,216
/16 16 255.255.0.0 167.94.0.0/16 167.94.0.0 - 167.94.255.255 65,536
/24 24 255.255.255.0 167.94.138.0/24 167.94.138.0 - 167.94.138.255 256
/32 32 255.255.255.255 167.94.138.125/32 167.94.138.125 1

Details | CIDR Notation | Explanation |

@TehPeGaSuS
TehPeGaSuS / UnrealIRCd Systemd.md
Last active July 19, 2025 21:26
UnrealIRCd Systemd Service Units
@TehPeGaSuS
TehPeGaSuS / Anope Systemd.md
Last active August 30, 2025 09:16
Anope Systemd Service Units
@TehPeGaSuS
TehPeGaSuS / weechat_renew.sh
Last active June 14, 2025 21:38
Automated renewal of WeeChat relay certificate
#!/usr/bin/env bash
#-----------------------------------------------------------------------------------#
# Shell script to manage WeeChat relay certificates with Let's Encrypt and Certbot #
# #
# Edit paths and/or commands according to your OS, etc #
# #
# NOTE: This script was tested on Ubuntu 20.04+ #
#-----------------------------------------------------------------------------------#
/* Original Module Author: Adam
* Updated for 1.9.4 (and beyond?): Laura
* Updated for 2.x: Gottem
* Data of Original: 14/02/10
* Date of This Version: 2019/04/25
**********************************************
* Module used in: Nickserv
* Syntax: /ns saregister 'nick' 'pass' 'email'
**********************************************
*/
@TehPeGaSuS
TehPeGaSuS / Quassel_Error.md
Created November 18, 2023 22:51
Quassel asks to be reconfigured on connectivity loss

/lib/systemd/system/quasselcore.service

[Unit]
Description=distributed IRC client using a central core component
Documentation=man:quasselcore(1)
Wants=network-online.target postgresql.service
After=network-online.target postgresql.service

[Service]
User=quasselcore
/*--------------------------------------------------------------
* Name: ns_massset
* Author: LEthaLity 'Lee' <[email protected]>, PeGaSuS
* Date: 4th November 2023
* Version: 0.3
* --------------------------------------------------------------
* This module provides the ability for a Services Oper with the
* nickserv/massset privilege to change NickServ settings for
* all registered users.
* This module is usually only loaded when needed, to undo something
@TehPeGaSuS
TehPeGaSuS / disposable_emails.conf
Last active July 7, 2023 12:52
Badwords blocks with disposable emails list to use with UnrealIRCd. This should keep the usage of disposable emails low.
badword all { word "*0-mail.com*"; action block; }
badword all { word "*027168.com*"; action block; }
badword all { word "*0815.ru*"; action block; }
badword all { word "*0815.ry*"; action block; }
badword all { word "*0815.su*"; action block; }
badword all { word "*0845.ru*"; action block; }
badword all { word "*0box.eu*"; action block; }
badword all { word "*0clickemail.com*"; action block; }
badword all { word "*0n0ff.net*"; action block; }
badword all { word "*0nelce.com*"; action block; }

apt install apache2 apache2-utils php8.1 libapache2-mod-php8.1 php8.1-amqp php8.1-dev php8.1-igbinary php8.1-mongodb php8.1-pspell php8.1-sqlite3 php8.1-xsl php8.1-apcu php8.1-ds php8.1-imagick php8.1-msgpack php8.1-ssh2 php8.1-ast php8.1-enchant php8.1-imap php8.1-mysql php8.1-raphf php8.1-sybase php8.1-yaml php8.1-bcmath php8.1-interbase php8.1-oauth php8.1-readline php8.1-tidy php8.1-zip php8.1-bz2 php8.1-gd php8.1-intl php8.1-odbc php8.1-redis php8.1-uopz php8.1-zmq php8.1-cgi php8.1-gearman php8.1-ldap php8.1-opcache php8.1-rrd php8.1-uploadprogress php8.1-cli php8.1-mailparse php8.1-pcov php8.1-smbclient php8.1-uuid php8.1-common php8.1-gmp php8.1-mbstring php8.1-pgsql php8.1-snmp php8.1-xdebug php8.1-curl php8.1-gnupg php8.1-memcache php8.1-phpdbg php8.1-soap php8.1-xml php8.1-dba php8.1-http php8.1-memcached php8.1-ps php8.1-xmlrpc