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 | |
# Time-stamp: <Tue 2021-08-31 14:26 svarrette> | |
################################################################################ | |
# Pre-commit hook to avoid accidentally adding unencrypted files with | |
# [git-crypt](https://www.agwa.name/projects/git-crypt/) | |
# Fix to [Issue #45](https://github.com/AGWA/git-crypt/issues/45) | |
# | |
# Usage: | |
# $ cd /path/to/repository | |
# $ git-crypt init |
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
function listening { | |
if [ "${1}" = "-h" ]; then | |
echo "Usage: listening [t|tcp|u|udp] [ps regex]" | |
return | |
fi | |
DISP="both" | |
NSOPTS="tu" | |
if [ "${1}" = "t" -o "${1}" = "tcp" ]; then | |
DISP="tcp" | |
NSOPTS="t" |
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 | |
################################################################################ | |
# lvm_net_backup.sh - Backup lvm snapshot over SSH to files | |
# | |
# Copyright (c) 2012 Hyacinthe Cartiaux <Hyacinthe.Cartiaux@uni.lu> | |
# | |
# Description : see the print_usage function or launch 'lvm_net_backup.sh --help' | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by |