Skip to content

Instantly share code, notes, and snippets.

View rigelk's full-sized avatar

Rigel Kent rigelk

View GitHub Profile
@bradfa
bradfa / gist:4397472
Created December 28, 2012 12:51
Bone Barebox
From barebox /next branch, as of 4ed7dad60bfbef20ef2de191c20f0a8da66bde56
$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- am335x_beaglebone_mlo_large_defconfig
$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-
$ cp MLO /media/F84E-1690/
$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- am335x_beaglebone_defconfig
$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-
$ cp barebox-flash-image /media/F84E-1960/barebox.bin
Boot output:
@areina
areina / emacs-email-setup.md
Created October 12, 2012 15:00
Manage your email in emacs with mu4e

Manage your gmail account in emacs with mu4e

There're a lot of combinations to manage your email with emacs, but this works for me. I've a backup and I can manage my daily email.

The stack:

  • emacs
  • offlineimap
  • mu
  • mu4e
@johntyree
johntyree / getBlockLists.sh
Last active June 4, 2025 15:24
Make one large blocklist from the bluetack lists on iblocklist.com
#!/usr/bin/env sh
# Download lists, unpack and filter, write to stdout
curl -s https://www.iblocklist.com/lists.php \
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \
| xargs wget -O - \
| gunzip \
| egrep -v '^#'
@soemarko
soemarko / theme.html
Created November 26, 2011 16:18
embed github gist to tumblr
<!-- Add the following lines to theme's html code right before </head> -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script src="http://static.tumblr.com/fpifyru/VCxlv9xwi/writecapture.js"></script>
<script src="http://static.tumblr.com/fpifyru/AKFlv9zdu/embedgist.js"></script>
<!--
Usage: just add <div class="gist">[gist URL]</div>
Example: <div class="gist">https://gist.github.com/1395926</div>
-->
@jehiah
jehiah / simple_args_parsing.sh
Created March 4, 2011 16:56
a simple way to parse shell script arguments
#!/bin/sh
#
# a simple way to parse shell script arguments
#
# please edit and use to your hearts content
#
ENVIRONMENT="dev"