Skip to content

Instantly share code, notes, and snippets.

Robin Wenzel rwenz3l

Block or report user

Report or block rwenz3l

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 keybase.md

Keybase proof

I hereby claim:

  • I am rwenz3l on github.
  • I am rwenz3l (https://keybase.io/rwenz3l) on keybase.
  • I have a public key ASA3-J6KLz8z8LFqC32iUxLegBr5QC8UIoFGlM94zUBEAwo

To claim this, I am signing this object:

@rwenz3l
rwenz3l / proxmox_lxc_nfs_server.md
Last active Jul 7, 2019
Install a NFS Server inside a LXC Container on Proxmox 5.1
View proxmox_lxc_nfs_server.md

Installing NFS inside LXC Container on Proxmox 5.1

Host Setup:

Create LXC Container as usual, but do not start it yet.

# Install NFS-Kernel on Host
apt install nfs-kernel-server
@rwenz3l
rwenz3l / centos7-btsync.sh
Created Nov 23, 2017
Install BTSync on CentOS7
View centos7-btsync.sh
yum update
cat > /etc/yum.repos.d/resilio-sync.repo <<'EOF'
[resilio-sync]
name=Resilio Sync $basearch
baseurl=http://linux-packages.resilio.com/resilio-sync/rpm/$basearch
enabled=1
gpgcheck=1
EOF
View abandon-git.sh
# Snippets for fun and learning more about git (automation)
function abandon-git {
rescue_branch="Rescue-Branch-$(date +"%Y-%m-%d-%H-%M-%S")"
git checkout -b "${rescue_branch}"
git add --ignore-removal .
git commit -a -m 'This is a Rescue Commit - saves progress and pushes to new banch'
git push --set-upstream origin Rescue-Branch-2017-09-20-15-54-40
}
function restore-git {
@rwenz3l
rwenz3l / repairPermissions_Sierra.sh
Created Sep 17, 2017
repair Disk Permissions on ElCapitan / Sierra when System Integrity Protection (SIP) is off
View repairPermissions_Sierra.sh
sudo chown root:admin /Applications; sudo chmod 0775 /Applications
sudo chown root:wheel /Library; sudo chmod 0755 /Library
sudo chown root:admin /Library/Application\ Support; sudo chmod 0755 /Library/Application\ Support
sudo chown root:admin /Users; sudo chmod 0755 /Users
sudo chown root:wheel /usr; sudo chmod 0755 /usr
sudo chown root:wheel /usr; sudo chmod 0755 /usr/bin
@rwenz3l
rwenz3l / audioReport.py
Created Sep 13, 2017
A Small Script to read Library Tags and Report Quality and Stuff
View audioReport.py
import sys, os, re
import xml.etree.ElementTree as ET
from mutagen.mp3 import MP3
'''
@param Uebergeben wird: "HostName" "/path/to/movies" "path/to/txt"
# HostName XServe = "XServe"
# Input XServe = "/Volumes/AUDIO"
# Output XServe = "/opt/syncthing/Repository/media"
@rwenz3l
rwenz3l / hetzner-proxmox-docker.sh
Created Sep 2, 2017
Hetzner Dedicated with Debian 9 (Stretch) and Proxmox 5 (LXC) + Docker-CE + Portainer [NAT]
View hetzner-proxmox-docker.sh
#############################################
### Proxmox V & Docker-CE + Portainer #
#############################################
## Rescue System
# Erase other disks
dd if=/dev/zero of=/dev/sda bs=1M count=100
dd if=/dev/zero of=/dev/sdb bs=1M count=100
# You can install debian 9 via the guide:
@rwenz3l
rwenz3l / verify_flac.sh
Last active Jul 23, 2017
Verify a FLAC Folder ripped with XLD
View verify_flac.sh
# crc32 <(flac --decode --stdout --force-raw-format --endian=little --sign=signed /path/to/file.flac)
function veriflac() {
NC='\033[0m'
Red='\033[0;31m'
Green='\033[0;32m'
if [ $# -eq 0 ]
then
echo -e "${Red}Usage:"
echo -e " veriflac /path/to/folder${NC}";
@rwenz3l
rwenz3l / verify_flac.sh
Created Jul 23, 2017
Verify a FLAC file ripped with XLD
View verify_flac.sh
crc32 <(flac --decode --stdout --force-raw-format --endian=little --sign=signed /path/to/file.flac)
@rwenz3l
rwenz3l / cli_upload.sh
Created Jul 22, 2017
upload file to php with CLI (curl)
View cli_upload.sh
curl -F "logfile=@safe01.log" -F "sub=archive" localhost:9000/recv.php
You can’t perform that action at this time.