This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This init script autostarts necessary vms at boot | |
# and saves running vms on shutdown | |
# Inspired by: | |
# http://ubuntuforums.org/showthread.php?t=2181095&s=d46e80841d9fedc49cfbb37ba885af9d&p=12826048#post12826048 | |
# | |
# Execute this script when perform boot-up and shutdown | |
# sudo update-rc.d startvm defaults 99 01 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Specify the directory which has to be backed up | |
src="/home/user/" | |
# Specify the directory to place the backup | |
dst="rdiff_user@servername::remote_path" | |
# Specify a file which defines the direcories or files to be EXCLUDED | |
# from backup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mysql_conf_file="/etc/mysql/debian.cnf" | |
mysqldump_opts="--all-databases --events --add-drop-table --add-locks --create-options --disable-keys --lock-tables --quick --set-charset" | |
now=$(date '+%Y%m%d-%H%M%S') | |
#Extract password for MySQL user debian-sys-maint from /etc/mysql/debian.cnf. Two | |
#code lines are necessary to cope with files that include to identical lines | |
#defining the password | |
temp=$(cat $mysql_conf_file | grep "password =" | sed -e '{:q;N;s/\n/ /g;t q}') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Global Settings | |
## | |
set tabstospaces # Tab key inserts spaces (Ctrl+t for verbatim mode) | |
set tabsize 4 # Insert 4 spaces per tab | |
set fill 76 # Justify command (Ctrl+j) wraps at 76 columns | |
set autoindent # Jump to current indent level after inserting a newline | |
set morespace # Use the second row (usually blank) for editing space | |
set quickblank # Clear status messages after a single keystroke | |
set multibuffer # Allow opening multiple files (Alt+< and Alt+> to switch) | |
set historylog # Remember command history |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
############################################################################### | |
# Begin of configuration section | |
############################################################################### | |
# Define the default keyboard map here | |
default_map="de" | |
# Define the alternative keyboard map here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Quelle: http://opengeiger.de/Feinstaub/FeinstaubDatenLogger.pdf | |
#Anpassung für big endian unter RHEL 7 | |
WDIR=~ | |
while true; do | |
stty -F /dev/ttyUSB0 9600 raw | |
INPUT=$(dd conv=swab bs=10 count=1 </dev/ttyUSB0 2>/dev/null | od -x -N10 |head -n 1|cut -f2-10 -d" "); | |
#Ausgabe | |
#echo $INPUT | |
#echo " " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"/home/jan/temp/backup/restic-test/data/c3/c3a153419ce8c0064e27d3cbeff71e2a6acb16ceb83a1fa9ee8bc906ce933b7c", "2020-03-22 14:37:57.580592139 +0100", "b8a9972341d292132e5ca9f8acbd2555" | |
"/home/jan/temp/backup/restic-test/data/45/45ccfe5e9ed2386f406fa2da6662b77daba718ce4ed1c4bb3295df2900f5b208", "2020-03-22 14:37:57.569592128 +0100", "1b780a77ec89de79c829f10e7113a5ab" | |
"/home/jan/temp/backup/restic-test/snapshots/9e0a93a46b83972d0852efc8598e400fa9f65a23e65a370da69e0fc33db498d4", "2020-03-22 14:37:57.597592157 +0100", "8ca20f649a162d713f7695f6979c03fa" | |
"/home/jan/temp/backup/restic-test/config", "2020-03-22 14:37:15.673548243 +0100", "fcdf943a4ecba6697f26d04867dd7891" | |
"/home/jan/temp/backup/restic-test/index/81b6199f6d0044154c9e926b8a3f7052c383531ab54fb13f58f81773e39e86d4", "2020-03-22 14:37:57.589592148 +0100", "87a29b03ab29dad2224034a42e80fb17" | |
"/home/jan/temp/backup/restic-test/keys/e3080f9cfc5f76398232c133f43b5c9a485fe2164ee9f797779626f883b2af3d", "2020-03-22 14:37:15.666548236 +0100", "9399b554667f798937b8147 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
ESP8266 IO HTTP | |
This program reads on digital input of the ESP8266 and displays | |
the result on a webpage. The ESP8266 connects directly to a | |
defined wifi on bootup. | |
*/ | |
#include <ESP8266WiFi.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
# =========================================== | |
# Laden von Perl-Modulen | |
# =========================================== | |
# Trigonometrische Funktionen, Kreiszahl Pi | |
use Math::Trig; | |
# Normalverteilte Zufallszahlen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[default] | |
repository = "XXXX" | |
password-file = "/usr/local/etc/resticprofile/restic-backup.pwd" | |
initialize = false | |
[default.env] | |
TMPDIR = "/tmp" | |
[default.backup] | |
verbose = true |
OlderNewer