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
@wolfeidau
wolfeidau / config.js
Last active December 16, 2015 22:29
proposed config for blorg
// export config function
exports.config = fuction(blorg){
// initial setup
blorg.setup({
templateRoot: './templates'
, outputRoot: '../rvagg.github.com_gh-pages'
, atom: 'atom.xml' // less is more in my view for this feature
, index: 'index.html' // ^
})
@wolfeidau
wolfeidau / node-profiler.md
Last active December 17, 2015 00:59
Using node profiler util programs

#Introduction

So you have a program that is doing bad things and have isolated that to a test case, this guides you though using one of the tools bundled with node-profiler to read the v8 logs.

  • Install node-profiler into your project directory.
npm install profiler --from-git git://github.com/wolfeidau/node-profiler.git#updated_v8_to_3.14.5.8
@wolfeidau
wolfeidau / awsbox.md
Last active December 17, 2015 05:29
Howto AWSbox

Method

Testing out awsbox was easy mode I did it using the following method.

Export your aws id and secret key from your IAS account.

export AWS_ID=XXX
export AWS_SECRET=XXX
@wolfeidau
wolfeidau / delete.md
Last active December 17, 2015 06:39
Key delete in JS
$ node
> var obj = {name: 'mark', role: 'admin'}
undefined
> obj
{ name: 'mark', role: 'admin' }
> delete obj.role;
true
> obj
{ name: 'mark' }

Installing 13.04

Download the 13.04 arm build, note this image will be used to bootstrap the actual image we want on the device.

wget http://s3.armhf.com/debian/raring/bone/ubuntu-13.04-armhf-minfs-3.8.12-bone17.img.xz

If your imaging on the mac.

@wolfeidau
wolfeidau / cross-compile.sh
Created May 20, 2013 22:51
Awesome script for cross compiling nodejs and packaging it in a deb
#!/bin/bash
OLDPATH=${PATH}
UpdateBox()
{
echo "-> Installing apt-get packages"
aptitude update
aptitude -y install build-essential
aptitude -y remove libruby1.8 ruby1.8 ruby1.8-dev rubygems1.8
@wolfeidau
wolfeidau / uart2pinmux.dts
Last active December 17, 2015 13:29
Beagle stuff
/*
* Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
/dts-v1/;
/plugin/;
{
"graphite": {
"dashboard":{
"timezone": "Australia/Melbourne"
}
},
"nodejs": {
"install_method": "binary"
},
"run_list": [
@wolfeidau
wolfeidau / Cheffile
Created May 22, 2013 07:48
Cheffile
#!/usr/bin/env ruby
#^syntax detection
site 'http://community.opscode.com/api/v1'
cookbook 'git'
cookbook 'ntp'
cookbook 'timezone'
cookbook 'fail2ban'
cookbook 'logwatch'
@wolfeidau
wolfeidau / monster.js
Last active December 17, 2015 17:48
monster
var fs = require('fs')
var path = require('path')
var util = require('util')
var stream = require('stream')
var optimist = require('optimist')
var split = require('split')
process.title = 'librato-heroku-job'