Skip to content

Instantly share code, notes, and snippets.

View uplime's full-sized avatar
👻
Spooky

Nick Chambers uplime

👻
Spooky
View GitHub Profile
@wybiral
wybiral / noscript-tracking.go
Last active October 28, 2024 23:01
Tracking cursor position in real-time with remote monitoring (without JavaScript)
// Tracking cursor position in real-time without JavaScript
// Demo: https://twitter.com/davywtf/status/1124146339259002881
package main
import (
"fmt"
"net/http"
"strings"
)
m=(3{0,2,4,7}\;4{0,2,4,7}) w=(0 1111 47f3 0fa 0ea cbb 1 1514 47f3 3ea caa0f bb0c 1 0101 0457 03fec 3faa2 3b88b3 2 0{011,57f7,0fa,caa} f88bb 4 1111 57f3 0eb 0ea cbb 5 1514 47f3 0eb 0ae0f bb0c 5 0{101,457,0efc,0ae3} 3b88b3 6 0{011,57f7,0fa,0ae} f88bb);for((i=0;i<75;x=++i/8*8+w[i%8*6])){ sleep .1;tput cup 0;for r in {1..5};{ printf %$x.s;eval printf %b▀ '\\e[${m[0x${w[i%8*6+r]:'{0..6}:1}]}m;echo;};}
@ormaaj
ormaaj / multidim.bash
Last active February 21, 2019 22:19
Non-serious bash 2d array implementation
#!/usr/bin/env bash
function getElem {
while
${!1+\:} return 1
typeset -a "__getElemArr=${!1}"
set -- "__getElemArr${1#*]}"
[[ $1 == *\[!(@]|\*]) ]]
do :
done
@grawity
grawity / SASL.md
Last active February 27, 2026 00:25
SASL authentication from the perspective of IRC server-to-server protocols

SASL authentication in IRC

© 2014 Mantas Mikulėnas <grawity@gmail.com>

This documentation is released under Creative Commons 3.0 Attribution license.


This is a description of server-server protocol, intended for ircd and services developers. For the client-server protocol descriptions, intended for client & bot developers, see the IRCv3 [sasl-3.1][] and [sasl-3.2][] specifications.