Skip to content

Instantly share code, notes, and snippets.

View dmix's full-sized avatar

Daniel P. McGrady dmix

View GitHub Profile
/home/user/.rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/net/http.rb:920:in `connect': SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A (Faraday::SSLError)
from /home/user/.rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/net/http.rb:920:in `block in connect'
from /home/user/.rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/timeout.rb:76:in `timeout'
from /home/user/.rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/net/http.rb:920:in `connect'
from /home/user/.rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/net/http.rb:863:in `do_start'
from /home/user/.rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/net/http.rb:852:in `start'
from /home/user/.rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/net/http.rb:1369:in `request'
from /home/user/.rvm/rubies/ruby-2.1.4/lib/ruby/gems/2.1.0/gems/faraday-0.9.1/lib/faraday/adapter/net_http.rb:82:in `perform_request'
from /home/user/.rvm/rubies/ruby-2.1.4/lib/ruby/gems/2.1.0/gems/faraday-0.9.1/lib/faraday/adapter/net_http.rb:40:in `block in call'
/usr/lib/go/pkg/tool/linux_amd64/cgo:00000000007d9cc0 d runtime/race(.data.rel.ro._ZTVN6__tsan13ThreadContextE)
/usr/lib/go/pkg/tool/linux_amd64/cgo:00000000007d8f00 d runtime/race(.data.rel.ro._ZTVN6__tsan8CallbackE)
/usr/lib/go/pkg/tool/linux_amd64/cgo:000000000060eed0 t runtime/race(.text._ZN6__tsan6VectorINS_10RacyStacksEE8PushBackERKS1_)
/usr/lib/go/pkg/tool/linux_amd64/cgo:000000000060efc0 t runtime/race(.text._ZN6__tsan6VectorINS_11RacyAddressEE8PushBackERKS1_)
/usr/lib/go/pkg/tool/linux_amd64/cgo:000000000060f520 t runtime/race(.text._ZN6__tsan8Callback6UnwindEv)
/usr/lib/go/pkg/tool/linux_amd64/cgo:000000000060ee20 t runtime/race(.text._ZN6__tsan8Callback9UniqueTidEv)
/usr/lib/go/pkg/tool/linux_amd64/cgo:00000000005fa6d0 T __tsan_acquire
/usr/lib/go/pkg/tool/linux_amd64/cgo:00000000005f2900 T __tsan_default_options
/usr/lib/go/pkg/tool/linux_amd64/cgo:00000000005f9cf0 T __tsan_finalizer_goroutine
/usr/lib/go/pkg/tool/linux_amd64/cgo:00000000005fe410 T __tsan_fini
ota_server git:(master) ✗ strace -f go install github.com/mattn/go-sqlite3
execve("/usr/bin/go", ["go", "install", "github.com/mattn/go-sqlite3"], [/* 52 vars */]) = 0
brk(0) = 0xaaa6e8
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=192233, ...}) = 0
mmap(NULL, 192233, PROT_READ, MAP_PRIVATE, 3, 0) = 0x3017b0cd000
close(3) = 0
open("/usr/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340`\0\0\0\0\0\0"..., 832) = 832
strace go install github.com/mattn/go-sqlite3
execve("/usr/bin/go", ["go", "install", "github.com/mattn/go-sqlite3"], [/* 50 vars */]) = 0
brk(0) = 0xaaa6e8
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=192233, ...}) = 0
mmap(NULL, 192233, PROT_READ, MAP_PRIVATE, 3, 0) = 0x35c6a3b1000
close(3) = 0
open("/usr/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340`\0\0\0\0\0\0"..., 832) = 832
@dmix
dmix / tether
Created March 3, 2015 20:47
Tether to android device on linux (automatically finds enp* card name and connects to it via dhcpcd)
#!/bin/bash
# Find card name starting with enp and extract the string from the list
card=`ifconfig -a | ag enp | sed -e 's/.*\([^ ]*enp[^ ]*\).*/\1/g' | sed -e 's/://'`
# Start tethering with card
sudo dhcpcd $card
echo "Tethering to $card connected via USB, you sexy bitch"
### Keybase proof
I hereby claim:
* I am dmix on github.
* I am dmix (https://keybase.io/dmix) on keybase.
* I have a public key whose fingerprint is F9C9 0898 3CBE 222A AA53 5FC3 3451 438C 4C6D 5567
To claim this, I am signing this object:
let scrollstep = 100
" vimrc shortcut
map vrc :e ~/.vimrc
" core
let mapleader="\<Space>"
set t_Co=256 " use 256 colors in terminator
" pathogen
silent! call pathogen#runtime_append_all_bundles()
@dmix
dmix / cookies.coffee
Created March 28, 2012 02:25
coffeescript to read/write to cookies
App.Functions.readCookie = (name) ->
nameEQ = name + "="
ca = document.cookie.split(";")
i = 0
while i < ca.length
c = ca[i]
c = c.substring(1, c.length) while c.charAt(0) is " "
return c.substring(nameEQ.length, c.length).replace(/"/g, '') if c.indexOf(nameEQ) is 0
i++
ca
2012-02-16T05:46:19+00:00 heroku[api]: Release v25 created by dan@dmix.ca
2012-02-16T05:46:19+00:00 heroku[api]: Deploy f9a9f12 by dan@dmix.ca
2012-02-16T05:46:20+00:00 heroku[slugc]: Slug compilation finished
2012-02-16T05:47:02+00:00 heroku[web.1]: State changed from created to starting
2012-02-16T05:47:02+00:00 heroku[api]: Scale to web=1 by dan@dmix.ca
2012-02-16T05:47:07+00:00 heroku[web.1]: Starting process with command `lein run`
2012-02-16T05:48:07+00:00 heroku[web.1]: Stopping process with SIGKILL
2012-02-16T05:48:07+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2012-02-16T05:48:08+00:00 heroku[web.1]: Process exited with status 137
2012-02-16T05:48:08+00:00 heroku[web.1]: State changed from starting to crashed