Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby
# Made by Pieter de Bie <frimmirf@gmail.com>
# Based on a "Pastie" task by someone
require "tempfile"
GIST_URL = 'http://gist.github.com/gists'
GIST_LOGIN_URL = 'https://gist.github.com/session'
USERNAME = "pieter"
TOKEN = "SweetTokenPower"
@bradfa
bradfa / gist:869016
Created March 14, 2011 11:28
BeagleBoard-xM 2.6.38-rc8 Kernel Boot - CLFS Embedded Toolchain
Texas Instruments X-Loader 1.4.4ss (Aug 19 2010 - 02:49:27)
Beagle xM Rev A
Reading boot sector
Loading u-boot.bin from mmc
U-Boot 2010.03-dirty (Aug 20 2010 - 20:50:46)
OMAP3630/3730-GP ES2.0, CPU-OPP2, L3-165MHz,
OMAP3 Beagle board + LPDDR/NAND
@tmpvar
tmpvar / .gitignore
Created July 12, 2011 07:19
A console.log implementation that plays "nice" with large amounts of data. It Keeps node alive until the output has flushed to the screen.
gmon.out
v8.log
@maxlapshin
maxlapshin / capture_raw_frames.c
Created September 30, 2011 11:50
v4l2 capture example
/*
* V4L2 video capture example
*
* This program can be used and distributed without restrictions.
*
* This program is provided with the V4L2 API
* see http://linuxtv.org/docs.php for more information
*/
#include <stdio.h>
anonymous
anonymous / stdin.txt
Created June 6, 2012 04:59
stdin
var cluster = require('cluster');
if(cluster.isMaster) {
addLoop = function(newloop, delay) {
console.log('Adding ' + newloop.toString());
var worker = cluster.fork();
cluster.on('death', function(worker) {
console.log('Loop with PID ' + worker.pid + ' died');
});
worker.on('message', function(m) {
console.log('Parent got message ' + JSON.stringify(m));
@ajmontag
ajmontag / gpio.c
Created November 4, 2012 19:24
A C program that listens for button presses on a Beaglebone GPIO pin and reports the press duration.
/**
* Title: gpio.c
*
* Author: Andrew Montag
* ajmontag@gmail.com
* sites.google.com/site/andrewmontag
*
* Licence: Boost Software Licence - Verison 1.0
* http://www.boost.org/users/license.html
*
From 75448c8b6dc7c37e134d630d8e9b50b38d44d0be Mon Sep 17 00:00:00 2001
From: Jason Kridner <jdk@ti.com>
Date: Fri, 18 Jan 2013 21:36:15 +0000
Subject: [PATCH] firmware: capes: quick hack on HDMI to add panel
---
firmware/capes/cape-boneblack-hdmi-00A0.dts | 37 +++++++++++++++++++++++++++
1 files changed, 37 insertions(+), 0 deletions(-)
diff --git a/firmware/capes/cape-boneblack-hdmi-00A0.dts b/firmware/capes/cape-boneblack-hdmi-00A0.dts
//******************************************************************
var b = require ('bonescript');
var LCD_RS = "P8_12"; //LCD Register Set (RS) control
var LCD_E = "P8_14"; //LCD Enable (E) control
var LCD_DB0 = "P8_16"; //LCD Data line DB0
var LCD_DB1 = "P8_18"; //LCD Data line DB1
var LCD_DB2 = "P8_20"; //LCD Data line DB2
var LCD_DB3 = "P8_22"; //LCD Data line DB3
@douglasduteil
douglasduteil / .travis.yml
Last active February 22, 2021 13:27 — forked from lukewpatterson/gist:4242707
Here is how I allow Git SSH authentication in Travis CI. I'm using it to connect Travis to my repo organization AngularUI. This trick is a fork. The goal is to encode the RSA private deploy key in the .travis.yml as "-secure: xxxxx.....".
---
language: node_js
node_js:
- '0.10'
branches:
only:
- master
before_script: .travis/before_script.sh
script: echo -e " >>> Do something... \"grunt\" for example\n"
after_success: .travis/after_success.sh
@canadaduane
canadaduane / bbwifi.txt
Created May 19, 2013 18:41
BeagleBone WiFi can be manually enabled with "test-connman connect" but autoconnect fails
# Adventures In Wireless BeagleBone Black:
# What prevents my Edimax WiFi USB dongle from autoconnecting to my home WiFi network, "Catalina Island Network"?
# NOTE: If you're here to glean info for your own setup, note that I've installed the
# following two connman auxiliary packages which give the tools and test scripts in
# /usr/lib/connman/test that I use below
# $ opkg install connman-tools connman-tests
#
# Also, I've disabled power save mode for the WiFi so that the BBB can act as a server:
# $ cat > /etc/udev/rules.d/wifi_power_save.rules <<-EOF