Skip to content

Instantly share code, notes, and snippets.

View bandwidthcrunch's full-sized avatar

Manav Gautama bandwidthcrunch

View GitHub Profile
@bandwidthcrunch
bandwidthcrunch / gist:5150691
Created March 13, 2013 09:58
mandroid fixes
build/core/comboHOST_linux-x86.mk
-HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0
+HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
external/gtest/internal/gtest-param-util.h
#include <vector>
+#include <cstddef>
#include <gtest/internal/gtest-port.h>
external/libpp/format_output.h b/libpp/format_output.h
1103.184916] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 1193.052303] type=1400 audit(1362933968.075:26): apparmor="DENIED" operation="capable" parent=1 profile="/usr/sbin/cupsd" pid=1239 comm="cupsd" pid=1239 comm="cupsd" capability=36 capname="block_suspend"
[ 1333.308475] mmcblk0: unknown partition table
[ 1333.791105] mmcblk0: p1 p2
[ 1334.011627] device-mapper: multipath: version 1.4.0 loaded
[ 1501.324116] EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts: (null)
[ 1521.224245] mmc0: card e624 removed
[ 1523.645983] mmc0: new SDHC card at address e624
[ 1523.646359] mmcblk0: mmc0:e624 SU04G 3.69 GiB
[ 1523.660064] mmcblk0: p1 p2
# Update System
# ------------------------------------------------------------------------------
echo 'Updating System...'
sudo apt-get -y update
# Hardware
# ------------------------------------------------------------------------------
echo 'Installing bumblebee'
sudo add-apt-repository -y ppa:bumblebee/stable && sudo apt-get update
sudo apt-get -y install bumblebee bumblebee-nvidia
@bandwidthcrunch
bandwidthcrunch / snippet.txt
Created February 21, 2013 13:14
working i.mx53 logs
U-Boot 2009.08-00343-g6ff09d7 (Mar 20 2012 - 20:43:56)
CPU: Freescale i.MX53 family 2.1V at 800 MHz
mx53 pll1: 800MHz
mx53 pll2: 400MHz
mx53 pll3: 216MHz
mx53 pll4: 455MHz
ipg clock : 66666666Hz
ipg per clock : 33333333Hz
uart clock : 66666666Hz
@bandwidthcrunch
bandwidthcrunch / rsync-git
Created February 18, 2013 10:12
pull .git dirs fromn checkedout dir and push in old dir
rsync -avz --include "*/" --include "**.svn**" --exclude "*" just-checked-out/ old-and-modified/
@bandwidthcrunch
bandwidthcrunch / git.txt
Created February 14, 2013 08:41
git cheatsheet
Downloading the latest stable tree
First, checkout the stable kernel git repository:
git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
cd linux-stable
Next, find the latest stable kernel tag by running
git tag -l | less
Find the latest stable kernel by looking for the largest vX.Y.Z values. For example, use the v3.1 tag over the v3.0.46 tag. If v3.1.1 is available, use that instead of v3.1. The kernel tags that end with -rcX are release candidate kernels, not stable kernels.
@bandwidthcrunch
bandwidthcrunch / gist:4305948
Created December 16, 2012 09:53
Hackberry kernel dmesg and logcat
HELLO! BOOT0 is starting!
boot0 version : .3.0
dram size =1024
Succeed in opening nand flash.
Succeed in reading Boot1 file head.
The size of Boot1 is 0x00036000.
The file stored in 0X00000000 of block 2 is perfect.
Check is correct.
Ready to disable icache.
Succeed in loading Boot1.