Skip to content

Instantly share code, notes, and snippets.

View Russtopia's full-sized avatar
🏠
+++ATH0

Russtopia Russtopia

🏠
+++ATH0
View GitHub Profile
@Russtopia
Russtopia / keybase.md
Created March 5, 2015 01:09
Keybase.io Verification

Keybase proof

I hereby claim:

  • I am Russtopia on github.
  • I am russtopia (https://keybase.io/russtopia) on keybase.
  • I have a public key whose fingerprint is A6D0 F721 AC83 6F92 7B1C A46B 18E6 347F C7C3 1510

To claim this, I am signing this object:

@Russtopia
Russtopia / go-cgi-upload.go
Last active February 16, 2024 11:29
Golang CGI file upload example using net/http/cgi
// Simple demo of a GO CGI program that takes
// file uploads.
//
// NOTE NOTE DANGER DANGER
// Absolutely No filename/path sanitizing is done,
// don't run this in production unless you want hackers
// to overwrite your server. This is only a demo of
// how to untangle the go stdlib form-related datatypes
// and use them to take file uploads.
//
@Russtopia
Russtopia / spinsult.go
Created August 8, 2020 08:24
Shakespearean insult generator written in Go. Ported from http://www.mainstrike.com/mstservices/handy/insult.html
// A golang translation of a 'Shakespeare insult generator'
// Originally from http://www.mainstrike.com/mstservices/handy/insult.html
package spinsult
import (
"math/rand"
"time"
)
var (
@Russtopia
Russtopia / .Xmodmap
Last active March 8, 2021 21:06
APL ~/.Xmodmap keyboard layout (uses CAPS for APL modifier key, ALT+CAPS = caps lock) - en-US-104 layout - GNU APL, Dyalog
keycode 8 =
keycode 9 = Escape NoSymbol Escape
keycode 10 = 1 exclam diaeresis U2336
keycode 11 = 2 at macron U236B
keycode 12 = 3 numbersign less U2352
keycode 13 = 4 dollar U2264 U234B
keycode 14 = 5 percent equal U233D
keycode 15 = 6 asciicircum U2265 U2349
keycode 16 = 7 ampersand greater U2296
keycode 17 = 8 asterisk U2260 U235F
@Russtopia
Russtopia / APL.keymap
Created March 8, 2021 21:10
APL keyboard layout for Linux consoles (Uses CAPS as APL modifier key) - GNU APL, Dyalog - en-US-104 layout
keymaps 0-127
keycode 1 = Escape
alt keycode 1 = Meta_Escape
shift alt keycode 1 = Meta_Escape
altgr alt keycode 1 = Meta_Escape
shift altgr alt keycode 1 = Meta_Escape
control alt keycode 1 = Meta_Escape
shift control alt keycode 1 = Meta_Escape
altgr control alt keycode 1 = Meta_Escape
shift altgr control alt keycode 1 = Meta_Escape