Skip to content

Instantly share code, notes, and snippets.

View wolfeidau's full-sized avatar
🐺
Building data science projects

Mark Wolfe wolfeidau

🐺
Building data science projects
View GitHub Profile
heap profile: 18: 50304 [706: 19785112] @ heap/1048576
2: 16384 [2: 16384] @ 0x2142f 0xe911 0xeb64 0x22b35 0xd2825 0xd56ea 0xe8257 0xe8327 0x58c31 0x58b80 0x2206 0x17aff 0x1a020
# 0xe911 resizefintab+0xa1 /usr/local/Cellar/go/1.2/libexec/src/pkg/runtime/mfinal.c:127
# 0xeb64 runtime.addfinalizer+0x114 /usr/local/Cellar/go/1.2/libexec/src/pkg/runtime/mfinal.c:172
# 0x22b35 runtime.SetFinalizer+0x215 /usr/local/Cellar/go/1.2/libexec/src/pkg/runtime/malloc.goc:791
# 0xd2825 net.(*netFD).setAddr+0x85 /usr/local/Cellar/go/1.2/libexec/src/pkg/net/fd_unix.go:57
# 0xd56ea net.(*netFD).accept+0x67a /usr/local/Cellar/go/1.2/libexec/src/pkg/net/fd_unix.go:404
# 0xe8257 net.(*TCPListener).AcceptTCP+0x47 /usr/local/Cellar/go/1.2/libexec/src/pkg/net/tcpsock_posix.go:233
# 0xe8327 net.(*TCPListener).Accept+0x27 /usr/local/Cellar/go/1.2/libexec/src/pkg/net/tcpsock_posix.go:243
# 0x58c31 net/http.(*Server).Serve+0x91 /usr/local/Cellar/go/1.2/libexec/src/pkg/net/http/server.go:1622
@wolfeidau
wolfeidau / docker.yml
Last active August 29, 2015 13:56
Quick and dirty DO docker ansible playbook.
- name: Install pycurl
hosts: all
gather_facts: no
tasks:
- name: Install pycurl
apt: pkg=python-pycurl update_cache=yes cache_valid_time=600
- name: Install Docker on Server
hosts: all
roles:

Keybase proof

I hereby claim:

  • I am wolfeidau on github.
  • I am wolfeidau (https://keybase.io/wolfeidau) on keybase.
  • I have a public key whose fingerprint is 239E 0B5C 3A76 1DF4 082B 78B6 4C7E 5BF4 9298 9294

To claim this, I am signing this object:

@wolfeidau
wolfeidau / contiki.md
Created March 1, 2014 08:17
Contiki OS success!

Contiki OS running on an ATmega256RFR2 connected via slip6 to mac osx.

sudo ./tunslip6 -B 38400 -s /dev/tty.usbmodem1411 aaaa::1/64
********SLIP started on ``/dev/tty.usbmodem1411''
opened tun device ``/dev/tun0''
ifconfig tun0 inet6 up
ifconfig tun0 inet6 aaaa::1/64 add
sysctl -w net.inet6.ip6.forwarding=1
net.inet6.ip6.forwarding: 0 -> 1
@wolfeidau
wolfeidau / hosts
Last active August 29, 2015 13:57
6lowpan
sudo ip addr add fdea:edcd:950d:0eea::1/64 dev eth0
sudo ./tunslip6 -B 38400 -s /dev/ttyAMA0 'fdf3:e76c:b35d:be4e::1/64'
on the mac
sudo rtsold en0
make TARGET=avr-meshthing broadcast-example.hex
@wolfeidau
wolfeidau / elb.toml
Created March 22, 2014 23:29
hekad configuration
[hekad]
base_dir = "/usr/local/var/cache/hekad"
decoder_poolsize = 10
max_message_loops = 4
max_process_inject = 10
max_timer_inject = 10
maxprocs = 10
plugin_chansize = 10
poolsize = 100
@wolfeidau
wolfeidau / cleanimage.sh
Last active August 29, 2015 13:58
Digital Ocean clean image
#!/bin/bash
#+----------------------------------------------------------------------------------------+
#| This file is used to clean up traces from DigitalOcean *images* before being published.|
#+----------------------------------------------------------------------------------------+
unset HISTFILE
files=(/root/.mysql_history /var/log/lastlog /root/.bash_history /var/log/wtmp /var/log/auth.log /var/log/messages)
for file in ${files[*]}
do
23:55:39.364861 run-app postgres
23:55:39.532855 gen-random controller-key
23:55:39.532982 gen-random controller-key XXXX
23:55:39.532987 wait postgres-wait
23:55:43.556268 run-app controller
23:55:43.880205 wait controller-wait
23:55:44.391355 add-app controller-inception
23:55:44.424021 add-app postgres-app
23:55:44.434001 scale-app scheduler-scale
23:55:44.437448 run-app scheduler
@wolfeidau
wolfeidau / Makefile
Created May 22, 2014 04:42
Go project build files
all:
scripts/build.sh
dist:
scripts/dist.sh
clean:
rm bin/mqtt-bridgeify || true
rm -rf .gopath || true
@wolfeidau
wolfeidau / docker-do-build.yml
Created May 22, 2014 09:03
From zero to Docker with ansible
- name: Install pycurl
hosts: all
gather_facts: no
tasks:
- name: Install pycurl
apt: pkg=python-pycurl update_cache=yes cache_valid_time=600
- name: Install Docker on Server
hosts: all
roles: