Skip to content

Instantly share code, notes, and snippets.

View cirrusUK's full-sized avatar
💭
Dunroamin, Duncarin, Dunlivin.

cirrus cirrusUK

💭
Dunroamin, Duncarin, Dunlivin.
View GitHub Profile
@cirrusUK
cirrusUK / get_iplayer.txt
Created October 20, 2014 17:59
get_iplayer.txt
./iplayer --update
./iplayer --refresh --type=all
./iplayer --refresh-exclude="cbeebies,cbbc" --type=tv --refresh
./iplayer football
./iplayer Match of the Day
./iplayer Late Kick Off London and the South East
./iplayer Question Time
./iplayer sportscene
./iplayer motd
./iplayer motd2
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Tickr Feed List</title>
</head>
<body>
<outline title="Rangers FC News and Chat" type="rss" xmlUrl="http://dothebouncy.com/main/forums/rangers-fc-news-and-chat.7/index.rss" tickrFeedRank=" "/>
<outline title="Armed and Dangerous" type="rss" xmlUrl="http://esr.ibiblio.org/?feed%3Drss" tickrFeedRank=" "/>
<outline title="BBC News - Home" type="rss" xmlUrl="http://feeds.bbci.co.uk/news/rss.xml?edition%3Dint" tickrFeedRank=" "/>
<outline title="BBC Sport - Sport" type="rss" xmlUrl="http://feeds.bbci.co.uk/sport/0/rss.xml?edition%3Dint" tickrFeedRank=" "/>
@cirrusUK
cirrusUK / weechat
Last active April 27, 2024 06:32
my weechat configs
/server add Dalnet irc.dal.net/6697
/set irc.server.Dalnet.autoconnect on
/set irc.server.Dalnet.autojoin "#Scotland,#soccer,#cafechat,#ALLNITECAFE,#androidirc,#apple,#bsd,#linux"
/set irc.server.Dalnet.username "cirrus"
/server add geekshed irc.geekshed.net/6667
/server del freenode
/mouse enable|disable|toggle [<delay>]
@import url(http://fonts.googleapis.com/css?family=Raleway:200,400,600);
body, html { background: #222; margin:0; }
html { font: 14px/1.4 Raleway, 'Helvetica Neue', Helvetica, sans-serif; color: #ddd; font-weight: 400; }
h2 { font-weight: 200; font-size: 45px; margin: 20px 35px; }
div.list { background: #111; padding: 20px 35px; }
div.foot { color: #777; margin-top: 15px; padding: 20px 35px; }
td { padding: 0 20px; line-height: 21px; }
@cirrusUK
cirrusUK / adnnp
Last active April 27, 2024 06:30
shell scripts for posting to app.net/twitter current playing MPD track requires texapp and ttytter, i use em as cronjobs.
#!/bin/bash
msg=$(mpc current -h 192.168.1.33)
/home/cirrus/texapp.pl -status="#MPD Server nowplaying $msg. http://cirrus.turtil.net:9001"
exit
#!/bin/sh
URL="http://feeds.bbci.co.uk/news/uk/rss.xml"
curl --silent "$URL" | grep -E '(title>|description>)' | \
grep -E '(<title>|description)' | tail -n +4 | sed -e 's/<!\[CDATA\[//g' -e 's/\]\]>//g' | sed -e 's/<a.*a>/ /g' | sed -e 's/<*.title>//g' -e 's/&lt;.*/\
/' | sed -e 's/<*.title>//g' -e 's/&lt;.*/\
/' | sed -e '/<description>/d' | sed -e 's/<\/description>/\
/g
' | fmt -w 80
@cirrusUK
cirrusUK / config
Created May 6, 2015 17:27
teiler config
##### teiler configuration file ######
# general variables
backend=rofi
slop_color="255,0,0"
slop_border=2
hidecursor=yes
# the path where images, videos and pastes should be saved
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
Documented at
http://linux.die.net/man/5/fonts-conf
To check font mapping run the command at terminal
$ fc-match 'helvetica Neue'
@cirrusUK
cirrusUK / config
Created June 22, 2015 18:13
teiler configuration file
##### teiler configuration file ######
# general variables
backend=rofi
slop_color="255,0,0"
slop_border=2
hidecursor=yes
# the path where images, videos and pastes should be saved
@cirrusUK
cirrusUK / PlayMusic.settings (paste contents when asked to create settings file)
Last active April 27, 2024 06:27
shell script for downloading/streaming music from pre defined websites
#/usr/local/settings/PlayMusic.settings
mplayer #first line should be player
http://ccmixter.org/view/media/samples/mixed
http://ccmixter.org/view/media/remix
http://mp3.com/top-downloads/genre/jazz/
http://mp3.com/top-downloads/
http://mp3.com/top-downloads/genre/rock/
http://ccmixter.org/view/media/playlists
#-------- i think only downloads work with these sites, no streaming -----
http://www.last.fm/music/+free-music-downloads