Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Dunroamin, Duncarin, Dunlivin.

cirrus cirrusUK

💭
Dunroamin, Duncarin, Dunlivin.
View GitHub Profile
@cirrusUK
cirrusUK / pizza
Last active Dec 23, 2015
simple bash script using notify-send to get alerted in 10 minutes ( when pizza be ready)
View pizza
#!/bin/bash
sleep 10m && notify-send -i ~/.icons/warning.svg "⚠⚠⚠ Pizza Is Done ⚠⚠⚠" "Move yer Arse" && echo -e "\a" &
@cirrusUK
cirrusUK / age.sh
Created Sep 22, 2013
simple bash script to be notified of date of current OS install.
View age.sh
#!/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 Sep 22, 2013
simple bash script using notify-send in conjunction with the weatherman script to be notifiedof weather forecast, edit to suit.
View forecast.sh
#!/bin/bash
RAIN=$(~/weatherman -x "Glasgow, United Kingdom")
notify-send -i ~/.icons/weather.svg "$RAIN"
@cirrusUK
cirrusUK / dmenhue.sh
Created Sep 22, 2013
bash script for changing colours in dmenu
View dmenhue.sh
#!/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 Sep 22, 2013
simple bash script using notify-send and calls mpc to display current track playing in mpc/mpd/
View mpdosd.sh
#!/bin/bash
OSD=$(mpc current)
notify-send -i ~/.icons/top.png "$OSD"
@cirrusUK
cirrusUK / blame.sh
Created Sep 23, 2013
Simple bash script using notify-send to notify user of boot time/speed.
View blame.sh
#!/bin/bash
BOOT=$(systemd-analyze)
notify-send -i ~/.icons/info.svg "$BOOT"
@cirrusUK
cirrusUK / .conkyrc
Created Sep 23, 2013
.conkyrc #noMPD
View .conkyrc
# 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 Dec 23, 2015
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.
View hosts
#
# /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 Dec 26, 2015
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/
View tv.sh
#!/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 Dec 28, 2015
~/.config/tint2
View tint2rc
---------------------------------------------
# TINT2 CONFIG FILE
#---------------------------------------------
#---------------------------------------------
# BACKGROUND AND BORDER
#---------------------------------------------
#panels
rounded = 5
border_width = 1
background_color = #1A1A1A 50