home / blog

More random CLI

Generate random password.

dd if=/dev/random count=8 bs=1  | uuencode -m -

Find executable files that are world-writable – for local privilege escalation exploits…

find /usr -type f -perm -102

FLAC to MP3 conversion on MacOS.

# darwin ports versions of mplayer and LAME if necessary
sudo port install mplayer
sudo port install lame

# FLAC => WAV
mplayer -ao pcm:file=foo.wav foo.flac

# WAV => MP3
lame -q 2 -b 320 foo.wav
This entry was posted in geek and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published.