|
hbag posted:is that some kind of tool that abstracts this torment so i just tell it what i want it to do and then it generates the yaml poo poo for me azure classic pipelines are more gui driven. its also free for teams <=5 people. fart simpson posted:azure is microsoft aws in general yeah, but w/ azure devops specifically is more cloud hosted team foundation server. its separate from the rest of azure, but it lets you hook into azure for auth and for compute if you need it.
|
# ? Jun 1, 2021 16:50 |
|
|
# ? Jun 9, 2024 05:06 |
|
hmmmmm is it ust me or does that syntax look fine pre:userProfileRaw = requests.post(f'https://somethingawful.com/member.php', data={'action':'getinfo','userid':str(horribleJerk)}, headers=headers) userProfile = BeautifulSoup(userProfileRaw.text, 'html.parser') username = str(userProfile.find('td', class="info"))
|
# ? Jun 1, 2021 18:45 |
|
fart simpson posted:thank you for merging my pull request, op i request that you pull your weight around here and stop posting like poop from a butt
|
# ? Jun 1, 2021 19:34 |
|
alright so id appreciate some help on this one trying to get the script to grab someone's username from their profile, in case their rap sheet is empty (as if its empty it cant find their name from it, obviously) but uh when i try, it's just doing this poo poo: here's the file, the relevant code's around lines 70-80
|
# ? Jun 1, 2021 20:11 |
|
the issue is, for whatever reason, when i send the request, it's just returning the loving frontpage, not the profile because im assuming the profile is generated after the page actually loads so how the gently caress
|
# ? Jun 1, 2021 20:24 |
|
hbag posted:the issue is, for whatever reason, when i send the request, it's just returning the loving frontpage, not the profile is it logged in
|
# ? Jun 1, 2021 20:24 |
|
Captain Foo posted:is it logged in oh gently caress me dead great so now i need to figure out how to give it my login cookies (yes, the forums use a loving hashed password cookie or some poo poo) without exposing that to literally anyone who clicks the repo
|
# ? Jun 1, 2021 20:26 |
|
i figured out how to send the logged-in token with the yosbbs -> forums interface back in the day. its pretty straightforward iirc
|
# ? Jun 1, 2021 20:30 |
|
no seriously top shelf authentication Jonny 290 posted:i figured out how to send the logged-in token with the yosbbs -> forums interface back in the day. its pretty straightforward iirc well yeah i know how to do it but the issue with that is it would leave my bbpassword cookie completely exposed to everyone and i dont really want that
|
# ? Jun 1, 2021 20:33 |
|
hbag posted:no seriously significant portions of the forums code are older than you are
|
# ? Jun 1, 2021 20:34 |
|
Kazinsal posted:significant portions of the forums code are older than you are
|
# ? Jun 1, 2021 20:37 |
|
yo how do i find my own userid to generate one of these puppies? also op have you ever considered enshrining the data on the blockchain????
|
# ? Jun 1, 2021 20:45 |
|
Fuzzy Mammal posted:yo how do i find my own userid to generate one of these puppies? copy the thing after "userid=" on your profile
|
# ? Jun 1, 2021 20:46 |
|
Edge case testing!
|
# ? Jun 1, 2021 21:45 |
|
FalseNegative posted:
yes if you read the past few posts youd see thats exactly why im trying to loving scrape the profile page but, lol, i need to log in the flask app for that but to do that id need to expose my auth cookies to loving everyone and nobody has provided any info on how else to do it
|
# ? Jun 1, 2021 21:50 |
|
hbag posted:no seriously exposed to who? if you're connecting via HTTPS to somethingawful to get the rap sheet or whatever, only the domain name is sent in the clear. it negotiates TLS and only then does it send the /rapsheet.html?hbags_cookie=d3adb33f path
|
# ? Jun 1, 2021 22:01 |
|
lol the new guy has a blog thread that's neat. gl hbag edit: you're not tryna scrape lepers colony are you? i wrote some PHP for that a while ago
|
# ? Jun 1, 2021 22:18 |
|
FalseNegative posted:
hello fellow no-probe haver. there are dozens of us. dozens!
|
# ? Jun 1, 2021 22:29 |
|
Jonny 290 posted:exposed to who? if you're connecting via HTTPS to somethingawful to get the rap sheet or whatever, only the domain name is sent in the clear. it negotiates TLS and only then does it send the /rapsheet.html?hbags_cookie=d3adb33f path exposed to literally anyone who clicks on the repo considering the fact it'll be in the script Pile Of Garbage posted:lol the new guy has a blog thread that's neat. gl hbag no i can scrape leper's colony just fine, im having trouble scraping PROFILES - which i need to log in for, which i cant do without sending it my auth cookies (obviously), which i dont want to do because if i put that in the script literally anyone who looks at the repo could just stick that in and do poo poo on the forums as me
|
# ? Jun 1, 2021 22:32 |
|
Oh yeah you don't store creds in code. use an environment variable
|
# ? Jun 1, 2021 22:35 |
|
Jonny 290 posted:Oh yeah you don't store creds in code. use an environment variable uh right how i can set environment variables in the pipeline just fine but im not sure how the script would access that
|
# ? Jun 1, 2021 22:36 |
|
wait hmm i will work on this more when im not freaking out due to a lack of meds
|
# ? Jun 1, 2021 22:36 |
|
put your creds in a file located outside your source control and load it into your config at runtime. or use environmental vars thats fine too
|
# ? Jun 1, 2021 22:37 |
|
yeah what jony and shaggar said. make injection of the creds (cookie) a part of your ci/cd pipeline or w/e edit: my garbage thing, RSS feed for leper's colony, made several years ago https://pileofgarbage.net/leperscolonyrss/ Pile Of Garbage fucked around with this message at 23:00 on Jun 1, 2021 |
# ? Jun 1, 2021 22:57 |
|
Shaggar posted:put your creds in a file located outside your source control and load it into your config at runtime. how do i load it into the config at runtime if its deployed via CI
|
# ? Jun 1, 2021 23:37 |
|
idk about bit bucket but azure devops has a vault thing for creds and you can have your deployment pipeline reference them when configuring the destination. then in the deployment pipeline add them to the config file via config transform or configure the environmental variables on the destination host. otherwise configure the sensitive stuff on the host separately.
|
# ? Jun 1, 2021 23:40 |
|
you create a config file with environment variables and can set the variables to those credentials in the CI e: whoops beaten by a better post (all posts are better than mine)
|
# ? Jun 1, 2021 23:42 |
|
Captain Foo posted:is it logged in i miss poo poo like this all the time at work or w/e and it will never not be funny to me.
|
# ? Jun 1, 2021 23:43 |
|
i did a batch of parcel updates the other day but for the life of me I couldn’t get the current assessing data to join to the new features and I’m like “the fuckjng sql view query is messed up somehow! jesus what stupid rear end in a top hat set this up??” and i even roped one of my colleagues in to help me troubleshoot it and oops! turns out that when i numbered the new parcels i used the municipal prefix from my old job lol.
|
# ? Jun 1, 2021 23:46 |
|
the newer .net core hosting model lets you build a single config from multiple sources including a base config, environment specific configs, environmental variables, external secrets files, etc... i usually put secrets in a local project specific user secrets config and then when i deploy i transform the base config file to add the secrets section using data from the secrets storage in azure devops.
|
# ? Jun 1, 2021 23:46 |
|
hbag posted:how do i load it into the config at runtime if its deployed via CI echo $PASSWD > ~/my.config if you're actually using travis or jenkins (lol) then there should be poo poo for pushing env vars and thats usually easier to deal with in that case
|
# ? Jun 1, 2021 23:58 |
|
rotor posted:travis or jenkins who the f are these dudes even?
|
# ? Jun 2, 2021 00:03 |
|
rotor posted:echo $PASSWD > ~/my.config right ok this took me a second to wrap my head around in bitbucket if i set a variable in the pipelines to "secured" that means nobody can read it or edit it after i set it right
|
# ? Jun 2, 2021 00:05 |
|
President Beep posted:who the f are these dudes even? i fuckin hate em both
|
# ? Jun 2, 2021 00:09 |
|
hbag posted:right dunno, but my tip to you is that 90% of computer touching is knowing how to effectively google poo poo and reading the results seriously if users were capable of realizing that they can google "cisco ip phone registration rejected", choose the links from cisco's website, and read through the actually well written documentation I wouldn't have a job, but apparently the average person is a loving idiot, so I can pay my rent
|
# ? Jun 2, 2021 00:25 |
|
Kazinsal posted:dunno, but my tip to you is that 90% of computer touching is knowing how to effectively google poo poo and reading the results wouldnt even need to manually pick oput the linsk from cisco
|
# ? Jun 2, 2021 00:41 |
|
Kazinsal posted:dunno, but my tip to you is that 90% of computer touching is knowing how to effectively google poo poo and reading the results your users dont know they have a cisco ip phone. its just "the phone"
|
# ? Jun 2, 2021 01:48 |
|
i use jabber op
|
# ? Jun 2, 2021 01:59 |
|
Smythe posted:your users dont know they have a cisco ip phone. its just "the phone" not only do they not know. they don’t want to know and don’t care
|
# ? Jun 2, 2021 02:03 |
|
|
# ? Jun 9, 2024 05:06 |
|
cisco stu here with some good news about VOIP adoption trends
|
# ? Jun 2, 2021 02:05 |