Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View variablenix's full-sized avatar
🎧
Creating

Anthony K. variablenix

🎧
Creating
View GitHub Profile

Most IRC clients will accept caret notation for formatting IRC text.

Colors

The general formula for colors is ^CN,M.

^C is ASCII character 3 (usually represented as \x03 in code). N is the text (foreground) color, M is the background color. A background color is not always included. If no background color is set, the receiving client uses the default background color. Additionally, you can use color 99 to indicate the default color.

Color codes

@variablenix
variablenix / header_checks
Last active August 10, 2018 09:01 — forked from midwire/header_checks
Postfix Header Checks
# http://www.postfix.org/header_checks.5.html
# https://gist.github.com/midwire/19ff582d3fcdf3b495a2/0b208078b36e26802132954d836407382aeae9a5
/^Content-Type:.*?charset\s*=\s*"?(Big5|gb2312|euc-cn)"?/ REJECT HDR2100: Unaccepted character set: "$1"
/^Content-Type:.*?charset\s*=\s*"?(euc-kr|iso-2022-kr)"?/ REJECT HDR2110: Unaccepted character set: "$1"
/^Content-Type:.*?charset\s*=\s*"?(iso-2022-\w+|euc-jp|shift_jis)"?/ REJECT HDR2120: Unaccepted character set: "$1"
/^Content-Type:.*?charset\s*=\s*"?(koi8-(?:r|u))"?/ REJECT HDR2200: Unaccepted character set: "$1"
/^Content-Type:.*?charset\s*=\s*"?(windows-(?:1250|1251))"?/ REJECT HDR2210: Unaccepted character set: "$1"
/^Content-(Disposition|Type).*name\s*=\s*"?(.*(\.|=2E)(
ade|adp|asp|bas|bat|chm|cmd|com|cpl|crt|dll|exe|

Keybase proof

I hereby claim:

  • I am variablenix on github.
  • I am kode (https://keybase.io/kode) on keybase.
  • I have a public key whose fingerprint is AE07 7304 6AFD B73F C6B1 CAD4 B26C 5FB2 FF7F E91A

To claim this, I am signing this object:

@variablenix
variablenix / gist:ab6f7bd2b4b80d1ae20b
Created April 24, 2015 05:51
script for GeekTool to call Python Glances script
#!/usr/bin/env bash
BIN=$(command -v glances)
"$BIN"
exit 0