Skip to content

Instantly share code, notes, and snippets.

View coolaj86's full-sized avatar
😎
🐹 Go 🦎 Zig πŸ“¦ Node 🐧 POSIX πŸͺŸ PowerShell

AJ ONeal coolaj86

😎
🐹 Go 🦎 Zig πŸ“¦ Node 🐧 POSIX πŸͺŸ PowerShell
View GitHub Profile
@coolaj86
coolaj86 / test-writes.sh
Created January 26, 2011 18:38
useful for testing "streaming" file writes and watching cpu usage in htop
#!/bin/bash
#
# `msleep` is available at https://github.com/coolaj86/msleep-commandline
SIZE=${1}
LOCATION=${2}
DATFILE=~/data.tmp
if [ ! -n "${SIZE}" ]
then
SIZE=512K
@coolaj86
coolaj86 / node-sqlite3-test.js
Created February 26, 2011 21:01
trying to understand node-sqlite3
(function () {
"use strict";
require('long-stack-traces');
var sqlite3 = require('sqlite3').verbose(),
db;
function createDb() {
console.log("createDb");
@coolaj86
coolaj86 / gist:853196
Created March 3, 2011 18:06
terminal output from linaro / overo build process
coolaj86@vmbuntu:~/linaro$ sudo linaro-media-create --mmc /dev/sde --dev overo --hwpack ./hwpack_linaro-overo_20110202-0_armel_supported.tar.gz --binary ./linaro-natty-headless-tar-20110202-0.tar.gz
[sudo] password for coolaj86:
I see...
Device Mount point Size
/dev/sr0 none 1023MB
/dev/sdb none 0MB
/dev/sda none 122880MB
/dev/sdc none 0MB
/dev/sdd none 0MB
@coolaj86
coolaj86 / gist:853596
Created March 3, 2011 21:16
linaro output
coolaj86@vmbuntu:~/linaro$ sudo linaro-media-create --mmc /dev/sde --dev overo --hwpack ./hwpack_linaro-overo_20110302-1_armel_supported.tar.gz --binary ./linaro-n-developer-tar-20110302-0.tar.gz
I see...
Device Mount point Size
/dev/sr0 none 36MB
/dev/sdb none 0MB
/dev/sda none 122880MB
/dev/sdc none 0MB
/dev/sdd none 0MB
/dev/sde1 none 70MB
@coolaj86
coolaj86 / gist:853606
Created March 3, 2011 21:20
Gumstix Overo u-boot printenv
Texas Instruments X-Loader 1.4.4ss (Jan 26 2011 - 10:12:24)
OMAP3530-GP ES3.1
Board revision: 0
Reading boot sector
Loading u-boot.bin from mmc
U-Boot 2011.03-rc1 (Feb 09 2011 - 01:40:01)
OMAP3530-GP ES3.1, CPU-OPP2, L3-165MHz, Max CPU Clock 720 mHz
@coolaj86
coolaj86 / gist:853981
Created March 4, 2011 01:21
linaro-media-create from bzr
OMAP3530-GP ES3.1
Board revision: 0
Reading boot sector
Loading u-boot.bin from mmc
U-Boot 2011.03-rc1 (Feb 09 2011 - 01:40:01)
OMAP3530-GP ES3.1, CPU-OPP2, L3-165MHz, Max CPU Clock 720 mHz
# lnkv5T bin/ti_platforms_evm3530/algo.xv5T ...
/usr/bin/arm-linux-gnueabi-gcc \
-lm \
-o \
bin/ti_platforms_evm3530/algo.xv5T \
package/cfg/bin/ti_platforms_evm3530/algo/algo_output.ov5T \
package/cfg/bin/ti_platforms_evm3530/algo_xv5T.ov5T \
package/cfg/bin/ti_platforms_evm3530/algo/watchdog.ov5T \
package/cfg/bin/ti_platforms_evm3530/algo/socket.ov5T \
package/cfg/bin/ti_platforms_evm3530/algo/set-algo-defaults.ov5T \
@coolaj86
coolaj86 / about-2.6.39.txt
Created April 25, 2011 18:49
FSR patches and logs
As far as I can tell, these are the exact options required to get full FSR support in the kernel:
The root is Device Drivers --> Multimedia support
* Media Controller API
* Video For Linux
* V4L2 sub-device userspace API
* Video Capture Adapters
--> * OMAP 3 Camera support (EXPERIMENTAL)
--> Encoders/decoders and other helper chips
@coolaj86
coolaj86 / for-in-fail.js
Created April 25, 2011 22:09
Why `for (var x in obj) {}` is the devil
(function () {
"use strict";
var arr = [
'a',
'b',
'c'
]
, x;
/*
* Driver for FSR172x data acquisition system
*
* Copyright (C) 2010, Laurent Pinchart <[email protected]>
*
* 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.
*/