Skip to content

Instantly share code, notes, and snippets.

@adam-lee
adam-lee / qt5-test.cpp
Created August 11, 2015 18:31
HelloQt.cpp
/* qt5-test.cpp */
#include <QApplication>
#include <QLabel>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel label("Hello, World!");
label.resize(400, 200);
[rpmsys]
type = rpm-sys
[url0-all]
type = rpm-md
priority = 25
baseurl = https://packages.gumstix.com/dev//rpm/all
[url0-cortexa8hf_vfp_neon]
type = rpm-md
From e83e315af0f7d94f1375cdfab801b17aaec6ae62 Mon Sep 17 00:00:00 2001
From: Adam YH Lee <adam.yh.lee@gmail.com>
Date: Wed, 21 Jan 2015 14:57:02 -0800
Subject: [PATCH] Add NAND support to Overo Device Tree
This adds the support for PoP style Micron MT29C4G96MAZ 512MB NAND, which is
used in many, but not all, Gumstix Overo COMs.
---
arch/arm/boot/dts/omap3-overo-base.dtsi | 48 +++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
@adam-lee
adam-lee / rm-file
Last active August 29, 2015 13:57
rm-file
# /media/Build/master-next/poky/meta-gumstix-extras/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.0.bbappend
# /media/Build/master-next/poky/meta-gumstix-extras/recipes-core/busybox/busybox_1.21.1.bbappend
# /media/Build/master-next/poky/meta-gumstix-extras/recipes-multimedia/musicpd/mpd_0.17.1.bbappend
# /media/Build/master-next/poky/meta-gumstix-extras/recipes-connectivity/neard/neard_0.10.bbappend
f = File.open("to-be-removed", "r")
f.each_line do |line|
system 'rm', line.chomp
end
f.close
@adam-lee
adam-lee / Mass Unfollow
Last active December 17, 2015 07:03
Twitter Unfollow Script
#!/usr/bin/env ruby
# step 1 install t - https://github.com/sferik/t
# step 2 generate a list of followings - '$ t followings > followings'
# step 3
f = File.open("followings", "r")
f.each_line do |line|
system 't', 'unfollow', line
sleep(1.0)
end
f.close
@adam-lee
adam-lee / 0_reuse_code.js
Created March 3, 2014 18:02
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@adam-lee
adam-lee / gist:9235884
Created February 26, 2014 18:50 — forked from 17twenty/gist:2718613
Beaglbone u-boot parameters (uEnv.txt)
So the Beaglebone uses the file uEnv.txt to store settings as it doesn't have any NAND allocated to do it with, by
default the file is pretty empty save from the line:
optargs=run_hardware_tests quiet
You may have read a number of things about boot.scr etc - ignore it, it's not correct.
The bootcmd is hardwired in uboot to do the following (i've seperated it all out to make things clearer) - you can see it by
interrupting the bootsequence and performing a 'printenv'.
bootcmd=

Keybase proof

I hereby claim:

  • I am adam-lee on github.
  • I am b1gtuna (https://keybase.io/b1gtuna) on keybase.
  • I have a public key whose fingerprint is BB1F C7A6 CEF6 A851 60F6 91F5 9220 1890 C942 16B9

To claim this, I am signing this object: