Skip to content

Instantly share code, notes, and snippets.

@weisi
weisi / update-resolv-conf
Created Jan 25, 2012
update-resolv-conf for openSUSE, using SUSE's netconfig with dirty tricks. No need for resolvconf.
View update-resolv-conf
#!/bin/bash
#
# Parses DHCP options from openvpn to update resolv.conf
# To use set as 'up' and 'down' script in your openvpn *.conf:
# up /etc/openvpn/update-resolv-conf
# down /etc/openvpn/update-resolv-conf
#
# Used snippets of resolvconf script by Thomas Hood <jdthood@yahoo.co.uk>
# and Chris Hanson
# Licensed under the GNU GPL. See /usr/share/common-licenses/GPL.
@sebix
sebix / check.sh
Created Jul 16, 2011
Check your programs with Input files
View check.sh
#!/bin/bash
# Version: 06.03.2012 17:00
# Author: sebix (https://github.com/sebix)
# URL: https://gist.github.com/gists/1086477
CORRECT=0
FALSE=0
SUM=0
COLOR=1
SUMWITHOUT=0
@pyropeter
pyropeter / arte-plus-7.sh
Created Mar 25, 2011
Downloads videos from Arte+7
View arte-plus-7.sh
#!/bin/bash
set -e
set -u
if [ $# -lt 1 ]; then
echo "Usage: $0 <videoWebpageUrl>"
exit 1
fi
@michitux
michitux / arte_download.rb
Created Feb 16, 2011
Simple script for downloading Arte videos. Use at your own risk (and respect the copyright of Arte), it requires rtmpdump.
View arte_download.rb
#!/usr/bin/ruby
require 'net/http'
require 'cgi'
require 'rexml/document'
require 'optparse'
require 'time'
options = {
:lang => 'de',
@pyropeter
pyropeter / monitor.sh
Created Jul 10, 2010
Simple system monitor
View monitor.sh
#!/bin/bash
interval=5
intervalLong=300
function getSensors {
sensors | awk 'BEGIN {FS=":? +"} /^Core|^fan[12]|^temp/ {printf "%9s %9s\n", $1, $2}'
}
function getDiskfree {
View torus-highscores
http://www.benjoffe.com/code/games/torus/
##### HIGHSCORES #####
### Traditional
niemand [12930]
tuxlover [10349]
PyroPeter [10224]
PyroPeter [9450]