Skip to content

Instantly share code, notes, and snippets.

View TehPeGaSuS's full-sized avatar

TehPeGaSuS TehPeGaSuS

View GitHub Profile
@TehPeGaSuS
TehPeGaSuS / ignore.cpp
Created November 15, 2025 21:26
Ignore module for ZNC, based on srd424 work (https://codeberg.org/srd424/modignore.git)
/* Based on srd424 ignore module (https://codeberg.org/srd424/modignore.git)
* Merged ignore.h and ignore.cpp for simplicity of use
*/
#include <znc/User.h>
#include <znc/Modules.h>
#include <znc/znc.h>
#include <regex.h>
#include <vector>
@TehPeGaSuS
TehPeGaSuS / away_msgs.md
Created November 6, 2025 18:47
Some ranting about away messages cloned from https://sackheads.org/~bnaylor/spew/away_msgs.html

Away messages suck. Please turn them off.

You see, nobody on IRC gives a rat's ass where you are at any given point in the day. If they do, they can contact you via more appropriate, private means.

In the meantime, there are forty other people on the channel you're spamming with your play-by-plays who are all on ten or twenty other channels themselves. Your stupid

* randomgit is back: I'm done pissing now!

messages are forcing them to at least look at a window and read something they don't care about, potentially they even have to wiggle their mice around and click on things in order to find out you've run out of pork rinds and are going down to the Minute Mart for more.

Were you even talking to anyone before you announced that? Do any of your actual *friends* need to know? No! That's the beauty of IRC: it's asynchronous. If you're leaving your client connected anyway, the messages will still be there when you get back! It isn't like talking to your grandma on the phone. You can scroll right u

@TehPeGaSuS
TehPeGaSuS / anope_msmtp_gmail.md
Last active September 20, 2025 20:32
Anope + MSMTP + Gmail

You've set up your IRC server and you have Anope running smoothly, but now you want email confirmation?

Here's a small tutorial on how to do it, using Gmail as email relay, which you can reuse to make it work with your own email server.

NOTE: For the purpose of this tutorial I'm assuming you're using Ubuntu/Debian, nano editor and that there's no SMTP server running on your machine.


Enable app password for your Gmail account

Follow this YouTube tutorial to enable an app password for your account and save the password on a safe location because you're going to see it only once.

@TehPeGaSuS
TehPeGaSuS / cleansoju
Last active November 12, 2025 07:14
Soju user systemd and certificate reload
#!/usr/bin/env bash
#----------------------------------------------------------------------#
# NOTE: THIS SCRIPT WAS TESTED ON UBUNTU 24.04 AND NEWER!!! #
# #
# Packages required: sqlite3 (apt install sqlite3) #
# #
# This shell script was created to clean up soju sqlite database and #
# the uploads folder. Please adjust the paths to match your config. #
# #
@TehPeGaSuS
TehPeGaSuS / thelounge-theme-canyon.css
Last active April 27, 2025 20:26
A dark theme for TheLounge IRC client inspired by Antelope Canyon (kindly shared by **ksliberal** on #thelounge @ irc.libera.chat)
/*
thelounge-theme-canyon
A dark theme for TheLounge IRC client inspired by Antelope Canyon
Installation instructions can be found at https://thelounge.chat/docs/server/configuration.html#theme
*/
:root {
/* Base colors from the canyon photo */
--canyon-orange: #FF7F38; /* Much more vibrant orange for usernames */
--canyon-bright: #FF6E3D; /* Bright orange */
This file has been truncated, but you can view the full file.
A ____ atom in an atomic clock beats 9,192,631,770 times a second*cesium
A ____ generates temperatures five times hotter than those found on the sun's surface*lightning bolt
A ____ is a pact between a secular authority & the church*concordat
A ____ is the blue field behind the stars*canton
A ____ occurs when all the planets of the our Solar System line up*sysygy
A ____ razor removed from King Tut's Tomb was still sharp enough to be used*golden
A ____ takes 33 hours to crawl one mile*snail
A ____ women can get a divorce if her husband doesn't give her coffee*saudi arabian
A ____ written to celebrate a wedding is called a epithalamium*poem
A 'dybbuk' is an evil spirit in which folklore*jewish
@TehPeGaSuS
TehPeGaSuS / inspircd_cert.sh
Last active November 30, 2024 20:47
InspIRCd Stuff
#!/usr/bin/env bash
# NOTES:
# 1. This script was made to work with certbot. I don't guarantee it will
# work with other ACME clients.
#
# 2. This script was tested in Ubuntu 20.04 and higher. This should work as it is on
# any Debian/Ubuntu based distros. For other distros please check Certbot
# documentation.
#
@TehPeGaSuS
TehPeGaSuS / duckhunt_docs.md
Last active February 1, 2025 21:32
Duck Hunt Player Documentation

Duck Hunt v2.11 © 2015-2016 Menz Agitat

DESCRIPTION

  • Duck Hunt is an FPS for IRC.
  • Every now and then a duck will fly away and players must shoot it down as quickly as possible.

COMMANDS AND SYNTAX

PLAYER COMMANDS

@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 |