Live data from Hacker News

Suicide Linux

qntm.org

111–120 of 135 posts

Re: Suicide Linux

#111
post #100

Earlier quoted context omitted.

If it didn't exist in the first place, then you had no business searching for it. You should have just known not to look. :)

I like this joke, it kind of reminds me of the difference between `find_by_id` and `find` in ruby on rails. In the former, if a result can't be found it will return `nil` but in the latter it expects the record to exist and so will raise an exception if it can't be found.

Python: `Dict.get(k)` (`null`) vs `Dict[k]` (`IndexError`)

Re: Suicide Linux

#112
post #106
post #30

> The reaction from the OS is actually rather underwhelming. Somehow related, a coworker at a previous place unmounted some disks on an old AIX production box. It took him a solid minute to realise he had mistakenly unmounted / due to a typo (yes it was possible) as old processes with already opened files were happily serving stuff and only new attempts at opening files were beginning to produce errors. Also, a simil…

Years ago, I forget how, I managed to wipe the partition table of a DOS PC. I ended up reconstructing it by hand using MS-DOS Debug and a copy of Peter Norton's book. Another fun one: "killall" on Linux kills processes with names matching a string. "killall" on Solaris reboots the machine ...

Great choice of name for a different thing. https://xkcd.com/144/

Re: Suicide Linux

#113
post #38

Earlier quoted context omitted.

A friend of mine aliased `git status` `git statsu`; I, being lazier, chose `git st`. Any time saved I lost by not copying his other alias, `c = commit -amSTUFF`...

I must be lazier. I use `gitst` for `git status`. That is 1/6 shorter and IMO not harder to remember.

I win:

        alias add='git add'
	alias st='git status'
	alias ci='git commit'
	alias br='git branch'
	alias di='git diff'

Re: Suicide Linux

#114
post #40

I've added a counter (of successful commands in a row) to my bashrc. I've seen it as high as 120. function promptCommand() { LAST_STATUS=$? # Set title of window to dir, then add new line to prompt. PS1='\[\e]0;\w\a\]\n' if [ $LAST_STATUS -eq 0 ]; then ((successes++)) PS1+='\[\033[1;32m\][$successes]' else successes=0 PS1+='\[\033[1;31m\][0 $LAST_STATUS]' fi PS1+='\[\033[0;32m\] ' PS1+='\w $(date +%H:%M) \$ \[\033[0m…

Man, I hope you don't use grep very often (by default it uses exit code 1 when it doesn't find anything).

>grep

Not to mention tar which is just impossible to get right on the first try.

Re: Suicide Linux

#116
post #30

> The reaction from the OS is actually rather underwhelming. Somehow related, a coworker at a previous place unmounted some disks on an old AIX production box. It took him a solid minute to realise he had mistakenly unmounted / due to a typo (yes it was possible) as old processes with already opened files were happily serving stuff and only new attempts at opening files were beginning to produce errors. Also, a simil…

Reminds me of this hilarious GitHub issue: https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/issue...

(Hilarious and unnerving)

Re: Suicide Linux

#118
post #68

Earlier quoted context omitted.

Don't miss his work at SCP wiki, either. http://www.scp-wiki.net/qntm-s-author-page

Visiting that page on mobile asked for permission to record audio and take photos...

That's probably just a bad ad. That has never happened to me there. Sorry, though.

Re: Suicide Linux

#119
post #30

> The reaction from the OS is actually rather underwhelming. Somehow related, a coworker at a previous place unmounted some disks on an old AIX production box. It took him a solid minute to realise he had mistakenly unmounted / due to a typo (yes it was possible) as old processes with already opened files were happily serving stuff and only new attempts at opening files were beginning to produce errors. Also, a simil…

The 1st line is a bit of a DOS-habit anyway, rm *o would work just as well....

Re: Suicide Linux

#120
post #40

Earlier quoted context omitted.

Man, I hope you don't use grep very often (by default it uses exit code 1 when it doesn't find anything).

>grep Not to mention tar which is just impossible to get right on the first try.

Especially when disarming a nuke
Post reply on HN