Skip to content

Instantly share code, notes, and snippets.

@cirrusUK
cirrusUK / iplayer
Last active April 27, 2024 06:36
Lists, Records and Streams BBC iPlayer TV and Radio programmes + other Programmes via 3rd-party plugins. Requires a UK IP
#!/usr/bin/env perl
#
# get_iplayer - Lists, Records and Streams BBC iPlayer TV and Radio programmes + other Programmes via 3rd-party plugins
#
# Copyright (C) 2008-2010 Phil Lewis
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@Sh4yy
Sh4yy / clx.go
Created April 25, 2024 20:39
Generate CLI commands for common tasks.
package main
import (
"context"
"errors"
"fmt"
"io"
"log"
"os"
"runtime"
@cirrusUK
cirrusUK / livestreamer-alias
Created April 25, 2014 23:18
zsh aliases for livestreamer
##Video Streams
alias las="mpv http://videocdn-us.geocdn.scaleengine.net/jblive-iphone/live/jblive.stream/playlist.m3u8"
alias fam="livestreamer -p mpv justin.tv/entertainment_tv119 best"
alias crime="livestreamer -p mpv justin.tv/xcrimecentralxx source"
alias skynews="mplayer mms://live1.wm.skynews.servecast.net/skynews_wmlz_live300k"
alias sport="mplayer rtmp://178.22.217.150/tv/live/5.sdp"
alias sport1="mplayer mms://cht-cdn220-is-2.se.bptvlive.ngcdn.telstra.com/bp_online_tvn_med"
alias eurosport="mplayer http://esioslive2-i.akamaihd.net/hls/live/200728/AL_ESP1_UK_ENG/playlist_2500.m3u8"
alias animal="mplayer rtmp://178.22.217.150/tv/live/4.sdp"
alias first48="livestreamer -p mpv justin.tv/firstfourtyeight7#/w/6716687520/16 best"
mplayer rtmp://stream.smcloud.net/live2/vox/vox_360p #vox
mplayer http://usa.fankytv.com/live/espn.stream/playlist.m3u8 #espn
mplayer http://195.244.40.230:8001/1:0:1:274C:7FC:2:11A0000:0:0:0: #sky sports 5
mplayer http://202.75.23.37:1400/live/ch21/03.m3u8 ##Eurosport_HD_Eng
mplayer rtsp://a627.l2479952251.c24799.g.lm.akamaistream.net/D/627/24799/v0001/reflector:52251 #Bloomberg
@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; }
@oanhnn
oanhnn / using-multiple-github-accounts-with-ssh-keys.md
Last active April 27, 2024 06:31
Using multiple github accounts with ssh keys

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
@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