Skip to content

Instantly share code, notes, and snippets.

View TehPeGaSuS's full-sized avatar

TehPeGaSuS TehPeGaSuS

View GitHub Profile
@TehPeGaSuS
TehPeGaSuS / protonvpn.conf
Last active March 11, 2023 19:07
ProtonVPN require authentication blocks, to be used with UnrealIRCd
/* ProtonVPN Auth Blocks */
require authentication {
mask 2.58.241.?;
reason "[x] ProtonVPN can only be used by registered users. Identify via SASL or register your nickname. Info: https://domain.tld/protonvpn [x]";
}
require authentication {
mask 5.8.16.?;
reason "[x] ProtonVPN can only be used by registered users. Identify via SASL or register your nickname. Info: https://domain.tld/protonvpn [x]";
@TehPeGaSuS
TehPeGaSuS / batal.txt
Created December 14, 2020 21:51
BATAL
21:17:00 <BATAL> Hello, I have a question as far as doing a clean exit on the PuTTY wjere my Bot does not get get ruined.
21:17:21 <BATAL> What is the right command to exit PuTTY in order not to mess up the eggdrop
21:17:23 <BATAL> ?
21:18:09 <TheGuardian> if you start eggdrop in the shell with the command ./eggdrop eggdrop.conf, it will run in the background
21:18:30 <TheGuardian> so, exiting the shell won't terminate the process
21:18:34 <BATAL> ok and what if i exit PuTTY
21:18:39 <BATAL> ok i see
21:18:51 <BATAL> why do i get a problem in the DCC chat on mirc then
21:19:00 <BATAL> where the bot mentions in the chat
21:19:06 <BATAL> cannot read file
@TehPeGaSuS
TehPeGaSuS / deploy_irc
Last active February 9, 2024 00:15
Automate UnrealIRCd certificates renewal with Certbot
#!/usr/bin/env bash
# NOTE:
# This script was made to work with certbot. I don't guarantee it will
# work with other ACME clients.
#
# This 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 / thelounge_purge.sh
Last active April 28, 2024 20:53
Some useful stuff to use with The Lounge
#!/usr/bin/env bash
#------------------------------------------------------#
# This script was tested on Ubuntu 20.04 and newer #
# #
# This script cleans up the SQLite database, plaintext #
# files and uploaded files #
#------------------------------------------------------#
#-------------------------------------------------------------------------------------#
@TehPeGaSuS
TehPeGaSuS / quasselcert_manager.sh
Last active July 19, 2023 11:02
Automate Quassel Certificate Renew with Certbot
#!/usr/bin/env sh
# Shell script to manage Quassel certificates with Let's Encrypt and Certbot
##########
# Domain/subdomain of your Quassel installation
##########
qDomain=quassel.domain.tld
##########
# Quassel configdir (usually `/var/lib/quassel' when installed via apt)
sudo mount /dev/mmcblk1p5 /mnt  
for i in /dev /proc /sys /run; do sudo mount -R $i /mnt$i; done  
sudo chroot /mnt  
mount -a  
grub-install  
update-grub
@TehPeGaSuS
TehPeGaSuS / 01-UnrealFeeds.md
Last active November 21, 2021 14:54
Commands and other useful information about the UnrealFeeds bot used on UnrealIRCd network
@TehPeGaSuS
TehPeGaSuS / limnoria_user.service
Last active November 13, 2024 22:59
Limnoria tricks and tips
[Unit]
Description=Limnoria
[Service]
WorkingDirectory=/home/bot/botname
ExecStart=/usr/local/bin/supybot botname.conf
Restart=on-failure
[Install]
WantedBy=default.target
@TehPeGaSuS
TehPeGaSuS / ZNC_Automate_Certs.md
Last active October 8, 2024 16:33
Automate Certificate Renewal with Certbot

Shell scripts to automate SSL certs renewal for ZNC with Certbot

NOTE: This was tested on Ubuntu 20.04 and newer

Follow instructions from here and edit the scripts paths to fit your installation.

Use znc_old.sh for ZNC verions under 1.7.0 and znc_new for ZNC 1.7.0+

  1. Create a folder named scripts inside /etc/letsencrypt with:
#--------------------------------------------------#
# Be sure to have screen installed in your machine #
# Systemd unit tested on Ubuntu 18.04 and newer #
#--------------------------------------------------#
#----------------------------------------------------------------------------#
# This script will start the bot under a dettached screen session so you can #
# attach to the session and use the terminal to simulate DCC chat #
# You can still use telnet to connect to the bot, nonetheless #
#----------------------------------------------------------------------------#