Skip to content

Instantly share code, notes, and snippets.

@sucotronic
sucotronic / kissfm
Created September 17, 2013 09:28
play kissfm radio
rtmpdump -r "rtmp://kissfm.es.flash3.glb.ipercast.net/kissfm.es-live" -a "kissfm.es-live" -f "LNX 11,2,202,310" -W "http://www.kissfm.es/player/mananasplayer/player.swf" -p "http://www.kissfm.es/player/mananasplayer/index.php" -y "aac.stream" --live -b 10000 | mplayer -
@sucotronic
sucotronic / m80.sh
Created July 31, 2013 13:40
reproductor de radio online de m80
#!/bin/bash
NUM=0
while [ $NUM -lt 10 ]; do
ARRAY=( `curl -s "http://playerservices.streamtheworld.com/api/livestream?version=1.5&mount=M80RADIOAAC&lang=es&nobuf=1373975014724" | sed 's% xmlns="http://provisioning.streamtheworld.com/player/livestream-1.5"%%' | xmllint --xpath "//server/@sid" - | sed 's/sid=//g' | sed 's/"//g' ` )
N=`shuf --input-range=0-$(( ${#ARRAY[*]} - 1 )) | head -1`
mplayer -cache 200 -cache-min 50 http://${ARRAY[$N]}.live.streamtheworld.com/M80RADIOAAC
NUM=`expr $NUM + 1`
sleep 5
done
curl -s http://www.mejortorrent.com/secciones.php?sec=ultimos_torrents | iconv -f iso-8859-1 -t utf8 | tidy -f /dev/null -asxhtml | sed "s/ //g" | sed "s/xmlns/ignore/" |xmllint --format --recover --xpath "/html/body/table/tr[3]/td/table/tr/td[2]/table/tr/td/table/tr/td/table/tr/td/a" -
@sucotronic
sucotronic / gist:6009576
Created July 16, 2013 15:07
m80 commands
# lista de canciones curl -s "http://playerservices.streamtheworld.com/public/nowplaying?mountName=M80RADIO&numberToFetch=10&eventType=track" | xmllint --xpath '//nowplaying-info-list/nowplaying-info[1]/property[@name="track_artist_name"]/text()' --nocdata -
#cue_time_start está en milisegundos desde epoch
date --date='@1373986371'
#streams disponibles
curl -s "http://playerservices.streamtheworld.com/api/livestream?version=1.5&mount=M80RADIOAAC&lang=es&nobuf=1373975014724"
@sucotronic
sucotronic / gist:5832018
Created June 21, 2013 15:30
know how much memory is eating google chrome
ps aux | grep chrome | grep -v grep | awk '{sum+=$6} END {print "chrome total: " sum/(1024*1024) " GB"}'