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 / pizza
Last active December 23, 2015 16:29
simple bash script using notify-send to get alerted in 10 minutes ( when pizza be ready)
#!/bin/bash
sleep 10m && notify-send -i ~/.icons/warning.svg "⚠⚠⚠ Pizza Is Done ⚠⚠⚠" "Move yer Arse" && echo -e "\a" &
@cirrusUK
cirrusUK / age.sh
Created September 22, 2013 19:00
simple bash script to be notified of date of current OS install.
#!/bin/bash
AGE=$(sudo dumpe2fs $(mount | grep 'on \/ ' | awk '{print $1}') | grep 'Filesystem created:')
notify-send -i ~/.icons/info.svg "$AGE"
@cirrusUK
cirrusUK / forecast.sh
Created September 22, 2013 19:02
simple bash script using notify-send in conjunction with the weatherman script to be notifiedof weather forecast, edit to suit.
#!/bin/bash
RAIN=$(~/weatherman -x "Glasgow, United Kingdom")
notify-send -i ~/.icons/weather.svg "$RAIN"
@cirrusUK
cirrusUK / dmenhue.sh
Created September 22, 2013 19:05
bash script for changing colours in dmenu
#!/bin/sh
font=-'-*-envy code r-medium-r-normal-*-12-*-*-*-*-*-*-*'
background='#000000'
foreground='#497BF7'
selectedBackground='#497BF7'
selectedForeground='#FFFFFF'
$(dmenu_path | dmenu_run -b -fn $font -nb $background -nf $foreground -sb $selectedBackground -sf $selectedForeground)
@cirrusUK
cirrusUK / mpdosd.sh
Created September 22, 2013 19:18
simple bash script using notify-send and calls mpc to display current track playing in mpc/mpd/
#!/bin/bash
OSD=$(mpc current)
notify-send -i ~/.icons/top.png "$OSD"
@cirrusUK
cirrusUK / blame.sh
Created September 23, 2013 18:53
Simple bash script using notify-send to notify user of boot time/speed.
#!/bin/bash
BOOT=$(systemd-analyze)
notify-send -i ~/.icons/info.svg "$BOOT"
@cirrusUK
cirrusUK / .conkyrc
Created September 23, 2013 20:35
.conkyrc #noMPD
# Conky settings #
background yes
update_interval 0.5
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
double_buffer yes
@cirrusUK
cirrusUK / hosts
Last active December 23, 2015 23:49
hosts Just a hosts file (Sept 16 2013) i like to use this on all my devices, it's especially handy in android as it blocks some in app ads.
#
# /etc/hosts: static lookup table for host names
#
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost
::1 localhost.localdomain localhost
#Credits .. msmvps.com & someonewhocares.org
#**********************************************************#
# ---------------- Updated: Sept-16-2013 ---------------- #
@cirrusUK
cirrusUK / tv.sh
Last active April 27, 2024 06:41
watch live TV in VLC/MPV/Mplayer etc (#UK IP & account over at http://tvcatchup.com required.) moar info > http://cirrusminor.info/2013/10/19/uk-linux-users-watch-tv-in-vlc-mplayer/
#!/bin/bash
clear
ua="BlackBerry9000/4.6.0.167 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/102"
username="username from http://tvcatchup.com" #before using this script you will need an acc at http://tvcatchup.com
password="password from http://tvcatchup.com" #before using this script you will need an acc at http://tvcatchup.com
player="mpv" #can edit to prefered player
dati=`wget -U "$ua" --no-check-certificate --save-cookies=cookie.txt -q --keep-session-cookies "http://m.tvcatchup.com" -O-`
hash=`echo "$dati" | grep -o "&hash=[^&]*" | cut -d"=" -f2`
list=`echo "$dati" | grep -o '<a href="#" onclick="javascript:loadChannel([^)]*' | cut -d'(' -f2 | sed "s#, '#) #g" | sed "s#'##g"`
check=`wget -U "$ua" --save-cookies=cookie.txt --load-cookies=cookie.txt --keep-session-cookies --no-check-certificate --header "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" --header "X-Requested-With: XMLHttpRequest" --header "Referer: http://m.tvcatchup.com/" --post-data="username=${username}&hash=${ha
@cirrusUK
cirrusUK / tint2rc
Last active December 28, 2015 01:58
~/.config/tint2
---------------------------------------------
# TINT2 CONFIG FILE
#---------------------------------------------
#---------------------------------------------
# BACKGROUND AND BORDER
#---------------------------------------------
#panels
rounded = 5
border_width = 1
background_color = #1A1A1A 50