mirror of
https://github.com/balkian/dotfiles.git
synced 2024-11-23 20:52:28 +00:00
Added more radio stations
This commit is contained in:
parent
93330df609
commit
d38a226922
12
changedisplay.sh
Executable file
12
changedisplay.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Author: Andrew Martin
|
||||||
|
# Credit: http://ubuntuforums.org/showthread.php?t=1309247
|
||||||
|
echo "Enter the primary display from the following:" # prompt for the display
|
||||||
|
xrandr --prop | grep "[^dis]connected" | cut --delimiter=" " -f1 # query connected monitors
|
||||||
|
|
||||||
|
read choice # read the users's choice of monitor
|
||||||
|
|
||||||
|
xrandr --output $choice --primary # set the primary monitor
|
||||||
|
|
||||||
|
|
||||||
|
|
5
elecciones.sh
Executable file
5
elecciones.sh
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
cd /tmp
|
||||||
|
wget http://www3.upm.es/elecciones/resultados/#1 -O resultados
|
||||||
|
|
||||||
|
|
@ -5,7 +5,8 @@
|
|||||||
# @author: balkian
|
# @author: balkian
|
||||||
|
|
||||||
destfile="$HOME/VideoCuevana$$"
|
destfile="$HOME/VideoCuevana$$"
|
||||||
info=($(lsof -p `pgrep -f flashplugin` | grep -i /tmp/flash | awk '{print $2; print $9}'))
|
PID1=$(pgrep -f flash)
|
||||||
|
info=($(lsof -p $PID1 | grep -i /tmp/flash | awk '{print $2; print $9}'))
|
||||||
dir="/proc/${info[0]}/fd"
|
dir="/proc/${info[0]}/fd"
|
||||||
file=${info[1]}
|
file=${info[1]}
|
||||||
#echo "pid" $pid
|
#echo "pid" $pid
|
||||||
|
2
play-hitfm.sh
Executable file
2
play-hitfm.sh
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
mplayer -vo null -idle http://ice.5.c3.audiovideoweb.com:8000/4c3ice5500
|
36
playlist-radios.xml
Normal file
36
playlist-radios.xml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<playlist xmlns="http://xspf.org/ns/0/" xmlns:vlc="http://www.videolan.org/vlc/playlist/ns/0/" version="1">
|
||||||
|
<title>Playlist</title>
|
||||||
|
<trackList>
|
||||||
|
<track>
|
||||||
|
<location>rtmp://antena3fms35geobloqueolivefs.fplive.net/antena3fms35geobloqueolive-live/stream-europafm</location>
|
||||||
|
<title>EuropaFM</title>
|
||||||
|
<extension application="http://www.videolan.org/vlc/playlist/0">
|
||||||
|
<vlc:id>0</vlc:id>
|
||||||
|
<vlc:option>network-caching=1000</vlc:option>
|
||||||
|
</extension>
|
||||||
|
</track>
|
||||||
|
<track>
|
||||||
|
<location>http://4633.live.streamtheworld.com:80/M80RADIO_SC</location>
|
||||||
|
<title>M80 Radio</title>
|
||||||
|
<duration>125287770</duration>
|
||||||
|
<extension application="http://www.videolan.org/vlc/playlist/0">
|
||||||
|
<vlc:id>1</vlc:id>
|
||||||
|
<vlc:option>network-caching=1000</vlc:option>
|
||||||
|
</extension>
|
||||||
|
</track>
|
||||||
|
<track>
|
||||||
|
<location>rtmp://kissfm.es.flash3.glb.ipercast.net/kissfm.es-live/aac.stream</location>
|
||||||
|
<title>KISSFM</title>
|
||||||
|
<extension application="http://www.videolan.org/vlc/playlist/0">
|
||||||
|
<vlc:id>2</vlc:id>
|
||||||
|
<vlc:option>network-caching=1000</vlc:option>
|
||||||
|
</extension>
|
||||||
|
</track>
|
||||||
|
</trackList>
|
||||||
|
<extension application="http://www.videolan.org/vlc/playlist/0">
|
||||||
|
<vlc:item tid="0"/>
|
||||||
|
<vlc:item tid="1"/>
|
||||||
|
<vlc:item tid="2"/>
|
||||||
|
</extension>
|
||||||
|
</playlist>
|
63
unlock-livebox.py
Normal file
63
unlock-livebox.py
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
import telnetlib, time
|
||||||
|
|
||||||
|
# Poner esto a 0 para deshabilitar las opciones del menú
|
||||||
|
# o a 1 para habilitarlas
|
||||||
|
HABILITAR = 1;
|
||||||
|
|
||||||
|
tn = telnetlib.Telnet ( "192.168.1.1" );
|
||||||
|
tn.read_until("login: ");
|
||||||
|
tn.write("LBV2techno\n");
|
||||||
|
tn.read_until("Password: ");
|
||||||
|
tn.write("1901b95ae4295d613abf9eabae0b9d40\n");
|
||||||
|
for i in `range(1,3)`:
|
||||||
|
tn.write("\n");
|
||||||
|
tn.write("rg_conf_set wbm/settings/pages/backuprestore %i\n" % HABILITAR);
|
||||||
|
tn.read_until("Returned 0");
|
||||||
|
tn.write("rg_conf_set wbm/settings/pages/vpn %i\n" % HABILITAR);
|
||||||
|
tn.read_until("Returned 0");
|
||||||
|
tn.write("rg_conf_set wbm/settings/pages/fax %i\n" % HABILITAR);
|
||||||
|
tn.read_until("Returned 0");
|
||||||
|
tn.write("rg_conf_set wbm/settings/pages/log %i\n" % HABILITAR);
|
||||||
|
tn.read_until("Returned 0");
|
||||||
|
tn.write("rg_conf_set wbm/settings/pages/licence %i\n" % HABILITAR);
|
||||||
|
tn.read_until("Returned 0");
|
||||||
|
tn.write("rg_conf_set wbm/settings/pages/community %i\n" % HABILITAR);
|
||||||
|
tn.read_until("Returned 0");
|
||||||
|
tn.write("rg_conf_set wbm/settings/pages/visio %i\n" % HABILITAR);
|
||||||
|
tn.read_until("Returned 0");
|
||||||
|
tn.write("rg_conf_set wbm/settings/pages/livezoom %i\n" % HABILITAR);
|
||||||
|
tn.read_until("Returned 0");
|
||||||
|
tn.write("rg_conf_set wbm/settings/pages/hsiab %i\n" % HABILITAR);
|
||||||
|
tn.read_until("Returned 0");
|
||||||
|
tn.write("rg_conf_set wbm/settings/network/dhcp %i\n" % HABILITAR);
|
||||||
|
tn.read_until("Returned 0");
|
||||||
|
tn.write("rg_conf_set wbm/settings/network/ftlock %i\n" % HABILITAR);
|
||||||
|
tn.read_until("Returned 0");
|
||||||
|
tn.write("rg_conf_set wbm/settings/network/ftlock %i\n" % HABILITAR);
|
||||||
|
tn.read_until("Returned 0");
|
||||||
|
tn.write("rg_conf_set wbm/settings/network/tvrouted %i\n" % HABILITAR);
|
||||||
|
tn.read_until("Returned 0");
|
||||||
|
tn.write("rg_conf_set wbm/settings/services/professionnal %i\n" % HABILITAR);
|
||||||
|
tn.read_until("Returned 0");
|
||||||
|
tn.write("rg_conf_set wbm/settings/services/rtcphone %i\n" % HABILITAR);
|
||||||
|
tn.read_until("Returned 0");
|
||||||
|
tn.write("rg_conf_set wbm/settings/services/universal_phone %i\n" % HABILITAR);
|
||||||
|
tn.read_until("Returned 0");
|
||||||
|
tn.write("rg_conf_set wbm/settings/services/wifipushbutton %i\n" % HABILITAR);
|
||||||
|
tn.read_until("Returned 0");
|
||||||
|
tn.write("rg_conf_set wbm/settings/services/msgwaiting %i\n" % HABILITAR);
|
||||||
|
tn.read_until("Returned 0");
|
||||||
|
tn.write("rg_conf_set wbm/settings/test/sipdev %i\n" % HABILITAR);
|
||||||
|
tn.read_until("Returned 0");
|
||||||
|
tn.write("rg_conf_set wbm/settings/test/fmdev %i\n" % HABILITAR);
|
||||||
|
tn.read_until("Returned 0");
|
||||||
|
tn.write("rg_conf_set wbm/settings/network/h323 %i\n" % HABILITAR);
|
||||||
|
tn.read_until("Returned 0");
|
||||||
|
tn.write("rg_conf_set wbm/settings/services/wpspushbutton %i\n" % HABILITAR);
|
||||||
|
tn.read_until("Returned 0");
|
||||||
|
tn.write("save\n");
|
||||||
|
time.sleep(2);
|
||||||
|
tn.write("reboot\n");
|
Loading…
Reference in New Issue
Block a user