Skip to content

Instantly share code, notes, and snippets.

View dweeber's full-sized avatar

Kevin Reed dweeber

  • TNET Services Inc
  • Mesa AZ
View GitHub Profile
@dweeber
dweeber / Function for expanding fs
Created September 9, 2012 18:27
raspi-config do_expand_rootfs function that uses all of the SDcard
do_expand_rootfs() {
# Get the starting offset of the root partition
PART_START=$(parted /dev/mmcblk0 -ms unit s p | grep "^2" | cut -f 2 -d:)
[ "$PART_START" ] || return 1
# Return value will likely be error for fdisk as it fails to reload the
# partition table because the root fs is mounted
fdisk /dev/mmcblk0 <<EOF
p
d
2
@dweeber
dweeber / rpiGpioSensor.bash
Created September 3, 2012 15:36
Intial script for sensing GPIO pin dropping to reset RPi
#! /bin/bash
# Originally posted to http://www.raspberrypi.org/phpBB3/viewtopic.php?f=29&t=14255
# This script is used to check a pin at half second intervals and
# will shutdown the system if the pin is at a low level.
# Portions of this script adapted from "GPIO Driving Example (Shell script)"
# found on elinux.org .
@dweeber
dweeber / xbmc.log
Created September 1, 2012 21:59
Errorlog from XBMC when trying to play an ISO
14:54:14 T:1101049856 DEBUG: OnKey: 11 (0b) pressed, action is Select
14:54:14 T:1101049856 DEBUG: OnPlayMedia /media/iso/AVATAR.iso
14:54:14 T:1101049856 DEBUG: CPlayerCoreFactory::GetPlayers(/media/iso/AVATAR.iso)
14:54:15 T:1101049856 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
14:54:15 T:1101049856 DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
14:54:15 T:1101049856 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtv
14:54:15 T:1101049856 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: hdhomerun/myth/rtmp/mms/udp
14:54:15 T:1101049856 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
14:54:15 T:1101049856 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
14:54:15 T:1101049856 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams