Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am alegw on github.
* I am alegw (https://keybase.io/alegw) on keybase.
* I have a public key ASD0sFqg121P8tm5FFr7b2gsi1zw5VqeOOA-dc6u16Lpcgo
To claim this, I am signing this object:
Verifying that "alemacgo.id" is my Blockstack ID. https://onename.com/alemacgo
@alescode
alescode / gist:2d8841d7c07fd9d4a288
Created March 3, 2016 15:56
Kernel panic when coming back from sleep while connected to an external screen
Anonymous UUID: 6A588C31-F1CF-95EB-4CCF-4B5531D47C7C
Thu Mar 3 16:47:10 2016
*** Panic Report ***
panic(cpu 6 caller 0xffffff800b9d255a): Kernel trap at 0xffffff7f8de46742, type 13=general protection, registers:
CR0: 0x0000000080010033, CR2: 0x0000000118d0d000, CR3: 0x000000045e05902a, CR4: 0x00000000001627e0
RAX: 0x2c58402d38711880, RBX: 0xffffff802dfe8cc8, RCX: 0x00000000000003fe, RDX: 0x000000000000000a
RSP: 0xffffff91f814b860, RBP: 0xffffff91f814b8a0, RSI: 0x0000000000000002, RDI: 0xffffff802d1a2000
R8: 0xffffff802d1a2000, R9: 0xffffff91f814ba00, R10: 0xffffff7f8c22b8d0, R11: 0xffffff91f814bb98
### Keybase proof
I hereby claim:
* I am alemacgo on github.
* I am alemacgo (https://keybase.io/alemacgo) on keybase.
* I have a public key whose fingerprint is D458 1176 56B8 0CEB 3A17 076B 5F60 C542 9F49 643C
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am alemacgo on github.
  • I am alemacgo (https://keybase.io/alemacgo) on keybase.
  • I have a public key whose fingerprint is 9050 C780 311C E7C6 4D7C 20B8 C741 3E89 57F2 5528

To claim this, I am signing this object:

@alescode
alescode / gist:8707794
Last active August 29, 2015 13:55
phantomjs182 fails to build on 10.9
The output from HOMEBREW_MAKE_JOBS=1 brew install -v $FORMULA 2>&1
Error: Unsupported special dependency :mac_os
The contents of the largest numbered log in ~/Library/Logs/Homebrew/$FORMULA, for example: 03.make;
There's no such file
brew doctor
Error: Failed to import: phantomjs182
Unsupported special dependency :mac_os
Your system is ready to brew.
@alescode
alescode / bacon-pancakes.js
Created October 22, 2012 15:25
JS functional functions by github.com/targen
function id(x) {
return x;
}
function const_(x) {
return function(_) {
return x;
};
}
@alescode
alescode / gist:3772803
Last active October 11, 2015 00:18 — forked from al3xandru/gist:1156476
Open iTerm in Current Folder
(*
* Finder Open iTerm Here - v1.0.2 - 4/14/2011
* http://benalman.com/
*
* Copyright (c) 2011 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*)
tell application "Finder"
@alescode
alescode / latency.txt
Created September 23, 2012 18:48 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers
--------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms
Read 4K randomly from SSD* 150,000 ns 0.15 ms