nos/README.md

35 lines
693 B
Markdown
Raw Permalink Normal View History

2023-09-04 19:25:16 +00:00
# nos
2023-09-04 20:11:05 +00:00
no /s/ reddit links
I'll hand code an ecommerce in wasm before I learn python
All standard utilities that come pre-installed on debian except jq (and maybe curl?)
::$ chmod +x run getlink linkloc reply_post
2023-09-04 20:12:05 +00:00
2023-09-04 20:11:05 +00:00
::$ ./run
If you comment out the post API call and remove the link regex,
2023-09-04 20:12:05 +00:00
2023-09-04 20:11:05 +00:00
this bot can get you a list of all links posted,
2023-09-04 20:12:05 +00:00
2023-09-04 20:11:05 +00:00
as well as which are text-posts and unauthorized (e.g. deleted)
Instead of
2023-09-04 20:12:05 +00:00
2023-09-04 20:11:05 +00:00
::$ ./run
2023-09-04 20:12:05 +00:00
2023-09-04 20:11:05 +00:00
just
2023-09-04 20:12:05 +00:00
2023-09-04 20:11:05 +00:00
::$ nohup ./run &
2023-09-04 20:12:05 +00:00
2023-09-04 20:11:05 +00:00
and exit the terminal. All outputted code will go into nohup.out and you can close the ssh session.
2023-09-04 20:12:05 +00:00
2023-09-04 20:11:05 +00:00
::$ ps -e | grep run
2023-09-04 20:12:05 +00:00
2023-09-04 20:11:05 +00:00
to get the process id to cancel it
2023-09-04 20:12:05 +00:00
2023-09-04 20:11:05 +00:00
::$ kill ####
15000 post id checks hardcoded in the while loop, just in case