25 Even More Slick Linux Commands
viewtext.org
viewtext.org
I know it looks nicer, but it totally breaks the ability to paste into a shell :(
Funny story: I had the good fortune to drive Matt Mullenweg to dinner after a WordCamp, and in the car we talked about many things. We got to the topic of typography, which made me lament the fact that I was always frustrated when all these blogs would replace straight quotes with curly quotes and how hard it was to copy/paste them elsewhere. "Oh, yeah," he said. "I wrote that."
At that point I completely forgot who I was escorting, shot Matt a sideways glare and said, "YOOOUUUUUU!!!!!!!"
I was immediately embarrassed, but he took it in stride :)
#3 doesn't work for me on Mac OSX with Bash; the ! is interpreted as the last command. Not sure if this works in other shells
#4 is clever, but I would think if you're doing something that complex that you need to recall time and time again you'd make an alias for it.
#8 is clever. I love AWK. But not sure when I'd ever use this.
The rest were pretty bleh to me. Always looking for new shell kung fu but unfortunately this list did nothing for me.
alias http="plackup -MPlack::App::Directory -e 'Plack::App::Directory->new({ root => \$ENV{PWD} })->to_app;'"
Which starts a webserver that serves the current directory over HTTP. You can even pass args like --port 8080 to set the port.(I most recently used this to git clone some library I wrote while at work. They recently blocked github, so I ssh'd to my home machine from my phone, cd ~/projects, http, and then did "git clone http://snowball2.jrock.us:5000/whatever/.git whatever". Not quite as convenient as github, but better than being stuck with the buggy version at work :)
python -m SimpleHTTPServer
or python -m SimpleHTTPServer 8000python -m http.server
strings /dev/urandom | grep -o '[[:alnum:]]\{--m--\}' | head -n --n--