Skip to content

Instantly share code, notes, and snippets.

View TehPeGaSuS's full-sized avatar

TehPeGaSuS TehPeGaSuS

View GitHub Profile
@TehPeGaSuS
TehPeGaSuS / UnrealIRCd Systemd.md
Last active February 26, 2024 00:49
UnrealIRCd Systemd Service Units
@TehPeGaSuS
TehPeGaSuS / Anope Systemd.md
Last active February 26, 2024 00:06
Anope Systemd Service Units
@TehPeGaSuS
TehPeGaSuS / weechat_renew.sh
Last active January 21, 2024 22:28
Automated renewal of WeeChat relay certificate
#!/usr/bin/env sh
#----------------------------------------------------------------------------------#
# Shell script to manage WeeChat relay certificates with Let's Encrypt and Certbot #
# #----------------------------------#
# NOTE: This script was tested on Ubuntu 20.04+ #
# #-----------------------------------#
# For other distros check Certbot documentation and edit paths/commands accordingly #
#-----------------------------------------------------------------------------------#
/* 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' <lethality@anope.org>, 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

@TehPeGaSuS
TehPeGaSuS / weechat_and_systemd.md
Last active May 30, 2023 15:53
WeeChat Systemd User Units for screen and tmux

Tested on Ubuntu 20.04+

This files are to be used with systemd.

NOTE: Make sure to have screen or tmux installed in your machine .
You can check if you have screen or tmux installed with the command whereis screen or whereis tmux.
If you terminal returns no output with paths, then you need to install one of them or ask the system admin to install it for you.

ENABLE LINGERING

To be ran as the user, so it doesn't require root

@TehPeGaSuS
TehPeGaSuS / ergo.sh
Last active July 19, 2023 10:38
Certificate renewal automation for Ergo IRCd
#!/usr/bin/env sh
# What's your irc subdomain?
ergoDomain=irc.domain.tld
# What is the shell user running the ircd?
ergoUser=ircd
# What is the shell group of the user running the ircd?
# Usually it's the same as the above `user` value