Skip to content

Instantly share code, notes, and snippets.

View sammy8806's full-sized avatar

Steven Tappert sammy8806

View GitHub Profile
@sammy8806
sammy8806 / esxi-update.sh
Last active January 31, 2018 15:23
Update VMware ESXi Host
#####
# Simple Update Commands for VMware ESXi with Internet Connection
#
# Please replace:
# $ESXiVersion with i.e. "5.5" or "5.1" or others
# $TargetProfile with the chosen Profile got by first command
#####
# Allow http-client
esxcli network firewall ruleset set -e true -r httpClient
@sammy8806
sammy8806 / peerfinder.rb
Last active August 29, 2015 14:11
Peerfinder implementation in Ruby to go cross-plattform
#!/usr/local/bin/ruby
# TODO: Fix ipv6
require 'net/ping'
#require_relative 'net-ping/lib/net/ping/icmp.rb'
require 'net/http'
require 'uri'
DEBUG = true
UUID = '00000000-0000-0000-0000-000000000000'
@sammy8806
sammy8806 / traffic_shape.sh
Created January 7, 2015 02:29
Linux-QoS (Traffic Shaping) mit TC
#!/bin/bash
## Definitionen von wichtigen Variablen
# Maximaler Upload in kbit
MAX_UP="445"
# WAN-Interface
IFACE="eth0"
# Standart-Queue für nicht gefilterte Pakete

Keybase proof

I hereby claim:

  • I am sammy8806 on github.
  • I am sammy8806 (https://keybase.io/sammy8806) on keybase.
  • I have a public key whose fingerprint is F07F 6E73 15DD 2587 F300 3B22 0769 EC6D E7A4 B302

To claim this, I am signing this object:

@sammy8806
sammy8806 / config.cson
Created November 13, 2015 07:45
atom-config
"*":
"exception-reporting":
userId: "85a2d5ed-de99-b698-428d-58d2a88b8629"
welcome:
showOnStartup: false
core:
projectHome: "/home/steven/work/"
themes: [
"seti-ui"
"seti-syntax"
@sammy8806
sammy8806 / ssh.config
Created January 9, 2017 11:38
OpenSSH Homenet Checks
Host 172.16.*.*
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
@sammy8806
sammy8806 / .scrshootrc
Last active June 15, 2017 00:29
Screenshot-Clip uploading based on xfce4-screenshooter, xclip and notify-send
USERNAME=""
PASSWORD=""
URL="https://scr.2linux.de/upload.php"
@sammy8806
sammy8806 / zfs_ssh_replicate.sh
Last active February 21, 2018 03:26
"Simple" script for zfs snapshot replication over ssh
#/usr/bin/env bash
share_volume="<zfs base-dataset>" # ex. /trunk
target_host="<user>@<target_host>" # ex. root@fileserver
keep_snaps=$((24*4))
for path in $(zfs list -o name -t filesystem -r "$share_volume" | tail -n +2)
do
echo "=> Volume: $path";
@sammy8806
sammy8806 / ts3bot.service
Created April 17, 2018 17:41
Example systemd.service file for a java based ts3 bot
[Unit]
Description=TS3 Server-Query Bot
After=network.target
[Service]
ExecStart=/usr/bin/java -jar /srv/ts3bot/adminbot.jar
RestartSec=5
User=ts3bot
Restart=always
WorkingDirectory=/srv/ts3bot
@sammy8806
sammy8806 / backup.sh
Created January 2, 2019 03:51
BorgBachup Scripts
#!/bin/bash
LOCAL_HOSTNAME=`hostname -f`
BACKUP_NAME='root'
BACKUP_PATH='/'
BACKUP_APPEND="$(date +%Y-%m-%d)$([ ! -z "$@" ] && echo "-$@")"
export BORG_RSH="ssh -p22"
export BORG_PASSPHRASE="xxxx"