Skip to content

Instantly share code, notes, and snippets.

Hi
After literally hours of trial and error (I'm not a Linux guy but love playing with my Raspberry Pi's), I have FINALLY got shairport-sync running on ArchLinux Arm 7 on my Raspberry Pi 2. I used numerous different sources to find all the different workarounds. I documented it and would like to give something back to the community... so here it is. I hope it's helpful.
Disclaimer: I'm sure I could have been a lot more efficient in my approach but I hope this will serve as a starting point for others.
1) RaspberryPi.org are not offering an ArchLinux image for Arm7 yet but some friendly guy has created his own and kindly put it on Mega.co.nz for all to use. Download the ArchLinux Arm 7 image for Raspberry Pi 2 from here: https://mega.co.nz/#!2JZS0CqD!KxlXr9B6URZ79zTP23vKVdrdOGVOYIeasjcjcBMoPzo
2) Write to a formatted SD card (at least 4GB) using Win32DiskImager.
#!/bin/bash
# This file create a folder called resizedIcons in the same folder than the file
# in the first parameter and place inside all the resized copies
# The filename.png to resize
ITUNES_ARTWORK="$1"
FOLDER0=$(dirname "$ITUNES_ARTWORK")
FOLDER="${FOLDER0}/ResizedIcons"
# create the new folder
@s4y
s4y / 1 - get a health store.swift
Created September 2, 2014 03:54
HealthKit examples
let healthStore = HKHealthStore()
@sawapi
sawapi / AppDelegate.swift
Last active October 25, 2023 09:26
[Swift] Push Notification
//
// AppDelegate.swift
// pushtest
//
// Created by sawapi on 2014/06/08.
// Copyright (c) 2014年 sawapi. All rights reserved.
//
// iOS8用
import UIKit
@munkyjunky
munkyjunky / combined
Last active March 20, 2016 21:20
DVD Rip Script
#!/bin/bash
##### VARIABLES #####
# LOCATIONS
SOURCE_DRIVE=/dev/sr0
OUTPUT_DIR=/tmp/ripdvd
MOVIES_DIR=/media/sdc/movies
TELEVISION_DIR=/media/sdd/television
@tamoyal
tamoyal / gist:10441108
Created April 11, 2014 04:39
Create super user and database user in Mongo 2.6
# Create your superuser
$ mongo
> use admin
> db.createUser({user:"someadmin",pwd:"secret", roles:[{role:"root",db:"admin"}]})
> exit
# Alias for convenience (optional and at your own risk)
$ echo 'alias mongo="mongo --port 27017 -u someadmin -p secret --authenticationDatabase admin"' >> ~/.bash_profile
$ source ~/.bash_profile
@beshkenadze
beshkenadze / 1_netatalk-3-install-on-debian-7
Last active October 13, 2015 13:38 — forked from vena/gist:2856490
Netatalk 3 installation procedure (Ubuntu 12.04.2 LTS/Debian 7)
$ tar xvf netatalk-3.0.5.tar.bz2
$ cd netatalk-3.0.5
$ ./configure \
--with-init-style=debian \
--with-cracklib \
--without-libevent \
--with-pam-confdir=/etc/pam.d \
--with-dbus-sysconf-dir=/etc/dbus-1/system.d
$ checkinstall --pkgname=netatalk-3.x --pkgversion="$(date +%Y%m%d%H%M)" --backup=no --deldoc=yes --default --fstrans=no
@watson
watson / ability.rb
Created October 5, 2011 09:50
Active Admin CanCan integration with shared front/backend User model and multi-level autherization
# app/models/ability.rb
# All front end users are authorized using this class
class Ability
include CanCan::Ability
def initialize(user)
user ||= User.new
can :read, :all
@pklaus
pklaus / handbrakeAutorip.sh
Created January 27, 2010 08:48
Rip a DVD in an Automated Way
#!/bin/bash
# found on <http://episteme.arstechnica.com/eve/forums/a/tpc/f/96509133/m/792004650041?r=798009370041#798009370041>
# Exit Codes
# 1 : vobcopy failed
# 2 : encoding failed
# 3 : lock file present
# 4 : DVD not mounted
# 5 : VIDEO_TS not present - probably not a video DVD