Skip to content

Instantly share code, notes, and snippets.

View meskarune's full-sized avatar
Halfway back to productivity

Dolores Portalatin meskarune

Halfway back to productivity
View GitHub Profile
@meskarune
meskarune / gist:2721790
Created May 17, 2012 21:52
Global Dark CSS Theme
/*
"myfavolours" - global custom colour scheme
http://userstyles.org/styles/2187
BEGIN
*/
/*
summary:
- basic background = dark grey
- basic text = light grey
@meskarune
meskarune / pvzkbschk
Created May 20, 2012 00:02
Google Translate Fun
# Paste this into google translate. Choose German as the language. Click on the "listen" button
pv zk bschk pv zk pv bschk zk pv zk bschk pv zk pv bschk zk bschk pv bschk bschk pv kkkkkkkkkk bschk bschk bschk pv zk bschk pv zk pv bschk zk pv zk bschk pv zk pv bschk zk bschk pv bschk bschk pv kkkkkkkkkk bschk bschk bschk pv zk bschk pv zk pv bschk zk pv zk bschk pv zk pv bschk zk bschk pv bschk bschk pv kkkkkkkkkk bschk bschk bschk pv zk bschk pv zk pv bschk zk pv zk bschk pv zk pv bschk zk bschk pv bschk bschk pv kkkkkkkkkk bschk bschk bschk pv zk bschk pv zk pv bschk zk pv zk bschk pv zk pv bschk zk bschk pv bschk bschk pv kkkkkkkkkk bschk bschk bschk
@meskarune
meskarune / find-s-g
Created June 8, 2012 16:13
Mass File Editing
#!/bin/bash
for file in *.css; do
mv $file $file.old
sed 's/FINDSTRING/REPLACESTRING/g' $file.old > $file
rm -f $file.old
done
@meskarune
meskarune / Tocsin
Created June 19, 2012 19:49
Tester Tocsin Program
#! /bin/bash
#
#Tocsin - Plays a Chime at the Hour and Quarter Hour
#
# You can change the paths to any sound files you'd like, but paths must be absolute for cron to work
# This script uses mpg123 to play the mp3 chime files. Alternative programs would be aplay, ogg123, and madplay.
#Quarter Chime Variables
fifteen="/home/meskarune/GIT/tocsin/chimes/quarter1.mp3"
@meskarune
meskarune / README.md
Created June 19, 2012 21:30
readme for humble pie

#README

Humblepie downloads game install files from the Humble Indie Bundle Releases

##Overview

Humblepie is a bash script that will download Humble Indie Bundle game install files and check the md5 sums. It will work with any Indie Humble Bundle.

##Usage

@meskarune
meskarune / homewoddf2scriptsselect-wm.sh
Created June 21, 2012 23:43 — forked from anonymous/homewoddf2scriptsselect-wm.sh
/home/woddf2/scripts/select-wm
#!/bin/bash
case "$1" in
dwm)
startx ~/scripts/xinitrc-dwm
;;
ratpoison)
exec startx ~/scripts/xinitrc-ratpoison
;;
fvwm)
@meskarune
meskarune / Pacman Glibc
Created July 30, 2012 01:51
Pacman Glibc Package Search
grep '^lib/' /var/lib/pacman/local/*/files
/var/lib/pacman/local/glibc-2.15-10/files:lib/
/var/lib/pacman/local/glibc-2.15-10/files:lib/ld-2.15.so
/var/lib/pacman/local/glibc-2.15-10/files:lib/ld-linux-x86-64.so.2
/var/lib/pacman/local/glibc-2.15-10/files:lib/libBrokenLocale-2.15.so
/var/lib/pacman/local/glibc-2.15-10/files:lib/libBrokenLocale.so.1
/var/lib/pacman/local/glibc-2.15-10/files:lib/libSegFault.so
/var/lib/pacman/local/glibc-2.15-10/files:lib/libanl-2.15.so
/var/lib/pacman/local/glibc-2.15-10/files:lib/libanl.so.1
# Example configuration file for Munin, generated by 'make build'
# The next three variables specifies where the location of the RRD
# databases, the HTML output, logs and the lock/pid files. They all
# must be writable by the user running munin-cron. They are all
# defaulted to the values you see here.
#
# dbdir /var/lib/munin
htmldir /srv/http/stats
logdir /var/log/munin
@meskarune
meskarune / gist:3407219
Created August 20, 2012 19:52
find what owns lib from live cd then post to sprunge
find /lib -exec pacman -Qo --root /mnt -- {} + |& curl -F sprunge=@- http://sprunge.us
desc "Deploy website via rsync"
task :rsync do
exclude = ""
if File.exists?('./rsync-exclude')
exclude = "--exclude-from '#{File.expand_path('./rsync-exclude')}'"
end
puts "## Deploying website via Rsync"
ok_failed system("rsync -av #{exclude} #{"--delete" unless rsync_delete == false} #{public_dir}/ #{document_root}")
end