Skip to content

Instantly share code, notes, and snippets.

Walter Werther wwerther

Block or report user

Report or block wwerther

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View register_new_protocol.reg
REGEDIT4
[HKEY_CLASSES_ROOT\biss]
@="URL:biss Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\biss\shell]
[HKEY_CLASSES_ROOT\biss\shell\open]
View gist:949593
#!/usr/bin/perl
print "Hello test"
@wwerther
wwerther / RestartService.ps1
Created Jun 25, 2011
restart remote services via Powershell
View RestartService.ps1
$computer='remote.example.com';
$servicename='TheServiceName';
$cred=Get-Credential;
function getsrv($servicename,$computer,$credentials) {
$servicename="Name='" + $servicename + "'";
return Get-WmiObject -Class Win32_Service -computer $computer -Credential $credentials -filter $servicename;
}
View gist:1306208
# Reverse the order of all intervals from /etc/rsnapshot.conf
#interval hourly 3
#interval daily 7
#interval weekly 4
##interval monthly 3
#
# all single commands below should be possible to be scripted within a bash loop
# by defining a function called interval and a process afterwards..
# to get all defined intervals from /etc/rsnapshot you can use grep
View gist:1306374
#################################################
# rsnapshot.conf - rsnapshot configuration file #
#################################################
# #
# PLEASE BE AWARE OF THE FOLLOWING RULES: #
# #
# This file requires tabs between elements #
# #
# Directories require a trailing slash: #
# right: /home/ #
@wwerther
wwerther / gist:1306377
Created Oct 22, 2011
rsnapshot.old.conf
View gist:1306377
#################################################
# rsnapshot.conf - rsnapshot configuration file #
#################################################
# #
# PLEASE BE AWARE OF THE FOLLOWING RULES: #
# #
# This file requires tabs between elements #
# #
# Directories require a trailing slash: #
# right: /home/ #
@wwerther
wwerther / updatehe.sh
Created Nov 8, 2011
Small Script to update Tunnelbroker IPv4-address
View updatehe.sh
#!/bin/sh
USERID=<USERID from TUNNELBROKER.NET>
PASSWORD=<PASSWORD>
TUNNELID=<YOUR TUNNEL ID>
LOGSTATE=/tmp/updatehe.stat
if [ -e "$LOGSTATE" ] ; then
LASTIP=`cat $LOGSTATE`
View gist:1362316
# Generated by ip6tables-save v1.4.8 on Sun Nov 13 17:47:55 2011
*filter
:INPUT DROP [4018:321440]
:FORWARD DROP [6107:487980]
:OUTPUT ACCEPT [2868:232336]
:HEIPV6LOCAL - [0:0]
:LAN - [0:0]
:LAN2WAN - [0:0]
:LOGDROP - [0:0]
:SIXXSLOCAL - [0:0]
@wwerther
wwerther / iptables.conf
Created Nov 13, 2011
Rsyslog configuration for IPTables-Logs
View iptables.conf
# Filter IP-Tables LOGs
# and discard the line afterwards
:msg, contains, "iptables" -/var/log/iptables.log
& ~
# Filter IP6-Tables LOGs
# and discard the line afterwards
:msg, contains, "ip6tables" -/var/log/ip6tables.log
& ~
You can’t perform that action at this time.