Skip to content

Instantly share code, notes, and snippets.

@yuan3y
yuan3y / unban.sh
Created April 11, 2021 08:55
unban an IP from denyhosts
#!/usr/bin/env bash
if [ -z "$1" ]; then
echo -e "Error:\n\tProvide IP as the first param"
echo -e "Usage:\n\t$0 <IP>"
exit 1
fi
/etc/init.d/denyhosts stop
echo '
@yuan3y
yuan3y / git rebase amend with signature
Created February 4, 2022 06:01
one-liner command to sign all commits until master
git rebase --exec 'git commit --amend --no-edit -n -S' -i master