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 / .login
Last active August 29, 2015 14:05
BSD configs
# $FreeBSD: release/10.0.0/share/skel/dot.login 190477 2009-03-27 21:13:14Z ru $
#
# .login - csh login script, read by login shell, after `.cshrc' at login.
#
# see also csh(1), environ(7).
#
export LC_ALL=en_GB.UTF-8
if ( -x /usr/games/fortune ) /usr/games/fortune freebsd-tips
@cirrusUK
cirrusUK / xcowmpc
Last active August 29, 2015 14:06
MPD Now Playing using xcowsay
while true; do
OSD=$(mpc current)
xcowsay --image=/path/to/image.png "MPD Now Playing" "$OSD"
mpc idle player > /dev/null
done
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 / config
Last active August 5, 2023 03:59
newsboat config
# ░░░░░░ ░░░░░░ ░░ ░░ ░░░░░░ ░░░░░░ ░░ ░░░░░░░░ ░░░░░░ ░░ ░░ ░░░░░ ░░░░░░
# ███╗ ██╗███████╗██╗ ██╗███████╗██████╗ ███████╗██╗ ██╗████████╗███████╗██████╗
# ████╗ ██║██╔════╝██║ ██║██╔════╝██╔══██╗██╔════╝██║ ██║╚══██╔══╝██╔════╝██╔══██╗
# ██╔██╗ ██║█████╗ ██║ █╗ ██║███████╗██████╔╝█████╗ ██║ ██║ ██║ █████╗ ██████╔╝
# ██║╚██╗██║██╔══╝ ██║███╗██║╚════██║██╔══██╗██╔══╝ ██║ ██║ ██║ ██╔══╝ ██╔══██╗
# ██║ ╚████║███████╗╚███╔███╔╝███████║██████╔╝███████╗╚██████╔╝ ██║ ███████╗██║ ██║
# ╚═╝ ╚═══╝╚══════╝ ╚══╝╚══╝ ╚══════╝╚═════╝ ╚══════╝ ╚═════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝
# ░░░░░░ ░░░░░░ ░░ ░░ ░░░░░░ ░░░░░░ ░░ ░░░░░░░░ ░░░░░░ ░░ ░░ ░░░░░ ░░░░░░
# ▓▓▓▓▓▓▓▓▓▓
# ░▓ author ▓ cirrus <[email protected]>
@cirrusUK
cirrusUK / conkyrc
Last active August 29, 2015 14:07
dzen panel piping to conkyrc
background no
out_to_console yes
out_to_x no
use_xft yes
update_interval 1.0
total_run_times 0
use_spacer none
default_color 497BF7
override_utf8_locale yes
# Copyright 2012 Cirrus Minor. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are
# permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of
# conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright notice, this list
# of conditions and the following disclaimer in the documentation and/or other materials
# provided with the distribution.
@cirrusUK
cirrusUK / config
Last active July 21, 2016 02:20
mplayer config
# Write your default config options here!
# enable color output in console
msgcolor = 1
# enable module info color
#msgmodule = 1
###########################
# protocol based settings #
@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
cirrus@hawker64  ~  journalctl -b | grep microcode
Oct 23 14:15:05 hawker64 kernel: CPU0 microcode updated early to revision 0x19, date = 2013-06-21
Oct 23 14:15:05 hawker64 kernel: CPU1 microcode updated early to revision 0x19, date = 2013-06-21
Oct 23 14:15:05 hawker64 kernel: CPU2 microcode updated early to revision 0x19, date = 2013-06-21
Oct 23 14:15:05 hawker64 kernel: CPU3 microcode updated early to revision 0x19, date = 2013-06-21
Oct 23 14:15:05 hawker64 kernel: microcode: CPU0 sig=0x106a5, pf=0x2, revision=0x19
Oct 23 14:15:05 hawker64 kernel: microcode: CPU1 sig=0x106a5, pf=0x2, revision=0x19
Oct 23 14:15:05 hawker64 kernel: microcode: CPU2 sig=0x106a5, pf=0x2, revision=0x19
Oct 23 14:15:05 hawker64 kernel: microcode: CPU3 sig=0x106a5, pf=0x2, revision=0x19
Oct 23 14:15:05 hawker64 kernel: microcode: CPU4 sig=0x106a5, pf=0x2, revision=0x19
#!/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