Skip to content

Instantly share code, notes, and snippets.

Avatar

Keira T. researcx

View GitHub Profile
@researcx
researcx / void-linux-install.sh
Last active May 16, 2022
Minimal instructions for installing Void Linux on MBR + Legacy BIOS
View void-linux-install.sh
# Obtain the latest Void Linux base live ISO from:
# https://voidlinux.org/download/ (plain musl version)
# Write it to a USB drive:
# sudo dd bs=4M if=void-live-x86_64-musl-20181111.iso of=/dev/sdb status=progress oflag=sync
# Switch to bash (easier to use while installing)
bash
# Set UK keymap
@researcx
researcx / discord_export_friends.py
Created Apr 26, 2022
export discord tags & permanent userids w/ discord.py
View discord_export_friends.py
#!/usr/bin/python3
import discord
token = ("")
class ExportFriends(discord.Client):
async def on_connect(self):
friendslist = client.user.friends
for user in friendslist:
try:
print(user.name+"#"+user.discriminator + " ("+str(user.id)+")")
View DonateBot.py
#!/usr/bin/python
from twisted.words.protocols import irc
from twisted.internet import reactor, protocol
from re import search, IGNORECASE
from random import randint
import time
import os, signal
serv_ip = "10.3.0.50"
serv_port = 6667
@researcx
researcx / check_xmrig.sh
Created Apr 14, 2022
check if xmrig is running
View check_xmrig.sh
#!/bin/bash
PROCESS=`ps -eaf | grep xmrig | grep -v grep`
if [ "$PROCESS" == '' ]
then
/home/monero/xmrig -B
else
echo "xmrig running"
fi
@researcx
researcx / check_time_weather_condition.sh
Created Apr 15, 2022
check weather and time conditions
View check_time_weather_condition.sh
#!/bin/bash
LOCATION="Hampshire"
CONDITION=`curl -s wttr.in/$LOCATION?format=%C`
SUNSET=`curl -s wttr.in/$LOCATION?format=%s`
SUNRISE=`curl -s wttr.in/$LOCATION?format=%S`
TIME=`date "+%H:%M:%S"`
sunset_time=$(date -d $SUNSET +%s)
View keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@researcx
researcx / config_audio.md
Last active Dec 17, 2021
Linux System-wide Audio Tuning [24bit 192 kHz HD Audio + A=432 Hz Tuning + Equalizer]
View config_audio.md

24bit 192 kHz HD Audio + A=432 Hz Tuning + Equalizer

High-quality sampling

ALSA

echo 'defaults.pcm.rate_converter "speexrate_best"' | tee -a .asoundrc
sudo alsactl restore

PulseAudio

sudo echo 'default-sample-format = s24le' | sudo tee -a /etc/pulse/daemon.conf
sudo echo 'default-sample-rate = 192000' | sudo tee -a /etc/pulse/daemon.conf
@researcx
researcx / remove all *.log files on system.md
Last active Sep 10, 2021
an extremely bad idea indeed
View remove all *.log files on system.md

find / -iname "*.log" > /root/scripts/logs.txt

root/scripts/truncate-logs.sh:

#!/bin/bash
FILENAME="/root/scripts/logs.txt"
LINES=$(cat $FILENAME)

for LINE in $LINES
do
View gist:fcf93b65e28f5635eb5f2d08125820fd
### Keybase proof
I hereby claim:
* I am researcx on github.
* I am researcx (https://keybase.io/researcx) on keybase.
* I have a public key ASD83ceD9-f7-0vbpVx_I6PlhL7dJI4-unLtjglbrO7zsgo
To claim this, I am signing this object:
@researcx
researcx / myweechat.md
Last active Jan 30, 2021 — forked from pascalpoitras/myweechat.md
My always up-to-date WeeChat configuration (requires weechat 2.3-dev (weechat-devel) or higher)
View myweechat.md

idea and some snippets taken from pascalpoitras' weechat config

Enable mouse

/mouse enable

Set up encrypted data

/secure passphrase <pass>
/secure set relaypass <pass>
/secure set bitlbeepass <pass>
/secure set bncaddrport