This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script to generate an mpc playlist containing up-to-date BBC stream | |
# locations. This can be run every hour or so as a cronjob to keep | |
# the non-static BBC streams working. My version differs from the | |
# ones I've seen online in that each stream is added to a single | |
# playlist, rather than individual playlist files. This makes it | |
# easier to use with MPoD and via command line with "mpc play 4" for | |
# Radio 4. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set from = "xxxxxxx" | |
set realname = "xxxxxxxx" | |
# Quick Settings | |
set my_server = mail.messagingengine.com | |
set my_user = xxxxxxxx | |
set my_pass = xxxxxxxx | |
# Account Information | |
set smtp_url = "smtp://$my_user:$my_pass@$my_server:587" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "System Events" | |
if "Terminal" is not in name of processes then launch application "Terminal" | |
tell process "Terminal" | |
set frontmost to true | |
if (count windows) is greater than 0 then keystroke "n" using command down | |
if (count windows) is 0 then keystroke "n" using command down | |
end tell | |
end tell | |
tell application "Terminal" to tell window 1 | |
set position to {0, 20} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[11pt,a4paper]{article} | |
\usepackage{datetime} | |
\usepackage{fp} | |
\usepackage{booktabs} | |
\usepackage{ragged2e} | |
\usepackage{longtable} | |
\usepackage{hhline} | |
\newdateformat{mydate}{\ordinal{DAY} \monthname[\THEMONTH] \THEYEAR} |