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
#!/usr/bin/env bash
########################################################################
#### Script Name: inxi
#### Version: 2.2.17
#### Date: 2015-01-14
#### Patch Number: 00
########################################################################
#### SPECIAL THANKS
########################################################################
#### Special thanks to all those in #lsc and #smxi for their tireless
# Config file for Syslinux -
# /boot/syslinux/syslinux.cfg
#
# Comboot modules:
# * menu.c32 - provides a text menu
# * vesamenu.c32 - provides a graphical menu
# * chain.c32 - chainload MBRs, partition boot sectors, Windows bootloaders
# * hdt.c32 - hardware detection tool
# * reboot.c32 - reboots the system
#
at_x = 1920
at_y = 20
#bubble_x = 140
#bubble_y = 20
monitor = 1
display_time = 1
reading_speed = 2
cow_size = med
display_time = 1000
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
Documented at
http://linux.die.net/man/5/fonts-conf
To check font mapping run the command at terminal
$ fc-match 'helvetica Neue'
@cirrusUK
cirrusUK / config
Created May 6, 2015 17:27
teiler config
##### 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
#!/bin/sh
URL="http://feeds.bbci.co.uk/news/uk/rss.xml"
curl --silent "$URL" | grep -E '(title>|description>)' | \
grep -E '(<title>|description)' | tail -n +4 | sed -e 's/<!\[CDATA\[//g' -e 's/\]\]>//g' | sed -e 's/<a.*a>/ /g' | sed -e 's/<*.title>//g' -e 's/&lt;.*/\
/' | sed -e 's/<*.title>//g' -e 's/&lt;.*/\
/' | sed -e '/<description>/d' | sed -e 's/<\/description>/\
/g
' | fmt -w 80
@cirrusUK
cirrusUK / adnnp
Last active April 27, 2024 06:30
shell scripts for posting to app.net/twitter current playing MPD track requires texapp and ttytter, i use em as cronjobs.
#!/bin/bash
msg=$(mpc current -h 192.168.1.33)
/home/cirrus/texapp.pl -status="#MPD Server nowplaying $msg. http://cirrus.turtil.net:9001"
exit
@cirrusUK
cirrusUK / gmail
Last active August 29, 2015 14:19
notify script to be notified of number of emails in inbox ( throw a gmail png icon in ~ /.icons )
#!/bin/bash
# include it into user crontab by crontab -e
# */5 * * * * /path/to/script/gmail #will notify every 5 mins
# ----------------------------------------------------- -----#
#
# :password1 = gmail account:password
# https://username:[email protected]
# ----------------------------------------------------- #
MAIL=$(wget --secure-protocol=TLSv1 --timeout=3 -t 1 -v -O - \
@cirrusUK
cirrusUK / .xbindkeysrc
Last active April 3, 2017 19:42
simple shell script to launch some radio stations ; xkeybindrc
# For the benefit of emacs users: -*- shell-script -*-
###########################
# xbindkeys configuration #
###########################
#
# Version: 1.8.6
#
# If you edit this file, do not forget to uncomment any lines
# that you change.
@import url(http://fonts.googleapis.com/css?family=Raleway:200,400,600);
body, html { background: #222; margin:0; }
html { font: 14px/1.4 Raleway, 'Helvetica Neue', Helvetica, sans-serif; color: #ddd; font-weight: 400; }
h2 { font-weight: 200; font-size: 45px; margin: 20px 35px; }
div.list { background: #111; padding: 20px 35px; }
div.foot { color: #777; margin-top: 15px; padding: 20px 35px; }
td { padding: 0 20px; line-height: 21px; }