A more convenient way to see PRs open across projects
Similar to this Raku post, I want to see what I can accomplish in Node without any (or minimal) dependencies, other than the github cli.
In bash you should be able to run nohup ./index.js or disown the process.
In zsh, you need to disown it, nohup doesn't cut it. You can run it with ./index.js &! where &! is a shorthand for "background and disown", which is pretty cool!
The longer version, that should work in both, is to disown
./index.js # start the process
# send SIGSTP, ^Z to suspend
bg %1 # run in background
disown %1 # disown the process
exit # close the terminal
Now that it's in the background, how do you stop it? With a little job control. First, you can find it with
ps -ef | grep "[i]ndex"
Assuming this returns the single process we want, we can kill it with the pid number, which should be the second output column (and you can double check with ps -ef | head -n1, which will give you the column header)
kill -2 <pid> # send SIGINT
If you want one command to kill it (which shouldn't have any output):
ps -ef | grep "[i]ndex" | awk '{print $2}' | xargs kill -2
- Search Queries
- running
gh help formattingshows a whole array of Go templating I can do to get more information from my existing queries
Potential dependencies:
- express for a server
- nunjucks for templating
- kdl for configuration (I don't plan to store a database)