Skip to content

Instantly share code, notes, and snippets.

View zneix's full-sized avatar
❤️‍🩹
I'm rather inactive.

zneix

❤️‍🩹
I'm rather inactive.
View GitHub Profile
@zneix
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!zneix@zneix.tmi.twitch.tv PRIVMSG #zneix :12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890",
"prefix": "zneix!zneix@zneix.tmi.twitch.tv",
"user": "zneix",
"args": [
"#zneix",
"12345678901234567890123456789012345678901234
@zneix
zneix / user.lua
Last active July 25, 2023 13:28
zneix's DorHUD user.lua file
-- zneix's DorHUD configuration, available @ https://gist.github.com/zneix/fb99059520fe94cfcfaaefe8d02af6db or https://cdn.zneix.eu/pdthmods/user.lua
-- 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: https://github.com/zneix/zneixs_fixes
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
zneix / regexes.txt
Last active September 26, 2021 18:53
Polish regex banphrases
# racism
## variations of 'czarnuch' https://regex101.com/r/1w4rfa/7
(?P<c>c|ć|\[)[\s.\\]*((?P<zh>z|乙|h)+[\s.\\]*(?P<au>a|4|卂|\|_\||u|o|ó)+|(?&zh)+|(?&au)+)[\s.\\]*r?[\s.\\]*(n|m|\/\\\/|\|(\\|\/)\|)+[\s.\\]*(\|_\||u|ó|o)+[\s.\\]*(?&c)?[\s.\\]*(h|\|-\|)
## 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
zneix / main.go
Created September 15, 2021 23:32
random hash in go
package main
import (
"crypto/rand"
"crypto/sha256"
"encoding/hex"
"fmt"
)
func GenerateRandomBytes(n int) ([]byte, error) {
@zneix
zneix / xd.txt
Created August 30, 2021 13:18
szungit
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
zneix / xd
Created July 16, 2021 13:47
my name in jsfuck
(+(!+[]+!+[]+!+[]+[!+[]+!+[]+!+[]+!+[]+!+[]]))[(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([]+[])[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]][([][[]]+[])[+!+[]]+(![]+[])[+!+[]]+((+[])[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]
@zneix
zneix / README.md
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.

Setup

  1. Save script somewhere in your PATH and chmod +x focus-last.py it
  2. Add following to ~/.xinitrc
@zneix
zneix / pajbot-on-arch.md
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 https://github.com/pajbot/pajbot /opt/pajbot && cd /opt/pajbot
@zneix
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
force_color_prompt=yes
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: