Skip to content

Instantly share code, notes, and snippets.

View ggreer's full-sized avatar

Geoff Greer ggreer

View GitHub Profile
@ggreer
ggreer / -
Created September 4, 2015 00:54
npm info build /data/releases/colab-2015_09_04_0032/node_modules/leveldown
npm info preinstall [email protected]
npm info linkStuff [email protected]
npm verb linkBins [email protected]
npm verb linkMans [email protected]
npm verb rebuildBundles [email protected]
npm verb rebuildBundles [ '.bin',
npm verb rebuildBundles 'abstract-leveldown',
npm verb rebuildBundles 'bindings',
npm verb rebuildBundles 'fast-future',
@ggreer
ggreer / -
Created September 4, 2015 00:27
(gdb) bt
#0 0x00007ffc908a6cc9 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffc908aa0d8 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00007ffc9089fb86 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#3 0x00007ffc9089fc32 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#4 0x0000000000d39d00 in node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding) ()
#5 0x0000000000d39e04 in node::Buffer::CreateFromString(v8::FunctionCallbackInfo<v8::Value> const&) ()
#6 0x00000cba33164aa8 in ?? ()
#7 0x00007fffc5de02f0 in ?? ()
#8 0x00007fffc5de0330 in ?? ()
@ggreer
ggreer / -
Created August 27, 2015 19:30
Textual 5 crash
Process: Textual [28403]
Path: /Applications/Textual 5.app/Contents/MacOS/Textual
Identifier: com.codeux.irc.textual5
Version: 5.2.0 (150821.16)
App Item ID: 896450579
App External ID: 813149881
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Textual [28403]
User ID: 501
" python3 plugins
" python plugins
call remote#host#RegisterPlugin('python', '/Users/ggreer/.nvim/bundle/floobits-neovim/rplugin/python/floobits.py', [
\ {'sync': 0, 'name': 'FlooAddBuf', 'type': 'command', 'opts': {'complete': 'file', 'nargs': 1}},
\ {'sync': 0, 'name': 'BufEnter', 'type': 'autocmd', 'opts': {'pattern': '*'}},
\ {'sync': 1, 'name': 'BufReadPost', 'type': 'autocmd', 'opts': {'pattern': '*'}},
\ {'sync': 1, 'name': 'BufWinEnter', 'type': 'autocmd', 'opts': {'pattern': '*'}},
\ {'sync': 1, 'name': 'FlooJoinWorkspace', 'type': 'command', 'opts': {'nargs': 1}},
@ggreer
ggreer / -
Created August 19, 2015 23:00
NVIM 0.0.0-alpha+201508182157 (compiled Aug 19 2015 15:14:01)
Commit: 8653000782bc9ab06d865ca96c89ec586ede6411
Build type: Debug
Compilation: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -Wconversion -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -DINCLUDE_GENERATED_DECLARATIONS -DHAVE_CONFIG_H -I/Users/ggreer/code/neovim/build/config -I/Users/ggreer/code/neovim/src -I/Users/ggreer/code/neovim/.deps/usr/include -I/Users/ggreer/code/neovim/.deps/usr/include -I/Users/ggreer/code/neovim/.deps/usr/include/luajit-2.0 -I/Users/ggreer/code/neovim/.deps/usr/include -I/Users/ggreer/code/neovim/.deps/usr/include -I/Users/ggreer/code/neovim/.deps/usr/include -I/Users/ggreer/code/neovim/.deps/usr/include -I/usr/local/opt/gettext/include -I/usr/include -I/Users/ggreer/code/neovim/build/src/nvim/auto -I/Users/ggreer/code/neovim/build/include
Compiled by [email protected]
Optional features included (+) or not (-): +acl +iconv +jemalloc
Fo
set nocompatible
filetype off
set rtp+=~/.nvim/bundle/Vundle.vim
call vundle#begin('~/.nvim/bundle')
Plugin 'VundleVim/Vundle.vim'
Plugin 'Floobits/floobits-neovim'
set nocompatible
filetype off
set rtp+=~/.nvim/bundle/Vundle.vim
call vundle#begin('~/.nvim/bundle')
Plugin 'gmarik/Vundle.vim'
Plugin 'Floobits/floobits-neovim'
@ggreer
ggreer / power.sh
Created August 4, 2015 07:00
Power.sh
# Disable the NMI watchdog
echo 0 > /proc/sys/kernel/watchdog
# Runtime power-management for PCI devices
for i in /sys/bus/pci/devices/*/power/control ; do
echo auto > ${i}
done
# Runtime power-management for USB devices
for i in /sys/bus/usb/devices/*/power/control ; do
@ggreer
ggreer / redshift.sh
Created August 4, 2015 06:59
Redshift
#!/bin/sh
# San Fran!
/usr/bin/screen redshift -l 37:-122 -t 6500:2600 -v
@ggreer
ggreer / Terminal 1
Last active August 29, 2015 14:21
OS X `leaks` command doesn't detect leaks from anonymous mmap()s
ggreer@carbon:~/Desktop% gcc anon_mmap.c -o anon_mmap
ggreer@carbon:~/Desktop% ./anon_mmap
Buf is 'TESTING 123'
Run...
sudo leaks 48974
...in the next 100 seconds