Skip to main content

Scripts

·105 words·1 min·
Daelon Suzuka
Author
Daelon Suzuka
A little bit about you
Table of Contents

Useful scripts that are too small to deserve their own project page go here.

GNU Screen backspace fix
#

GNU Screen does something weird with the backspace key, and this .screenrc fixes it for me.

bindkey -d -k kb stuff "\010"

Enforce trailing newlines on entire directories
#

This isn’t fast, but it’s copy/pastable and should be very portable.

find . -type f -exec sed -i -e '$a\' {} \; -print

Fix ssh key permissions
#

find .ssh/ -type f -exec chmod 600 {} \;; find .ssh/ -type d -exec chmod 700 {} \;; find .ssh/ -type f -name "*.pub" -exec chmod 644 {} \;

Related

About
·14 words·1 min
Hello
·47 words·1 min
Test