Skip to content

Instantly share code, notes, and snippets.

View sebix's full-sized avatar

Sebastian sebix

View GitHub Profile
@weisi
weisi / update-resolv-conf
Created January 25, 2012 08:55
update-resolv-conf for openSUSE, using SUSE's netconfig with dirty tricks. No need for resolvconf.
#!/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 July 16, 2011 15:55
Check your programs with Input files
#!/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 March 25, 2011 16:00
Downloads videos from Arte+7
#!/bin/bash
set -e
set -u
if [ $# -lt 1 ]; then
echo "Usage: $0 <videoWebpageUrl>"
exit 1
fi
@michitux
michitux / arte_download.rb
Created February 16, 2011 15:26
Simple script for downloading Arte videos. Use at your own risk (and respect the copyright of Arte), it requires rtmpdump.
#!/usr/bin/ruby
require 'net/http'
require 'cgi'
require 'rexml/document'
require 'optparse'
require 'time'
options = {
:lang => 'de',
@pyropeter
pyropeter / monitor.sh
Created July 10, 2010 12:40
Simple system monitor
#!/bin/bash
interval=5
intervalLong=300
function getSensors {
sensors | awk 'BEGIN {FS=":? +"} /^Core|^fan[12]|^temp/ {printf "%9s %9s\n", $1, $2}'
}
function getDiskfree {
@pyropeter
pyropeter / torus-highscores
Created March 21, 2010 10:20
Torus highscores
http://www.benjoffe.com/code/games/torus/
##### HIGHSCORES #####
### Traditional
niemand [12930]
tuxlover [10349]
PyroPeter [10224]
PyroPeter [9450]