Skip to content

Instantly share code, notes, and snippets.

@ardevd
ardevd / gist:5028224
Last active December 14, 2015 04:29
CM build script
#!/bin/bash
#####
# Make Clobber, if user says so, else delete build.prop
####
read -p "Do you wish to clean the build directory? " -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]
then
cd ~/Cyan/android/system && make clobber
else
# Maintainer: Ethan Hall
# Contributors: Guillaume ALAUX, Daniel J Griffiths, Jason Chu, Geoffroy Carrier, Thomas Dziedzic, Dan Serban
pkgname=jre6
pkgver=6u43
pkgrel=01
pkgdesc="Java 6 Runtime Environment"
url=http://www.oracle.com/technetwork/java/javase/downloads/index.html
arch=('i686' 'x86_64')
license=(custom)
# Maintainer: Ethan Hall
# Contributors: Guillaume ALAUX, Daniel J Griffiths, Jason Chu, Geoffroy Carrier, Thomas Dziedzic, Dan Serban
pkgname=jdk6
pkgver=6u43
pkgrel=01
pkgdesc="Java 6 Development Kit"
url=http://www.oracle.com/technetwork/java/javase/downloads/index.html
arch=('i686' 'x86_64')
license=(custom)
@ardevd
ardevd / idaPy-windbg_relative_breakpoints.py
Last active March 28, 2016 18:54
IDAPython script to give you relative WinDBG breakpoints.
# CopeEA.py
#
# for public release, 2012
#
# Peter Vreugdenhil
import idaapi
import idc
import ctypes
D/DHCP ( 183): TIMEOUT
D/DHCP ( 183): ===== DHCP message:
D/DHCP ( 183): op = BOOTREQUEST (1), htype = 1, hlen = 6, hops = 0
D/DHCP ( 183): xid = 0xb8710100 secs = 0, flags = 0x8000 optlen = 14
D/DHCP ( 183): ciaddr = 0.0.0.0
D/DHCP ( 183): yiaddr = 0.0.0.0
D/DHCP ( 183): siaddr = 0.0.0.0
D/DHCP ( 183): giaddr = 0.0.0.0
D/DHCP ( 183): chaddr = { 00 00 00 00 00 00 }
D/DHCP ( 183): sname = ''
D/MobileDataStateTracker( 589): default: Broadcast received: android.intent.action.ANY_DATA_STATE apnType=default
D/MobileDataStateTracker( 589): default: default setting isAvailable to false
D/MobileDataStateTracker( 589): default: Received state=DISCONNECTED, old=DISCONNECTED, reason=(unspecified)
D/MobileDataStateTracker( 589): fota: Broadcast received: android.intent.action.ANY_DATA_STATE apnType=fota
D/MobileDataStateTracker( 589): fota: fota setting isAvailable to false
D/MobileDataStateTracker( 589): fota: Received state=DISCONNECTED, old=DISCONNECTED, reason=dataAttached
D/MobileDataStateTracker( 589): dun: Broadcast received: android.intent.action.ANY_DATA_STATE apnType=dun
D/MobileDataStateTracker( 589): dun: dun setting isAvailable to false
D/MobileDataStateTracker( 589): dun: Received state=DISCONNECTED, old=DISCONNECTED, reason=dataAttached
D/MobileDataStateTracker( 589): supl: Broadcast received: android.intent.action.ANY_DATA_STATE apnType=supl
Chain INPUT (policy ACCEPT 12 packets, 1008 bytes)
pkts bytes target prot opt in out source destination
193 17822 bw_INPUT all -- * * 0.0.0.0/0 0.0.0.0/0
193 17822 fw_INPUT all -- * * 0.0.0.0/0 0.0.0.0/0
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 oem_fwd all -- * * 0.0.0.0/0 0.0.0.0/0
0 0 fw_FORWARD all -- * * 0.0.0.0/0 0.0.0.0/0
0 0 bw_FORWARD all -- * * 0.0.0.0/0 0.0.0.0/0
Chain PREROUTING (policy ACCEPT 8 packets, 2587 bytes)
pkts bytes target prot opt in out source destination
8 2587 oem_nat_pre all -- * * 0.0.0.0/0 0.0.0.0/0
Chain INPUT (policy ACCEPT 8 packets, 2587 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 30 packets, 2112 bytes)
pkts bytes target prot opt in out source destination
default via 10.203.70.57 dev rmnet_usb0
10.203.70.56/30 dev rmnet_usb0 proto kernel scope link src 10.203.70.56
0: from all lookup local
32766: from all lookup main
32767: from all lookup default
shell@mako:/ #