Skip to content

Instantly share code, notes, and snippets.

View JKirchartz's full-sized avatar
🤖

Joel Kirchartz JKirchartz

🤖
View GitHub Profile
@rwp0
rwp0 / perl_to_unix_mappings.csv
Last active September 12, 2023 11:11
Perl to Unix Table: Cultural influence of Unix on Perl symbol names
Perl Function / Method Namespace (eg. Package) Command / Syscall / C Function
compare File::Compare cmp(1)
catdir File::Spec cat(1)
catfile File::Spec cat(1)
basename File::Basename basename(1)
dirname File::Basename dirname(1)
grep CORE grep(1)
find File::Find find(1)
s/// CORE sed(1)
tr// CORE tr(1)
@ranguli
ranguli / microkorg_patches_linux.md
Created June 20, 2022 13:01
Microkorg Patches on Linux

Getting MIDI device name

amidi -l

Sending MIDI patches (.mid)


@venam
venam / unicode_from_ascii.js
Last active September 2, 2020 00:13
Take an ascii string and output possible unicode string equivalent in NFKD so that it is understood by IDNA within URLs
function conv_to_uni(st) {
udata = {"66":["7470","8492","9399","119809","119861","119913","120017","120069","120121","120173","120225","120277","120329","120381","120433","127281","65314"],"87":["7490","9420","119830","119882","119934","119986","120038","120090","120142","120194","120246","120298","120350","120402","120454","127302","65335"],"77":["7481","8499","8559","9410","119820","119872","119924","120028","120080","120132","120184","120236","120288","120340","120392","120444","127292","65325"],"69":["7473","8496","9402","119812","119864","119916","120020","120072","120124","120176","120228","120280","120332","120384","120436","127284","65317"],"90":["8484","8488","9423","119833","119885","119937","119989","120041","120197","120249","120301","120353","120405","120457","127305","65338"],"98":["7495","9425","119835","119887","119939","119991","120043","120095","120147","120199","120251","120303","120355","120407","120459","65346"],"117":["7512","7524","9444","119854","119906","119958","120010","120062",
@jamestomasino
jamestomasino / bashrc.insults
Created March 22, 2019 16:03
bash insult on error
# source this as part of your bash startup scripts
suicidePostCommand() {
if [ $? -ne 0 ]; then
local INSULT
INSULT[0]="Just what do you think you're doing Dave?"
INSULT[1]="It can only be attributed to human error."
INSULT[2]="That's something I cannot allow to happen."
INSULT[3]="My mind is going. I can feel it."
INSULT[4]="Sorry about this, I know it's a bit silly."
@zachwhalen
zachwhalen / tracery_count.py
Last active October 10, 2018 00:55
A python counter for quantifying the number of possible variations for a Tracery grammar
import json
import re
# find out if a given chunk includes symbols
def get_symbols(phrase):
matches = re.finditer(r"#.*?#", phrase, re.MULTILINE)
symbols = []
for matchNum, match in enumerate(matches):
matchNum = matchNum + 1
symbols.append( re.sub(r"\.a|\.s|\.capitalize|#","",match.group()) )
@KellerFuchs
KellerFuchs / tilde-irc.socket
Created May 31, 2018 18:26
Socket-activated SSH forwarding
[Socket]
ListenStream=127.0.0.1:6666
Accept=true
[Install]
WantedBy=sockets.target
@dominikwilkowski
dominikwilkowski / Readme.md
Last active October 9, 2024 15:00
How to install a man page into a node.js app

How to install a man page into a node.js app

Cuttlebelle man page

Installing a man page is not easy as there are little infos out there about it.

After a lot of trial and error, google searches and alpha publishing my app I finally have a collection of things I need to do to get it working:

@meain
meain / loading_messages.js
Last active November 16, 2024 02:23
Funny loading messages
export default [
"Reticulating splines...",
"Generating witty dialog...",
"Swapping time and space...",
"Spinning violently around the y-axis...",
"Tokenizing real life...",
"Bending the spoon...",
"Filtering morale...",
"Don't think of purple hippos...",
"We need a new fuse...",
anonymous
anonymous / commands.txt
Created November 21, 2017 20:25
Command listing for [email protected]
ADMIN join part quit msg me mode set save
ADMINCHANNEL kick ban unban quiet unquiet kickban topic tmask
showmask
ANNOUNCE announce
CALC c py
CLOCK t settz gettz settimeformat gettimeformat
@prophetgoddess
prophetgoddess / LICENSE.txt
Last active September 25, 2017 01:48
Generates short piano compositions with cellular automata and saves them in MIDI format.
Copyright (c) 2017 Emma Lugo
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all