Skip to content

Instantly share code, notes, and snippets.

@imlunacat
imlunacat / android-db-pull.sh
Last active August 29, 2015 14:03
script for Android package database pull
#!/bin/sh
# Simple script that pull-out database stored in Phone.
# Please note this script would FAIL in Android L-preview
packageName=$1
dbName=$2
echo $packageName
echo $dbName
dbFullPath="/data/data/$packageName/databases/$dbName"
@imlunacat
imlunacat / twitch-notify.py
Created November 20, 2012 16:20
A notification for Twitch.TV
#!/usr/bin/python
# You would receive a notification when the channel you followed in
# Twitch had braodcasting
import gobject, gtk, webkit, pynotify
import os, urllib2, json
REDIRECT_URI ="https://github.com/imlunacat/testing-repo/blob/master/desc.html"
TWITCH_PREFIX = "https://api.twitch.tv/kraken/"
OAUTH_URI = TWITCH_PREFIX + "oauth2/authorize?response_type=token&client_id=mpndpnjiww9xmhyl6hw5rpbmp1295m4&redirect_uri="+REDIRECT_URI+"&scope=user_read"