Skip to content

Instantly share code, notes, and snippets.

View sebix's full-sized avatar

Sebastian sebix

View GitHub Profile
@sebix
sebix / update-resolv-conf
Last active April 17, 2021 09:55 — forked from weisi/update-resolv-conf
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 / vimeo_dl.sh
Created November 20, 2011 18:43
Download videos from Vimeo with a shellscript
#!/bin/sh
#
# Vimeo Downloader
#
# Copyright (C) 2008, 2010 Denver Gingerich
# Copyright (C) 2009 Jori Hamalainen
# It has also been modified by me (sebix)
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
@sebix
sebix / cppinit.sh
Created March 7, 2012 09:53
Initialize empty cpp-project with sample Makefile
#!/bin/bash
# Version: 07.03.2012 11:00
# Author: sebix (https://github.com/sebix)
# URL: https://gist.github.com/gists/1992299
if [ $# -lt 1 ]; then
echo "Name not given!"
exit
fi
@sebix
sebix / .gitignore
Created January 7, 2012 19:44
Sample Makefile for compiling LaTeX-Documents + gitignore
*.pdf
#Backup-Files
*.backup
*~
*.bak
# logfiles
*.aux
*.log
@sebix
sebix / jamendo_dl.sh
Created August 30, 2011 16:58
This small Shell-Script can download tracks, albums and many albums (just give the tag or a list) at once!
#!/bin/bash
# Version: 30.08.2011 19:00
# Author: sebix (https://github.com/sebix)
USAGE="jamendo_dl.sh
Download free Music from Jamendo.com
Usage: jamendo_dl.sh [ -opts]
Options:
@sebix
sebix / visits.mc.sh
Created August 5, 2011 10:34
Small wget-based Script for visits.mastercrew.de
#!/bin/bash
# Small wget-based Script for visits.mastercrew.de
DOMAIN="http://visits.mastercrew.de"
USERNAME=""
PASSWORD=""
COOKIEFILE="cookies.wget"
LOGFILE="filelog"
ERRORFILE=$LOGFILE
@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