News for hackers. Stuff that matters.
Re:Ask HN: How Do You Maintain Security When Working Remotely? by heyalexej on Sunday March 15, 2015 @05:58AM (#9205969)
re: "asset tag and call if lost sticker".

I think it's also a great idea to not have your user and hostname set to be "johnbigbucks@bestinvestconsulting" but something more generic or randomized. I use something like this to randomize my hostname.

  awk 'length==6' /usr/share/dict/words | grep -v '[^[:alpha:]]' | shuf -n 1 | tr '[:upper:]' '[:lower:]'
Re:Ask HN: How Do You Maintain Security When Working Remotely? by philsnow on Sunday March 15, 2015 @06:09PM (#9208405)
because i'm somehow compelled to golf such things (like unnecessary use of cat):

    egrep '^[[:alpha:]]{6}$' /usr/share/dict/words | shuf -n 1 | tr A-Z a-z
Re:Ask HN: How Do You Maintain Security When Working Remotely? by heyalexej on Wednesday March 18, 2015 @04:37PM (#9228516)
Yep, that's elegant. It's so easy to write bad bash scripts that I do it all the time. So much to learn on my end.
Re:Ask HN: How Do You Maintain Security When Working Remotely? by philsnow on Thursday March 19, 2015 @02:55PM (#9233858)
Thanks for your post btw, I did not know about this tool `shuf`. My equivalent involves `sort -r | head -1`