Skip to content

Instantly share code, notes, and snippets.

View l2dy's full-sized avatar

Zero King l2dy

View GitHub Profile

Keybase proof

I hereby claim:

  • I am l2dy on github.
  • I am l2dy (https://keybase.io/l2dy) on keybase.
  • I have a public key whose fingerprint is 613B AC32 4602 0710 F4CF 1497 2AD3 6FC6 90CE 7AAE

To claim this, I am signing this object:

In init.c, Mutt checks FQDN of uname -n:

/* now get FQDN.  Use configured domain first, DNS next, then uname */
#ifdef DOMAIN
  /* we have a compile-time domain name, use that for Fqdn */
  Fqdn = safe_malloc(mutt_strlen(DOMAIN) + mutt_strlen(Hostname) + 2);
  sprintf(Fqdn, "%s.%s", NONULL(Hostname), DOMAIN); /* __SPRINTF_CHECKED__ */
#else
  if (!(getdnsdomainname(buffer, sizeof(buffer))))
@l2dy
l2dy / pr.sh
Last active September 6, 2018 09:44
# The canonical remote (tracked repository) at
# [email protected]:macports/macports-ports.git (SSH) or https://github.com/macports/macports-ports.git (HTTPS)
UPSTREAM_REMOTE=origin
# It should be "origin" if you cloned from one of the two URLs above.
# If you cloned your fork, add the canonical remote by executing the command below once.
# git remote add $UPSTREAM_REMOTE $REMOTE_URL
# "upstream" or "macports" is recommended for UPSTREAM_REMOTE.
# Add your SSH key to https://github.com/settings/keys to use the SSH URL.
# Run "git remote -v" to see a list of existing remotes.
@l2dy
l2dy / gist:996f7b0580aa4ad5e02bc430afc510cd
Created May 26, 2017 14:13
Killing And Yanking (C-k C-u)
file:///opt/local/share/doc/readline/html/readline.html#SEC17
gdate -d @1428825849
date -r 1428825849
{
  "address": "[email protected]",
  "medium": "email",
 "mxid": "@ears:matrix.org",
--- ncurses-6.0-20170708/misc/terminfo.src 2017-04-22 20:18:54.000000000 +0000
+++ ncurses-6.0-20170916/misc/terminfo.src 2017-08-26 21:07:47.000000000 +0000
@@ -6,8 +6,8 @@
# Report bugs and new terminal descriptions to
# [email protected]
#
-# $Revision: 1.602 $
-# $Date: 2017/04/22 20:18:54 $
+# $Revision: 1.617 $
+# $Date: 2017/08/26 21:07:47 $
@l2dy
l2dy / latency.md
Created November 9, 2017 05:16
Latency Numbers Every Programmer Should Know

Latency numbers every programmer should know

L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns             
Compress 1K bytes with Zippy ............. 3,000 ns  =   3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns  =  20 µs
SSD random read ........................ 150,000 ns  = 150 µs

Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs

SAP Code: AUDT
Audition CS6 BaseVersion: N/A Version: 5.0
Audition CC BaseVersion: N/A Version: 6.0
Audition CC BaseVersion: 11.0.0 Version: 11.0.0
SAP Code: AAM
Adobe Application Manager BaseVersion: N/A Version: 6.2.10
SAP Code: ASCT
Scout CC BaseVersion: N/A Version: 1.1.3
s/^- /| /
s/: U/ | U/
s/ (CVE/ | CVE/
s/)\.[ ¹²³]*$/ |/
@l2dy
l2dy / ErrCode.txt
Created December 23, 2017 06:52 — forked from c0re100/ErrCode.txt
Kirara Fantasia Error Code
ERROR = -1
SUCCESS = 0
OUTDATED = 1
APPLYING = 2
ACCESS_LIMITATION = 3
TERMS_UPDATED = 4
MAINTENANCE = 10
UNAVAILABLE = 20
OUTDATED_AB_VERSION = 30
INVALID_REQUEST_HASH = 101