Skip to content

Instantly share code, notes, and snippets.


Bryan Hundven bhundven

View GitHub Profile
bhundven / local_manifest.xml
Last active May 1, 2017 10:23
example CM10.1 quincyatt local_manifest.xml
View local_manifest.xml
<?xml version="1.0" encoding="UTF-8"?>
<project name="CyanogenMod/android_packages_apps_SamsungServiceMode" path="packages/apps/SamsungServiceMode" revision="cm-10.1" />
<project name="CyanogenMod/android_device_samsung_msm8660-common" path="device/samsung/msm8660-common" revision="cm-10.1" />
<project name="CyanogenMod/android_device_samsung_quincyatt" path="device/samsung/quincyatt" revision="cm-10.1" />
<project name="CyanogenMod/android_device_samsung_quincy-common" path="device/samsung/quincy-common" revision="cm-10.1" />
<project name="CyanogenMod/android_kernel_samsung_msm8660-common" path="kernel/samsung/msm8660-common" revision="cm-10.1" />
<project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" revision="cm-10.1" />
bhundven /
Last active December 18, 2015 21:39
Full mirror from gerrit project listing.
#set -x
## Variables
# myname: This scripts name.
declare myname="${0##*/}"
# gerrit_host: The gerrit host we can query to get the list of projects.
declare gerrit_host
# git_host: The git url where the source can be downloaded.
bhundven /
Last active March 18, 2020 07:26
Enlightenment 19 build script for Ubuntu/Debian
# vi: ts=4:sw=4:et
# This script allows you to install/update Enlightenment 19 git version on
# Ubuntu 14.04 LTS or Debian wheezy/sid, or remove E19 git from your system.
# Originally from:
# By: Philippe J. Guillaumie (batden AT sfr DOT fr).
# Additional updates by: Bryan Hundven (bryanhundven AT gmail DOT com).
bhundven / gist:ffdfd8af149f67b95de8
Created May 13, 2014 20:51
hammerhead aosp/master localmanifest.xml
View gist:ffdfd8af149f67b95de8
<?xml version="1.0" encoding="UTF-8"?>
<remote name="github"
fetch=".." />
<project path="vendor/lge/hammerhead" name="jamesonwilliams/vendor_lge_hammerhead" revision="android-4.4.2_r1" remote="github" />
<project path="vendor/qcom/hammerhead" name="jamesonwilliams/vendor_qcom_hammerhead" revision="android-4.4.2_r1" remote="github" />
bhundven /
Last active August 29, 2015 14:01
The path to making CentOS 6.5 slimmer ;)
for package in $(rpm -qa --queryformat "%{NAME}\n" | sort -u); do
req=$(rpm -q --queryformat "%{NAME}\n" --whatrequires "$package")
if echo "$req" | grep -q "no package requires"; then
echo "$req"
printf "package: $package is required by:\n"
for required in $(rpm -q --queryformat "%{NAME}\n" --whatrequires $package | sort -u); do
printf "\t%s\n" "$required"
bhundven / blah.cfg
Created May 21, 2014 22:13
example of slim centos package list
View blah.cfg
%packages --ignoremissing
# We don't need any special firmware files
bhundven / .bash_functions
Last active August 29, 2015 14:04
Handy way to add patches to quilt.
View .bash_functions
# vi: ts=4:sw=4:et:ai:ft=sh
quilt-add-patch ()
quilt new $(basename ${patch_file} | sed -e 's/\.diff//' | sed -e 's/\.patch//')
quilt add $(awk '/^---/{ print $2 }' "${dir}/${patch_file}" | sed -e 's/a\///')
patch -p1 < "${dir}/${patch_file}"
quilt refresh
bhundven /
Last active January 21, 2019 20:21
Enlightenment 19 build script for Ubuntu/Debian with Wayland support.
# vi: ts=4:sw=4:et
# This script allows you to install/update Enlightenment 19 git version on
# Ubuntu Wily/15.10 or Debian stretch/sid, or remove E19 git from your system.
# ********************************************************************
# * This version builds enlightenment with wayland. *
# * That means this requires a very recent Ubuntu or Debian version. *
# * This may not work properly! You've been warned! *
bhundven /
Last active August 9, 2021 09:21
python mutt+maildir notifier using python
# Based on:
# This version is modified to handle mailboxes with spaces in the names
import pyinotify
import pynotify
from os.path import expanduser
from mailbox import MaildirMessage
from email.header import decode_header
from gtk.gdk import pixbuf_new_from_file
bhundven /
Created April 16, 2021 21:37

Keybase proof

I hereby claim:

  • I am bhundven on github.
  • I am bryanhundven ( on keybase.
  • I have a public key ASCbMNv6vIeeYuhpLcG475Vt3RJasH1BpMSuQSH1mfAgsAo

To claim this, I am signing this object: