This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Running ShairPort/ShairTunes/AirTunes on squeezeplug distro (Raspbian wheezy based) | |
# to serve to squeezelite clients on WR703n | |
# Install in Logitech Media Server: Click on Settings, then select | |
# the Plugins tab, at the bottom of the page add the repo: | |
# http://raw2.github.com/StuartUSA/shairport_plugin/master/public.xml | |
# Copy precompiled helper binary in place | |
sudo cp /var/lib/squeezeboxserver/cache/InstalledPlugins/\ | |
Plugins/ShairTunes/shairport_helper/pre-compiled/\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# | |
# Create an RSS feed out of schwaebische.de orbituaries images | |
# | |
import os, sys, time, datetime, urllib2, re | |
from BeautifulSoup import BeautifulSoup | |
debug = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Connect to the device with known MAC address but unknown Ethernet addres | |
## Or simply: | |
## sudo nmap -sP 192.168.180.0/24 | grep "FE:ED" | |
MAC="10:FE:ED" # Can be just partial | |
OWNIP=$(LANG="" ifconfig | grep "inet addr" | head -n 1 | cut -d ":" -f 2 | cut -d " " -f 1) | |
SUBNET="$(echo $OWNIP | cut -d "." -f 1).$(echo $OWNIP | cut -d "." -f 2).$(echo $OWNIP | cut -d "." -f 3).0/24" | |
ssh $(sudo nmap -sP $SUBNET | grep FE:ED -C 2 | head -n 1 | cut -d " " -f 5) -l root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Flash FAST (9 MB/sec with SanDisk Class 10 16 GB card; roughly 8 minutes for 4 GB) | |
sudo dd if=$FILE of=/dev/rdiskX bs=1m | |
# Check the status | |
# Run on second terminal | |
while pgrep ^dd; do pkill -INFO dd; sleep 10; done | |
# Or, use this GUI | |
http://www.gingerbeardman.com/dd-gui/dd-gui-021.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh /etc/rc.common | |
# This script should not have the same name as one of the binaries | |
# that gets launched by it, otherwise it terminates itself rather | |
# than shutting down cleanly. | |
START=94 | |
STOP=1 | |
start() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew --config | |
HOMEBREW_VERSION: 0.9.5 | |
ORIGIN: https://github.com/Homebrew/homebrew | |
HEAD: 311c206e82386107364cd0e6b042e88d87bd7a68 | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_CELLAR: /usr/local/Cellar | |
CPU: quad-core 64-bit ivybridge | |
OS X: 10.9.2-x86_64 | |
Xcode: 5.1.1 | |
Clang: 5.1 build 503 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
menuentry "Antergos" { | |
iso_path="/boot/iso/antergos-2014.08.07-x86_64.iso" | |
search --no-floppy --file ${iso_path} --set | |
live_args="for-arch --> img_loop=${iso_path} img_dev=/dev/sda1 earlymodules=loop" | |
custom_args="" | |
iso_args="archisobasedir=arch archisolabel=ANTERGOS quiet" | |
loopback loop ${iso_path} | |
linux (loop)/arch/boot/vmlinuz ${live_args} ${custom_args} ${iso_args} | |
initrd (loop)/arch/boot/archiso.img /boot/iso/additional-initramfs/initramfs | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config global automount | |
option from_fstab 1 | |
option anon_mount 1 | |
option delay_root 3 | |
config mount | |
option target /overlay | |
option device /dev/sda1 | |
option fstype ext4 | |
option options rw,sync,noatime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat > /etc/init.d/shairport <<\EOF | |
#!/bin/sh /etc/rc.common | |
NAME='shairport' | |
START=99 | |
start() { | |
SPEAKER=$(amixer scontrols | head -n 1 | cut -d "'" -f 2) | |
amixer sset $SPEAKER '80%' || exit 1 | |
sleep 2 | |
shairport -d -a $(uci get system.@system[0].hostname) |
OlderNewer