Live data from Hacker News

Show HN: Twitch Installs Arch Linux – A cooperative text-based horror game

twitchinstalls.com

251–260 of 266 posts

Re: Show HN: Twitch Installs Arch Linux – A cooperative text-based horror game

#251
post #38

Earlier quoted context omitted.

it doesn't, ctrl-z only suspends process and switches to backgroud - the thing is still alive try ctrl-z and then type bg command - you will see a list, you can resume with fg [number]

Ctrl-z by itself doesn't actually switch the process to run in the background, it stops the process. Running 'bg' is what starts the process back up running in the background, 'fg', like you said, resumes the process in the foreground and 'jobs' is the command you can run to see a list of processes that are running.

Since the question was "Ctrl-z works universally", I feel obliged to point out that ctrl-z sends SIGTSTP, which can be blocked--not to be confused with SIGSTOP, which cannot be blocked. I don't know of any program that does intercept SIGTSTP (except a test program I wrote that tries to print the name of any signal it receives), and I suspect that "polite" interception would be to release a few resources and then accept being paused--but, in theory, a program could ignore it.

Re: Show HN: Twitch Installs Arch Linux – A cooperative text-based horror game

#252

Earlier quoted context omitted.

Every vim I've ever played on has respected `ctrl-z`. In fact, I use `ctrl-z` to jump out of my vim (to restart a server, ls the local dir, etc).

My vimrc has source $VIMRUNTIME/mswin.vim behave mswin which maps Ctrl-z to undo.

You monster.

Re: Show HN: Twitch Installs Arch Linux – A cooperative text-based horror game

#253
post #150

Earlier quoted context omitted.

This is a good point. When I first got dropped to a shell in a broom/IT closet, I thought gees I hope I don't accidentally fuck anything up. 4 days later I had to acknowledge I could barely intentionally fuck anything up.

I imagine people looking to be disruptive will seek out a 'start9' equivalent. I don't know whether or not there is one.

Instructions unclear, have acme window on screen

Re: Show HN: Twitch Installs Arch Linux – A cooperative text-based horror game

#254
post #2

Hey guys, author here. Feel free to ask any questions, and I'll try my best to answer them!

What happens if someone put a reverse shell on the machine and SSH into it or anything to circumvent the normal gameplay flow? How would you go to block all externals SSH connections? Hardware?

Re: Show HN: Twitch Installs Arch Linux – A cooperative text-based horror game

#256
post #2

Hey guys, author here. Feel free to ask any questions, and I'll try my best to answer them!

What happens if someone put a reverse shell on the machine and SSH into it or anything to circumvent the normal gameplay flow? How would you go to block all externals SSH connections? Hardware?

[deleted]

Re: Show HN: Twitch Installs Arch Linux – A cooperative text-based horror game

#257

Earlier quoted context omitted.

Ctrl-z by itself doesn't actually switch the process to run in the background, it stops the process. Running 'bg' is what starts the process back up running in the background, 'fg', like you said, resumes the process in the foreground and 'jobs' is the command you can run to see a list of processes that are running.

Since the question was "Ctrl-z works universally", I feel obliged to point out that ctrl-z sends SIGTSTP, which can be blocked--not to be confused with SIGSTOP, which cannot be blocked. I don't know of any program that does intercept SIGTSTP (except a test program I wrote that tries to print the name of any signal it receives), and I suspect that "polite" interception would be to release a few resources and then acce…

Many curses programs (for example vim) intercept ^Z to set the terminal back into a more normal mode and then pause.

Re: Show HN: Twitch Installs Arch Linux – A cooperative text-based horror game

#258

Earlier quoted context omitted.

And `date` returns a timestamp with seconds precision. `time sh -c 'if [ "$(date)" != "Sat Oct 31 16:00:00 EDT 2015" ]; then sleep 1; fi'` took around 1.010 seconds on my machine, but that includes starting a new shell, so there's probably a much smaller than 1% chance that that particular second will be missed. EDIT: here's a little program to test this: #!/usr/bin/env bash while true; do target=$(expr $(date +%s) +…

Accidentally left this running for a few hours... 71 FAIL :( 5747 OK! :) So about 1% failure rate.

[deleted]

Re: Show HN: Twitch Installs Arch Linux – A cooperative text-based horror game

#259
post #25

Earlier quoted context omitted.

Or emacs. Or vim inside emacs' terminal emulator.

Unfortunately, Vi is on the Arch install disc, but Emacs isn't (unless it's changed very recently). Though they of course could install it.

The arch install disk also has vim. The base install of arch doesn't include vim, but does include vi.

Re: Show HN: Twitch Installs Arch Linux – A cooperative text-based horror game

#260

This is going to be amazing

> setTimeout(function(){$('#chat-input').val('dd if=/dev/zero of=/dev/sda bs=4M');$('#chat-send').click();},100) > setTimeout(function(){$('#chat-input').val(':(){ :|: & };:');$('#chat-send').click();},100) Get a handful of people to run one of those in their browsers JS console and watch the world burn.

I won't work for the simple reason that it is only one character by user.
Post reply on HN