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
#!/bin/bash
[ -z "$channel" ] && channel="#cirrus"
[ -z "$server" ] && server="irc.geekshed.net"
[ -z "$port" ] && port="6667"
[ -z "$user" ] && user="cirrusb0t"
[ -z "$message" ] && message="testing script"
function irc_session () {
# Login phase
echo "USER $user 0 * :$user"
@cirrusUK
cirrusUK / haxfoxglobal.css
Created October 8, 2015 19:26
firefox global css theme
@namespace html url(http://www.w3.org/1999/xhtml);
@namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
/* Browser Background */
browser[type="content-primary"] {
background-color: #141414 !important;
}
@-moz-document url-prefix(http://), url-prefix(https://), url-prefix(ftp://), url-prefix(file://) {
@cirrusUK
cirrusUK / ix
Created October 4, 2015 20:05
shell script for the ix pastebin
#!/usr/bin/env bash
# Examples:
# ix hello.txt # paste file (name/ext will be set).
# echo Hello world. | ix # read from STDIN (won't set name/ext).
# ix -n 1 self_destruct.txt # paste will be deleted after one read.
# ix -i ID hello.txt # replace ID, if you have permission.
# ix -d ID
ix() {
@cirrusUK
cirrusUK / ansiweather.sh
Last active October 8, 2015 19:27
weatherbar shell script
#!/bin/sh
###############################################################################
# #
# AnsiWeather 1.05 (c) by Frederic Cambus 2013-2015 #
# https://github.com/fcambus/ansiweather #
# #
# Created: 2013/08/29 #
# Last Updated: 2015/09/27 #
# #
@cirrusUK
cirrusUK / PlayMusic.settings (paste contents when asked to create settings file)
Last active April 27, 2024 06:27
shell script for downloading/streaming music from pre defined websites
#/usr/local/settings/PlayMusic.settings
mplayer #first line should be player
http://ccmixter.org/view/media/samples/mixed
http://ccmixter.org/view/media/remix
http://mp3.com/top-downloads/genre/jazz/
http://mp3.com/top-downloads/
http://mp3.com/top-downloads/genre/rock/
http://ccmixter.org/view/media/playlists
#-------- i think only downloads work with these sites, no streaming -----
http://www.last.fm/music/+free-music-downloads
@cirrusUK
cirrusUK / appnet.sh
Last active September 24, 2015 14:20
Misc Shell scripts
#!/bin/bash
#script that lists apps currently using the network
#black=`tput setaf 0`
red=`tput setaf 1`
green=`tput setaf 2`
yellow=`tput setaf 3`
blue=`tput setaf 4`
#magenta=`tput setaf 5`
cyan=`tput setaf 6`
red=`tput setaf 1`
@cirrusUK
cirrusUK / avi2mp4
Last active April 3, 2017 19:40
shell scripts for batch converting media
#!/bin/bash
#usage: execute script from within directory source .avi file(s) reside, the source .avi file must have no spaces in filename.
for f in *.avi;
do ffmpeg -i sf -acodec libfaac -ac 2 -ab 128k \
-vcodec libx264 -vpre hq -crf 24 -threads 0 \
${f%.avi}.mpr;
done
@cirrusUK
cirrusUK / uposhells
Last active February 15, 2016 20:23
scripts for quickly uploading files to server(s)
#!/bin/bash
red=`tput setaf 1`
green=`tput setaf 2`
yellow=`tput setaf 3`
tput setaf 1
scp -P 22 -rv $1 [email protected]:/home/cirrus/public_html && echo "🇸🇺🇨🇨🇪🇸🇸 , $1 uploaded to openshells public directory " | ccze -A ;
xdg-open http://cirrus.openshells.org
exit
@cirrusUK
cirrusUK / config.h
Last active March 13, 2016 23:31
dwm config
/* See LICENSE file for copyright and license details. */
/* appearance */
static const char font[] = "-*-envy-code-r-*-*-10-*-*-*-*-*-*-*";
static const char normbordercolor[] = "#cb4b16";
static const char normbgcolor[] = "#191919";
static const char normfgcolor[] = "#2aa198";
static const char selbordercolor[] = "#2aa198";
static const char selbgcolor[] = "#333333";
static const char selfgcolor[] = "#cb4b16";
@cirrusUK
cirrusUK / config
Created June 22, 2015 18:13
teiler configuration file
##### teiler configuration file ######
# general variables
backend=rofi
slop_color="255,0,0"
slop_border=2
hidecursor=yes
# the path where images, videos and pastes should be saved