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 / ocp.ini
Last active December 12, 2015 22:25
config file for open cubic player ~/.ocp/ocp.ini
[version]
epoch=20110319
[general]
;link= /mnt/INT2/music/
;prelink= /mnt/INT2/music/Mp^3
;mmcmphlp
datapath=/home/cirrus/.ocp/img ; path to opencp's pictures and animations.
; tempdir= ~/.local/share/Trash/files
[defaultconfig]; default configuration
link=medialib
@cirrusUK
cirrusUK / .conkybar
Created April 22, 2014 23:04
.conkybar : vertical conky panel
background yes
use_xft yes
#xftfont DejaVu Sans Mono:size=8
xftfont envy code r:size=10
xftalpha 0.6
out_to_console no
update_interval 1.5
total_run_times 0
draw_shades no
override_utf8_locale yes
@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"
@cirrusUK
cirrusUK / mount7.sh
Created May 15, 2014 20:02
simple shell script using notify-send for mounting HDD
#!/bin/bash
notify-send -i ~/.icons/win.png "Mounting Drive" " Windows 7 HDD Online " && sudo mount /dev/sda2 /mnt/sda2
mpg123 ~/sonar.mp3
@cirrusUK
cirrusUK / mountdroid.sh
Last active August 29, 2015 14:01
best and most stable method ive found for mounting android devices is the 'simple-mtpfs' package
#!/bin/bash
notify-send -i ~/.icons/s4.png "Mounting Android Device" " Samsung Galaxy S4 Mounted " && simple-mtpfs /media/s4
mpg123 ~/sonar.mp3
@cirrusUK
cirrusUK / dunstrc
Last active January 5, 2017 04:35
[global]
font = Envy Code R 10
# allow a small subset of html markup:
# <b>bold</b>
# <i>italic</i>
# <s>strikethrough<s/>
# <u>underline</u>
# ~/.config/dunst/dunstrc
# for a complete reference see http://developer.gnome.org/pango/stable/PangoMarkupFormat.html
#!/bin/sh
#AccuWeather (r) RSS weather tool for conky
#
#USAGE: weather.sh UKXX0062
#
#(c) Michael Seiler 2007
METRIC=1 #Should be 0 or 1; 0 for F, 1 for C
if [ -z $1 ]; then
background yes
use_xft yes
xftfont envy code r:size=10
xftalpha 0.8
out_to_console no
update_interval 5.0
total_run_times 0
draw_shades no
override_utf8_locale yes
background yes
@cirrusUK
cirrusUK / ago
Created June 29, 2014 21:07
ago - Show how long ago files/directories were modified
#!/usr/bin/perl -w
#example ./ago /etc/hosts
=head1 NAME
ago - Show how long ago files/directories were modified
=cut
=head1 SYNOPSIS
@cirrusUK
cirrusUK / 20-radeon.conf.arch
Last active February 17, 2016 22:09
xorg.conf for "RV770 [Radeon HD 4870]" dual screens on free BSD
Section "Device"
Identifier "Radeon"
Driver "radeon"
Option "SWcursor" "off" #software cursor might be necessary on some rare occasions, hence set off by default
Option "EnablePageFlip" "on" #supported on all R/RV/RS4xx and older hardware, and set on by default
Option "AccelMethod" "EXA" #valid options are XAA, EXA and Glamor. Default value varies per-GPU.
Option "RenderAccel" "on" #enabled by default on all radeon hardware
Option "ColorTiling" "on" #enabled by default on RV300 and later radeon cards
Option "EXAVSync" "on" #default is off, otherwise on. Only works if EXA activated
Option "EXAPixmaps" "on" #when on icreases 2D performance, but may also cause artifacts on some old cards. Only works if EXA activated