Skip to content

Instantly share code, notes, and snippets.

View BrainStone's full-sized avatar
🏳️‍🌈
#lgbt

Yannick Schinko BrainStone

🏳️‍🌈
#lgbt
View GitHub Profile
alias certbot_cert='certbot certonly --webroot --rsa-key-size 4096 -w /var/www/html'
out/
.idea/
*.iml
@BrainStone
BrainStone / scriptreplay_fix.sh
Created October 11, 2022 15:12
A simple script that fixes messed up terminal when sending SIGINT to scriptreplay
function scriptreplay () {
# Start a subshell to remove the trap in every case and to prevent the exit command from ending the parent shell
(
function _restore () {
# Reset terminal without losing scrollback
reset -I
# Exit subshell
exit
}