Skip to content

Instantly share code, notes, and snippets.

@kmanna
kmanna / caltrain.2014.gopass.companies.html
Created December 13, 2013 00:42
Caltrain 2014 List of companies with GoPass
<select class="ipbf-select" id="QIAIDSELECT_6421" name="QIAIDSELECT_6421">
<option value="-1" selected=""></option>
<option value="19746">23andMe</option>
<option value="19747">A9.com</option>
<option value="19748">Adobe</option>
<option value="19754">Amazon.com</option>
<option value="19749">Ancestry.com</option>
<option value="19750">Badgeville</option>
<option value="19751">Big Switch Networks</option>
<option value="19752">Box</option>
@kmanna
kmanna / ivy-promote.sh
Last active December 26, 2015 09:09
Example Ivy promotion script to promote milestones to release builds without using Ant.
#!/bin/sh
#
# Example Ivy promotion script to promote milestones to release builds
#
ORG="$1"
MOD="$2"
OUT="./promote"
REV="latest.milestone"
IVY="~/.ant/lib/ivy-2.3.0.jar"
@kmanna
kmanna / smem.py
Last active December 25, 2015 02:58
smem with json and stdin support
#!/usr/bin/env python
#
# smem - a tool for meaningful memory reporting
#
# Copyright 2008-2009 Matt Mackall <mpm@selenic.com>
#
# This software may be used and distributed according to the terms of
# the GNU General Public License version 2 or later, incorporated
# herein by reference.
From 9b55aebfea81ca8ac9f0731736fffee826537de8 Mon Sep 17 00:00:00 2001
From: Kyle Manna <kmanna@fanhattan.com>
Date: Wed, 19 Jun 2013 18:10:03 -0700
Subject: [PATCH 1/3] bluetooth: Add ability to pass connection params
* Useful for adding Bluetooth Low Energy Connection Parameters which
are currently hardcoded.
---
include/net/bluetooth/hci_core.h | 5 ++--
include/net/bluetooth/l2cap.h | 4 ++++
#!/bin/sh
let i=0
killall wpa_supplicant
wpa_supplicant -c /etc/wifi/wpa_supplicant.conf -i wlan0
while true;
do
echo $i;
i=$(($i+1))
wpa_cli -p /data/misc/wifi/sockets scan
usleep 750000