Skip to content

Instantly share code, notes, and snippets.

@athoik
athoik / beat.py
Last active August 12, 2017 22:57
Livestreamer be-at.tv plugin
import re
from collections import namedtuple
try:
from Crypto.Cipher import AES
CAN_DECRYPT = True
except ImportError:
CAN_DECRYPT = False
from io import BytesIO
<?php
/*
Made by Kudusch (blog.kudusch.de, kudusch.de, @Kudusch)
---------
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <[email protected]>
@badboy
badboy / HOWTO.md
Last active March 24, 2018 00:17
iTunes Festival - Download recordings
  1. Get your cookie. Either proxy your iPhone/iPod/iPad and record the cookie using the proxy server of your choice or capture the request using your AP with Wireshark or similar
  2. Make sure you have a cookie like AKCNTYPE=WIFI; AKID=abc; token=expires... and put it in ~/cookie
  3. Find the name and day of the artist you want to load, replace whitespace with underscores.
  4. Launch the script: ./itunes-festival.sh day artist
  5. Have fun.

and because I'm not the creator of this script: henne war's!

#!/bin/bash
# If you don't have wget on your Mac, brew install wget
# If you refuse to do that for some odd reason, replace wget with curl -LO (thanks @zadr)
for i in {0..785}; do wget http://qthttp.apple.com.edgesuite.net/1009qpeijrfn/1240/1240_090110_094007_$i.ts; done;
for i in `ls *.ts`; do mv $i `echo $i | awk -F '_' '{printf "%d_%d_%d.%06s", $1, $2, $3, $4}'`; done;
# Then run NullPacketStripper to combine the .ts files together
# It's available from here: http://www.hometheatersoftware.com/stuff/NullPacketStripper/NullPacketStripper_v013beta.zip