Skip to content

Instantly share code, notes, and snippets.

@fleger
fleger / dreamplug.log
Created April 30, 2011 20:15
Dreamplug plugapps boot log
Marvell>> printenv
bootcmd=setenv ethact egiga0; ${x_bootcmd_ethernet}; setenv ethact egiga1; ${x_bootcmd_ethernet}; ${x_bootcmd_usb}; ${x_bootcmd;
bootdelay=3
baudrate=115200
x_bootcmd_ethernet=ping 192.168.2.1
x_bootcmd_usb=usb start
x_bootcmd_kernel=fatload usb 0 0x6400000 uImage
x_bootargs=console=ttyS0,115200
ethact=egiga0
ethaddr=F0:AD:4E:00:81:59
@fleger
fleger / modfs.sh
Created March 1, 2011 12:17
Wrapper around unionfs-fuse that uses a file-based branches configuration.
#! /bin/bash
# This program is free software. It comes without any warranty, to
# the extent permitted by applicable law. You can redistribute it
# and/or modify it under the terms of the Do What The Fuck You Want
# To Public License, Version 2, as published by Sam Hocevar. See
# http://sam.zoy.org/wtfpl/COPYING for more details.
: ${UNIONFS:=unionfs}
readonly MODFS_BIN="$0"
@fleger
fleger / treewalker.sh
Created February 20, 2011 16:58
Really basic tree walking library written in bash
# This program is free software. It comes without any warranty, to
# the extent permitted by applicable law. You can redistribute it
# and/or modify it under the terms of the Do What The Fuck You Want
# To Public License, Version 2, as published by Sam Hocevar. See
# http://sam.zoy.org/wtfpl/COPYING for more details.
# Private API
# treewalker.__walk head preCallback postCallback
treewalker.__walk() {
@fleger
fleger / fuse-or.sh
Created February 20, 2011 10:39
Mount fuse filesystems in one mountpoint using or logic
#! /bin/bash
# This program is free software. It comes without any warranty, to
# the extent permitted by applicable law. You can redistribute it
# and/or modify it under the terms of the Do What The Fuck You Want
# To Public License, Version 2, as published by Sam Hocevar. See
# http://sam.zoy.org/wtfpl/COPYING for more details.
readonly FUSE_OR_BIN="$0"
@fleger
fleger / lmake.sh
Created November 18, 2010 23:46
Utility to create skeleton files for new NetKit labs
#! /bin/bash
# bash >= 4.0 required
[ $# == 0 ] && cat << EOF
Usage: $0 machine[:interface1=hub1[,ip1][:interface2=hub2[,ip2]] ...] ...
Utility to create skeleton files for new NetKit labs.
Options
@fleger
fleger / torssadd.py
Created October 4, 2010 17:58
Command-line utility to create RSS feeds
#! /usr/bin/env python
import sys
import os
import datetime
import feedparser
import PyRSS2Gen
from optparse import OptionParser