Skip to content

Instantly share code, notes, and snippets.

View TehPeGaSuS's full-sized avatar

TehPeGaSuS TehPeGaSuS

View GitHub Profile
@TehPeGaSuS
TehPeGaSuS / unrealircd_geoip.sh
Last active September 24, 2024 14:47
UnrealIRCd GeoIP Maxmind
#!/usr/bin/env bash
###
# Set here your license key
###
licenseKey="LICENSE_KEY"
###
# Path to the executable
###
<IfModule mod_ssl.c>
<VirtualHost *:443>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
ServerName sub.domain.tld
##########
# ZNC User Unit
##########
[Unit]
Description=ZNC (PeGaSuS)
After=default.target
[Service]
ExecStart=/home/path/to/install/folder/znc -f
Restart=on-failure
/*--------------------------------------------------------------
* Name: ns_massset
* Author: LEthaLity 'Lee' <[email protected]>
* Date: 19th February 2014
* Version: 0.2
* --------------------------------------------------------------
* 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 / personal.qss
Last active April 17, 2022 23:08
Quassel theme tweaks
// For background on your own messages
/* Replace the line
* ChatLine::sender#plain[sender="self"] { foreground: palette(sender-color-self); }
* with the following
*/
ChatLine#plain[sender="self"] {
foreground: palette(sender-color-self);
background: #d9d9d9;
}
#--------------------------------------------------#
# Systemd unit tested on Ubuntu 18.04 and newer #
#--------------------------------------------------#
#----------------------------------------------------------------------------#
# This script will start the bot and make it fork afterwards, as a normal #
# `./eggdrop botname.conf` would do. #
#----------------------------------------------------------------------------#
[Unit]
@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
@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

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 / 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; }