1,395 karma · joined Dec 14, 2016 (9y ago) · 720 submissions
comment 3y ago · link · parent
comment 3y ago · link · parent
$ time curl -s -b cookies.txt -c cookies.txt -A "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0" -e ";auto" -L https://t.co/DzIiCFp7Ti
[t.co meta refresh page src]
real 0m4.635s
user 0m0.004s
sys 0m0.008s
$ time curl -b cookies.txt -c cookies.txt -A "wget/1.23" -e ";auto" -L https://t.co/DzIiCFp7Ti curl: (7)
Failed to connect to www.threads.net port 443: Connection refused
real 0m4.635s
user 0m0.011s
sys 0m0.005s
$ time curl -b cookies.txt -c cookies.txt -e ";auto" -L https://t.co/DzIiCFp7Ti curl: (7)
Failed to connect to www.threads.net port 443 Connection refused
real 0m0.129s
user 0m0.000s
sys 0m0.013s
The failed to connects are threads.net likely blocking those user agents but the timing is there which is different than the first UA attempt.comment 3y ago · link · parent
Here's a simpler test I think replicates what I am indicating in GP comment, with regards to cookie handling:
Not passing a cookie to the next stage; pure GET request:
$ time curl -s -A "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0" -e ";auto" -L https://t.co/4fs609qwWt > nocookie.html
real 0m4.916s
user 0m0.016s
sys 0m0.018s
Using `-b` to pass the cookies _(same command as above, just adding `-b`)_ $ time curl -s -b -A "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0" -e ";auto" -L https://t.co/4fs609qwWt > withcookie.html
real 0m1.995s
user 0m0.083s
sys 0m0.026s
Look at the differences in the resulting files for 'with' and 'no' cookie. One redirect works in a timely manner. The other takes the ~4-5 seconds to redirect.comment 3y ago · link · parent
man curl
-b, --cookie <data|filename>
(HTTP) Pass the data to the HTTP server in the Cookie header. It is supposedly the data previously received from the server in a "Set-Cookie:" line.
----Add that option to your curl tests.
---
$ time curl -s -b -A "curl/8.2.1" -e ";auto" -L https://t.co/4fs609qwWt -o /dev/null | sha256sum
eb9996199e81c3b966fa3d2e98e126516dfdd31f214410317f5bdcc3b241b6a2 -
real 0m1.245s
user 0m0.087s
sys 0m0.034s
---
$ time curl -s -b -e ";auto" -L https://t.co/4fs609qwWt -o /dev/null | sha256sum
eb9996199e81c3b966fa3d2e98e126516dfdd31f214410317f5bdcc3b241b6a2 -
real 0m1.265s
user 0m0.103s
sys 0m0.023s
---
$ time curl -s -b -A "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0" -e ";auto" -L https://t.co/4fs609qwWt -o /dev/null | sha256sum
eb9996199e81c3b966fa3d2e98e126516dfdd31f214410317f5bdcc3b241b6a2 -
real 0m1.254s
user 0m0.100s
sys 0m0.018
---comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
That's currently showing as three asterisks on Harmonic app. But loading it up in Firefox mobile, correctly shows the content.
comment 3y ago · link · parent
When I run it during the work day I'll generally work in the same room just to keep an eye on it. Some days that's not worth it. Some days it's -20F out and totally worth it.
comment 3y ago · link · parent
At this point, I've done the work, documented a fix, written about the problem and the fix in three different places, and then talked in two meetings about the problems and the fix. Why the shit do I have to relive this problem 5 times just to make a manager happy with "staying in sync". I spend more time TALKING about the problem than it took to fix usually. The only thing I should need to tell my manager is when I can't meet the deadline and WHY. Not explaining and repeating my work 5 times.
It's beyond inefficient, it's not a matter of allocating resources, it's an asinine waste of time.
comment 3y ago · link · parent
If you find the premise of Dwarf Fortress cool, but the gameplay a bit of a turn off/drudgery, try RimWorld.