(DM) Jason NY & Tyler SD
RocketChat ID: 5RFw79kEsrz255mpsknQHoBXHDucDnvidj
104 total messages. Viewing 100 per page.
Page 1/2
| Next
I am updating the interviewer schedule, what days of the week would you like to commit to being online for interviews?
Barring this week (I'll be out Thursday), I can commit to Monday - Thursday
Gotcha thanks
Got a POC going, I'll send you a link you can pull the test CSV from soon enough
Needs to be fleshed out, but here's the gist:
https://1b24-184-83-81-75.ngrok.io/rocket-chat/hook - is the hook that RC will POST the activism messages to
https://1b24-184-83-81-75.ngrok.io/report - will download the CSV with the report; formatted as "Activist", "State", "City", "Location"
Oh, and auth is
user: activist
pass: activistpassword
I'll leave it up until you get eyes on it, and I'll move forward with actually parsing and regex'ing the message text once I get the go-ahead from you
Damn that was quick
Checking it out now
Should I try sending a POST request to it?
You can but you'll just get a 200 for now
Gotcha
This will definitely work for what we're trying to do
Roger that, I'll have something more complete tonight. I swapped to Go because I prefer it over Python for reasons I won't get into, so there's a couple of options for how it can be packaged up for use:
1. Complete binary; compile targeting the server, send binary to server
2. Zip project and run with Docker
I like 2 more because you'll have the source to build and can see what's in it, but it will be more resource intensive since it will be built on the server.
It'll only need to run on the receiving server right?
Correct
Docker should be fine
RT
Retweet?
lmao "Roger That"
Rodger Dodger, wilco.
o7 groyper commander
Got the parsing working extremely well (until one of the guys has a post with a wild format), need to add clauses for handling multiple posts from the same location and when there's more than one guy involved (or not if that wouldn't be important)
It's not important
Might be best to just be City and State so that it is easier to export and turn into a map
Alright, full project is at https://mega.nz/folder/KhlAgDRT#HhQr2eal6-BaR5T4AOASXQ
docker-compose build
and then docker-compose up
will bring it up listening on port 1488; default user/password (for report) and RC token can be changed through docker-compose.yml
. Let me know if anything is unclear or would want to be changed.
I am extremely impressed with you bro, seems like you thought of every possibility with this code
Gonna tell Thomas you should be on the tech team
Hope it serves well! Thank you, I appreciate that.
When I try to authenticate at /report it just resets the page. Any idea what would cause that?
log11.png
Negative; are you auth'ing through the browser or curl?
Browser
I changed the password in both docker-compose and main.go
To the same one?
Yes
Gotcha, I hate to say it but can you try a different browser?
Sure, gotta download one 1 sec
LOL thank you. Shouldn't be an issue but I'm wondering why the page resets when you try to auth, it should either reprompt you or give you the file.
It reprompts
Oh, then it's a creds issue; you're using the creds in the dc.yml file?
Yessir
Password has special characters in it, could that be the problem?
I wouldn't think so, but maybe
Worst case scenario, add log.Info(os.Getenv("USER"), os.Getenv("PASS"), user, pass)
before the server starts to see where the disconnect is between the env creds and used creds
Then rebuild of course.
I'm just gonna go pajeet mode and turn VM off and then back on again
Wouldn't be surprised if that fixes it
RT, keep me posted
Okay, auth problem solved. I must not have set up the integration correctly though as it hasn't received my POSTs.
The hook link would be 127.0.0.1:1488/rocket-chat/hook right
Is RC in docker?
Yes
Ok, then you'll want to get your machine IP and replace localhost with that
Got it
In the future that can be streamlined so that the containers have overlayed networking and can talk to each other directly without having to do that.
On production it'll be from one server to another rather than local communication
so it should be fine
RT
Has the script for the integration changed?
Btw if you're at work or something we can troubleshoot this later tonight just lmk
Barely at work, at a stand-up meeting right now. Yeah, the script has changed, you can just disable it altogether.
Long story short the message text is part of the attachment and not the 'msg' text
Is the new script included in the zip you sent me?
No no no, I mean you can disable the script in the integration, there isn't one
Okay, I'm gonna send you a screenshot of the integration and of the docker-compose since it isn't receiving my POSTs atm
Gotcha
int3.png
http instead of https in the URL. And when you got to the http://10.0.2.15:1515/report that shows up in the logs, right?
OH
It does show that in logs
Changing to http fixed it lol
And did you can the port in the source too? Because otherwise I'd say change the port bind from "1515:1515" to "1515:1488"
Wicked
I did change it in source as well
Nice
Okay amazing, working perfectly
Thanks so much for your hard work on this, glad to finally have this automated
When I'm online tonight if you're available I'll screenshare with you while I install this on production just to be extra careful that I don't break anything
Of course! I'll be available tonight and we'll get it setup.
Perfect
Thomas wants to wait until he's back from the demo so we'll put this on the backburner for about a week
Understood.
Hook me up with the Cryptpad spreadsheet Patriot
Send me a contact request here:
Sent
Okay, I added you to the sheet. Check the bell icon for the notif.
RT
Good to go, thank you!
Swag
Quick programming question for you. Where would I start if I wanted to make an automation script to update some software on linux 1 release at a time?
Like
systemctl stop software
rm /etc/software
curl website.com/software/software-version-1.2.x (and so on)
npm install software-version-1.2.x
chown -R software-version-1.2.x
systemctl start software
and each time it'd be version 1.2.3, then 1.2.4 and so on
nvm, figured it out
lmao, I left it read as I got into interviews
No worries, was easy to do with bash script and an array
104 total messages. Viewing 100 per page.
Page 1/2
| Next