Skip to content

Instantly share code, notes, and snippets.

View BrokenR3C0RD's full-sized avatar
🥯

MasterR3C0RD BrokenR3C0RD

🥯
View GitHub Profile
@BrokenR3C0RD
BrokenR3C0RD / pds_service_handle.conf
Last active November 24, 2024 22:13
nginx config for pretty Bluesky/ATProto PDS server handle redirects
# Assumes you have an `upstream bsky-pds` somewhere; you can replace `http://bsky-pds` with the URL to your PDS
# if you'd prefer
server {
listen 443 ssl;
listen 443 quic;
# Replace with your base handle domain(s)
# This will act as a fallback, so if you have anything else hosted on subdomains they won't be affected
server_name *.pds.example.com;
<register>
<dim>24</dim>
<dimIncrement>4</dimIncrement>
<dimName>PIO0</dimName>
<name>PIO0[%s]</name>
<description>Generic I/O configuration for PIO, port 0.</description>
<addressOffset>0x000</addressOffset>
<fields>
<field>
<name>FUNC</name>
/* Declaration file for js-binary */
declare module "js-binary" {
export class Data {
public constructor(capacity: number);
private _buffer: Buffer;
private _length: number;
public appendBuffer(data: Buffer): void;
public writeUInt8(value: number): void;
public writeUInt16(value: number): void;
@BrokenR3C0RD
BrokenR3C0RD / Current Token Output
Last active January 7, 2016 01:57
NodeBASIC Lexer
[ { type: 'identifier', match: 'The' },
{ type: 'identifier', match: 'quick' },
{ type: 'identifier', match: 'brown' },
{ type: 'identifier', match: 'dog' },
{ type: 'identifier', match: 'jumped' },
{ type: 'identifier', match: 'over' },
{ type: 'identifier', match: 'the' },
{ type: 'identifier', match: 'lazy' },
{ type: 'identifier', match: 'rabbit' },
{ type: 'operator', match: '=' },