Skip to content

Instantly share code, notes, and snippets.

View DanielOaks's full-sized avatar

Daniel Oaks DanielOaks

View GitHub Profile
@DanielOaks
DanielOaks / gensite.py
Created November 26, 2017 14:44
Making archives of Usenet backups
#!/usr/bin/env python3
"""gensite.py
Usage:
gensite.py <group> <source-dir>
gensite.py -h | --help
gensite.py --version
Options:
<source-dir> Where the directory we'll be grabbing files from exists.

How to stay motivated and constantly learn new things

words words words

How do I stay motivated when life sucks?

Everyone's life sucks sometimes. It's a long, hard slog of good times and bad.

When those bad times come, it's really easy to tell yourself that everyone else is going well. You see everything flowing by on Twitter, Facebook or maybe even just day-to-day in life. Nothing is crumbling, nothing's falling down, but your life is.

// thanks to https://www.glennklockwood.com/electronics/max7219.html and http://www.gammon.com.au/forum/?id=11516 for help
// and to the data sheet
#include <SPI.h>
#define selectPin D2
#define REG_NOOP 0x00
#define REG_DIGIT_0 0x01
#define REG_DIGIT_1 0x02
#define REG_DIGIT_2 0x03

<limit> is defined by the server/bouncer by default, but the client can optionally ask for a different limit.

CHATHISTORY #ircv3 BEFORE id=ytNBbt565yt4r3err3 [<limit>]
    - get up to <limit> number of messages before the given id/time
CHATHISTORY #ircv3 AFTER id=ytNBbt565yt4r3err3 [<limit>]
    - get up to <limit> number of messages after the given id/time
CHATHISTORY #ircv3 LATEST id=ytNBbt565yt4r3err3 [<limit>]
    - get the most recent (up to `<limit>`) messages that have been sent since the given id/time
    - if * is given instead of a specific ID, just the most recent messages with no limit

CHATHISTORY #ircv3 AROUND id=ytNBbt565yt4r3err3 []

package main
import (
"log"
"fmt"
"strings"
"sync"
"strconv"
"net"

title: "ACC Multi-Factor Authentication" layout: spec copyrights:

name: "Daniel Oaks"
period: "2019"
email: "daniel@danieloaks.net"

name: "Shivaram Lingamneni"

@DanielOaks
DanielOaks / writing-a-spec.md
Last active March 8, 2019 01:47
proposed IRCv3 writing-a-spec document draft

How to write an IRCv3 Specification

This rough guide aims to take you through the process of writing an IRCv3 specification and getting it accepted! It doesn't lay out exactly what you must do for a document to get accepted, but should be a useful set of suggestions and considerations to keep in mind as you go through the process.

Why write a spec?

There are a few main reasons why you'd want to write up a spec for inclusion within the IRCv3 Working Group:

  • You'd like to change an aspect of the IRC protocol, and write down in very exact detail how that change works.
  • You have a cool, interesting, and/or useful feature in your software and think that other software should include it.
@DanielOaks
DanielOaks / kiwibnc-config.ini
Last active February 18, 2023 17:44
kiwibnc configs
[log]
# level may be one of: trace, debug, info, notice, warn, error
level="info"
colour=true
[listeners]
bind = [
"0.0.0.0:3001",
]

GLSL Shader Bits

Constants

#define pi acos(-1.)
#define tau (2.*pi)
@DanielOaks
DanielOaks / shift-jis.txt
Last active November 7, 2020 22:52
shift-jis sjis emoticons
̿̿ ̿̿ ̿’̿’̵͇̿̿з=༼ ▀̿̿Ĺ̯̿̿▀̿ ̿ ༽
͡ (ु ˲̥̥̥́ ˱̥̥̥̀) ु⁾⁾
͡ (ुŏ̥̥̥̥ ‸ ŏ̥̥̥̥) ु
̯ ̜ᵒ̴̶̷⁎).₊♪‧˚*
ੱ ಒౢੱ)₹Ⱡ੭
‾͟͟͞(((ꎤ >口<)̂ꎤ⁾⁾⁾⁾
‾͟͟͞(((ꎤ ✧曲✧)̂—̳͟͞͞o
‾͟͟͞(((ꎤˋ⁻̫ˊ)—̳͟͞͞o
‾͟͟͞(((ꎤ°᷄д°᷅)و ̑̑༉☆))Д´)
‾͟͟͞(((ꎤ๑‾᷅༬‾᷄๑)̂—̳͟͞͞