Skip to content

Instantly share code, notes, and snippets.

View zneix's full-sized avatar
I'm rather inactive.


I'm rather inactive.
View GitHub Profile
zneix / privmsg.json
Created May 16, 2022 12:44
complex channel point reward redemption
"raw": "@badge-info=subscriber/22;badges=broadcaster/1,subscriber/18,glhf-pledge/1;color=#F97304;custom-reward-id=747ba161-042c-4d0f-80fd-6c95ff7dbcb1;display-name=zneix;emotes=;first-msg=0;flags=;id=cff3c912-26e0-42dd-a0dc-72f143997562;mod=0;room-id=99631238;subscriber=1;tmi-sent-ts=1652702824847;turbo=0;user-id=99631238;user-type= :zneix! PRIVMSG #zneix :12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890",
"prefix": "zneix!",
"user": "zneix",
"args": [
zneix / user.lua
Last active July 25, 2023 13:28
zneix's DorHUD user.lua file
-- zneix's DorHUD configuration, available @ or
-- note to self, view diff compared to what's online with: gh gist view fb99059520fe94cfcfaaefe8d02af6db -f user.lua | git diff - user.lua
-- some things in here might require an additional mod of mine; get it here:
local is_first_load = ...
local always_reload = true -- if true, always use values defined in this file and thus ignoring any dynamic changes; default false
local prioritize_gui = false -- if true, config values defined in this file won't overwrite any existing settings set with the gui; default false
-- helper functions
-- escape left square bracket in s so that they aren't parsed as colours
local function clear_string(s)
zneix / regexes.txt
Last active September 26, 2021 18:53
Polish regex banphrases
# racism
## variations of 'czarnuch'
## killing
(zabija(ć|c)|jeba(ć|c)|pal(i(ć|c))) +(czarn(ych|uch(o|ó|u)w|(o|ó|u)chy|e k(o|ó|u)rwy)|m(o|ó|u)rzyn|(ó|o|u)w)
## racism emote combos
(demonzGun|adamcyGun) +(adamcyTri|cmonBru(h|g)|TriHard)
zneix / main.go
Created September 15, 2021 23:32
random hash in go
package main
import (
func GenerateRandomBytes(n int) ([]byte, error) {
zneix / xd.txt
Created August 30, 2021 13:18
W każdym razie, uhm... Kupiłem wielki zapas szungitu, kamieni, czy wiecie co to szungit? Czy ktokolwiek wie co to szungit? Nie, nie Szan Git, on jest zamknięty we więzieniu. Mam na myśli szungit. W każdym razie, jest to dwubilionowa jakby skała, kamień, która ochrania cię przed częstotliwościami i niechcianymi częstotliwościami, które mogą podróżować w powietrzu. Wiec to jest moja historia. Kupiłem wielki zapas tych rzeczy, rozłożyłem je wokół La Casy. Małe Piramidki. Coś takiego.
zneix / xd
Created July 16, 2021 13:47
my name in jsfuck
zneix /
Last active May 19, 2021 12:09
Alt+Tab script for i3

Focus last, Alt+Tab like alternative for i3

Something I've found in depths of nerd forums some time ago.
If doesn't work, make sure to sudo python -m pip install i3ipc.


  1. Save script somewhere in your PATH and chmod +x it
  2. Add following to ~/.xinitrc
zneix /
Last active September 22, 2021 11:59
pajbot1 setup on Arch GNU/Linux

Pajbot installation on Arch GNU/Linux 🤓

Base packages

  1. yay -S python3 python-pip
  2. yay -S openssl libpqxx base-devel git

Initializing the bot

  1. sudo useradd --system --user-group --home-dir /opt/pajbot pajbot #possibly add --create-home
  2. sudo mkdir -p /opt/pajbot && sudo chown pajbot:pajbot /opt/pajbot
  3. sudo -u pajbot git clone /opt/pajbot && cd /opt/pajbot
zneix / .bashrc
Created July 17, 2020 20:30
.bashrc file for root user with colored prompt
# ~/.bashrc: executed by bash(1) for non-login shells.
# Note: PS1 and umask are already set in /etc/profile. You should not
# need this unless you want different defaults for root.
# PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ '
# umask 022
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
# You may uncomment the following lines if you want `ls' to be colorized: