Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Dunroamin, Duncarin, Dunlivin.

cirrus cirrusUK

💭
Dunroamin, Duncarin, Dunlivin.
View GitHub Profile
View pmsyt
#!/usr/bin/env python
"""
pms-youtube.
https://github.com/np1/pms-youtube
Copyright (C) 2014 nagev
This program is free software: you can redistribute it and/or modify
@cirrusUK
cirrusUK / config
Last active Aug 29, 2015
~/.i3/config
View config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@cirrusUK
cirrusUK / .gntrc
Created Mar 6, 2014
file which determines colours used in finch ~/.gntrc
View .gntrc
[Finch]
color-available = yellow; default
color-away = green; default
color-idle = green; default
color-offline = darkgray; default
color-message-sent = green; default
color-message-received = green; default
color-message-highlight = red; default
color-message-action = green; default
color-timestamp = blue; default
@cirrusUK
cirrusUK / termite config
Created Mar 6, 2014
config file for termite ~/.config/termite/config
View termite config
[options]
resize_grip = false
geometry = 1920x1040
scroll_on_output = true
scroll_on_keystroke = true
audible_bell = true
visible_bell = true
mouse_autohide = true
dynamic_title = true
urgent_on_bell = true
@cirrusUK
cirrusUK / ball.sh
Created Mar 11, 2014
shell script to show terminal colours
View ball.sh
#! /bin/sh
printf "\033[0m
\033[49;35m|\033[49;31m|\033[101;31m|\033[41;97m|\033[49;91m|\033[49;93m|\033[0m
\033[105;35m|\033[45;97m|\033[49;97m||\033[100;97m||\033[49;37m||\033[103;33m|\033[43;97m|\033[0m
\033[49;95m|\033[49;94m|\033[100;37m||\033[40;97m||\033[40;37m||\033[49;33m|\033[49;32m|\033[0m
\033[104;34m|\033[44;97m|\033[49;90m||\033[40;39m||\033[49;39m||\033[102;32m|\033[42;97m|\033[0m
\033[49;34m|\033[49;36m|\033[106;36m|\033[46;97m|\033[49;96m|\033[49;92m|\033[0m"
@cirrusUK
cirrusUK / .conkybar
Created Apr 22, 2014
.conkybar : vertical conky panel
View .conkybar
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 Apr 25, 2014
zsh aliases for livestreamer
View livestreamer-alias
##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
simple shell script using notify-send for mounting HDD
View mount7.sh
#!/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 Aug 29, 2015
best and most stable method ive found for mounting android devices is the 'simple-mtpfs' package
View mountdroid.sh
#!/bin/bash
notify-send -i ~/.icons/s4.png "Mounting Android Device" " Samsung Galaxy S4 Mounted " && simple-mtpfs /media/s4
mpg123 ~/sonar.mp3
View weather.sh
#!/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