Skip to content

Instantly share code, notes, and snippets.

@sebix
sebix / update-resolv-conf
Last active Apr 17, 2021 — forked from weisi/update-resolv-conf
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 / vimeo_dl.sh
Created Nov 20, 2011
Download videos from Vimeo with a shellscript
View vimeo_dl.sh
#!/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 Mar 7, 2012
Initialize empty cpp-project with sample Makefile
View cppinit.sh
#!/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 Jan 7, 2012
Sample Makefile for compiling LaTeX-Documents + gitignore
View .gitignore
*.pdf
#Backup-Files
*.backup
*~
*.bak
# logfiles
*.aux
*.log
@sebix
sebix / jamendo_dl.sh
Created Aug 30, 2011
This small Shell-Script can download tracks, albums and many albums (just give the tag or a list) at once!
View jamendo_dl.sh
#!/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 Aug 5, 2011
Small wget-based Script for visits.mastercrew.de
View visits.mc.sh
#!/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 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