Create LXC Container as usual, but do not start it yet.
# Install NFS-Kernel on Host
apt install nfs-kernel-server
############################################# | |
### 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: |
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 |
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" |
# su root / sudo su | |
apt-get -y install build-essential libglib2.0-dev libssl-dev libcurl4-openssl-dev libgirepository1.0-dev | |
cd /usr/src | |
wget https://megatools.megous.com/builds/megatools-1.10.3.tar.gz | |
tar -xvf megatools-1.10.3.tar.gz | |
cd megatools-1.10.3 |
declare mkvpropedit="/usr/bin/mkvpropedit" | |
declare movieDir="/path/to/movies" | |
function mkvTitleEdit { | |
filename=$(basename "${1}") | |
filename="${filename%.*}" | |
echo mkvpropedit --set title "${filename}" "${1}" | |
} | |
export -f mkvTitleEdit |
#!/bin/sh | |
file2jsql(){ | |
# $1=file, $2=table_name | |
keyval=$(cat "${1}" | perl -n -e '/`db:"(.*)"\ / && printf(qq{"%s", %s,\n},$1,$1);') | |
keyval=${keyval%?} | |
echo "SELECT JSON_OBJECT(" | |
echo "$keyval" | |
echo ") FROM ${2};" | |
} |
I hereby claim:
To claim this, I am signing this object:
# 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 { |