Skip to content

Instantly share code, notes, and snippets.

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
#!/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
@kohheepeace
kohheepeace / memo.md
Last active April 27, 2024 06:28
Rails ajax comparison (fetch, Rails.ajax, axios, @rails/request.js, Turbo)

Rails ajax comparison (fetch, Rails.ajax, axios, @rails/request.js, Turbo)

I wrote this gist because I felt that the Rails documentation was lacking a description of ajax requests.

📌 Options for ajax request

There are various ways to send ajax requests in Rails.

  1. Browser default Fetch API
  2. Rails.ajax (No Official docs and request for docs)
  3. http client like axios
  4. @rails/request.js 👈 I'm using this one now !
@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