Skip to content

Instantly share code, notes, and snippets.

View schewara's full-sized avatar

Old Schepperhand schewara

  • Vienna
  • 08:12 (UTC +02:00)
View GitHub Profile
@1fexd
1fexd / id_austria_root_patch.md
Last active January 28, 2025 15:30
ID Austria / Digitales Amt mit Root und/oder entsperrtem Bootloader
@zoispag
zoispag / README.md
Last active August 16, 2021 09:57
Collect restic metrics when using resticker

Collect restic metrics when using resticker

Restic is a backup software, written in Go, that stands out for the method of backup that is using, called Content Defined Chunking de-duplication. It supports multiple backends and is really easy to use.

I am using resticker, a straight-forward docker container, to run restic in Production.

It allows to schedule the backups with its built-in cron support, and allows me to send notifications for successful/failed backups.

Resticker currently does not support Prometheus metrics, in order to monitor the status of the backups.

@markph0204
markph0204 / direnv+pycharm.sh
Created December 26, 2017 21:49
direnv with pycharm
# enable direnv for python
# this will enable the commandline support as well as support pycharm
# 1 install direnv (Homebrew / pip)
# 2 edit your .bashrc, .bash_profile or .bash_aliases
function venv-here {
# you could just use 'layout python' here for 2.7.x
echo "layout python3" > .envrc
echo "ln -s .direnv/\$(basename \$VIRTUAL_ENV)/ .env" >> .envrc
}
## Concepts incorporated from:
## http://stuckinadoloop.wordpress.com/2011/06/15/puppet-managed-deployment-of-selinux-modules/
define selinux::module(
$ensure = 'present',
$mod_dir = '/usr/share/selinux',
$source
) {
# Set Resource Defaults
File {