35 lines
693 B
Markdown
35 lines
693 B
Markdown
# nos
|
|
|
|
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
|
|
|
|
::$ ./run
|
|
|
|
If you comment out the post API call and remove the link regex,
|
|
|
|
this bot can get you a list of all links posted,
|
|
|
|
as well as which are text-posts and unauthorized (e.g. deleted)
|
|
|
|
Instead of
|
|
|
|
::$ ./run
|
|
|
|
just
|
|
|
|
::$ nohup ./run &
|
|
|
|
and exit the terminal. All outputted code will go into nohup.out and you can close the ssh session.
|
|
|
|
::$ ps -e | grep run
|
|
|
|
to get the process id to cancel it
|
|
|
|
::$ kill ####
|
|
|
|
15000 post id checks hardcoded in the while loop, just in case |