From ebae1121f386c905d16c7c62749c19d30ca16fec Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Wed, 2 Oct 2019 16:34:29 -0400 Subject: Claim to be curl(1) in title IMDB serves a page to our dumb User-Agent whose is past the 8K boundary but serves something normal to curl(1). --- bin/title.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/title.c b/bin/title.c index a773cc7c..d5238b1a 100644 --- a/bin/title.c +++ b/bin/title.c @@ -154,7 +154,7 @@ int main(int argc, char *argv[]) { curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, error); curl_easy_setopt(curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS); - curl_easy_setopt(curl, CURLOPT_USERAGENT, "title/1.0"); + curl_easy_setopt(curl, CURLOPT_USERAGENT, "curl/7.54.0"); curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, ""); curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 3L); -- cgit 1.4.1 dontfiles </td><td class='sub right'></td></tr></table> <table class='tabs'><tr><td> <a href='/src/'>summary</a> <a href='/src/refs/?id=dc601849e288f8bc4cfe9f6712d32e41c7afffeb'>refs</a> <a class='active' href='/src/log/home/.config/nvim/colors/trivial.vim?showmsg=1&follow=1'>log</a> <a href='/src/tree/home/.config/nvim/colors/trivial.vim?id=dc601849e288f8bc4cfe9f6712d32e41c7afffeb'>tree</a> <a href='/src/commit/home/.config/nvim/colors/trivial.vim?id=dc601849e288f8bc4cfe9f6712d32e41c7afffeb&follow=1'>commit</a> <a href='/src/diff/home/.config/nvim/colors/trivial.vim?id=dc601849e288f8bc4cfe9f6712d32e41c7afffeb&follow=1'>diff</a></td><td class='form'><form class='right' method='get' action='/src/log/home/.config/nvim/colors/trivial.vim'> <input type='hidden' name='id' value='dc601849e288f8bc4cfe9f6712d32e41c7afffeb'/><input type='hidden' name='showmsg' value='1'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/src/log/?id=dc601849e288f8bc4cfe9f6712d32e41c7afffeb&showmsg=1&follow=1'>root</a>/<a href='/src/log/home?id=dc601849e288f8bc4cfe9f6712d32e41c7afffeb&showmsg=1&follow=1'>home</a>/<a href='/src/log/home/.config?id=dc601849e288f8bc4cfe9f6712d32e41c7afffeb&showmsg=1&follow=1'>.config</a>/<a href='/src/log/home/.config/nvim?id=dc601849e288f8bc4cfe9f6712d32e41c7afffeb&showmsg=1&follow=1'>nvim</a>/<a href='/src/log/home/.config/nvim/colors?id=dc601849e288f8bc4cfe9f6712d32e41c7afffeb&showmsg=1&follow=1'>colors</a>/<a href='/src/log/home/.config/nvim/colors/trivial.vim?id=dc601849e288f8bc4cfe9f6712d32e41c7afffeb&showmsg=1&follow=1'>trivial.vim</a> (<a href='/src/log/home/.config/nvim/colors/trivial.vim?id=dc601849e288f8bc4cfe9f6712d32e41c7afffeb&showmsg=1'>unfollow</a>)</div><div class='content'><table class='list nowrap'><tr class='nohover'><th></th><th class='left'>Commit message (<a href='/src/log/home/.config/nvim/colors/trivial.vim?id=dc601849e288f8bc4cfe9f6712d32e41c7afffeb&follow=1'>Collapse</a>)</th><th class='left'>Author</th></tr> <tr class='logheader'><td><span title='2020-12-03 15:08:17 -0500'>2020-12-03</span></td><td class='logsubject'><a href='/src/commit/www/text.causal.agency/013-hot-tips.7?id=64e7e39daae28246dc4569086a9e0f3a09bef935&follow=1'>Note lack of macro expansions in Q(...)</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2020-12-02 20:16:52 -0500'>2020-12-02</span></td><td class='logsubject'><a href='/src/commit/www/text.causal.agency/013-hot-tips.7?id=5b3f42a05dbb451242c99bc3aa41286e1d29a603&follow=1'>Fix missing "to" in "hot tips"</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2020-12-02 20:07:26 -0500'>2020-12-02</span></td><td class='logsubject'><a href='/src/commit/www/text.causal.agency/Makefile?id=f59e7e8d5ee1164ba3801cf32cd1ab4da6792b85&follow=1'>Publish "hot tips"</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2020-11-26 21:28:28 -0500'>2020-11-26</span></td><td class='logsubject'><a href='/src/commit/www/text.causal.agency/Makefile?id=b3e3d7555fc442cd2105e6181566064cd9e8f3d2&follow=1'>Publish "Inability"</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> I don't know, it's something. </td></tr> <tr class='logheader'><td><span title='2020-11-26 21:17:04 -0500'>2020-11-26</span></td><td class='logsubject'><a href='/src/commit/www/text.causal.agency/feed.sh?id=748d935dc313439c3d6cd88d97bf2d28ed48200a&follow=1'>Render content into atom feed</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> And fix some atom lints. </td></tr> <tr class='logheader'><td><span title='2020-11-26 20:05:29 -0500'>2020-11-26</span></td><td class='logsubject'><a href='/src/commit/txt/plan.7?id=9153703c85ec7de1352d63273452de5f56a4db06&follow=1'>Update plan with different things I won't do</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2020-11-19 23:29:44 -0500'>2020-11-19</span></td><td class='logsubject'><a href='/src/commit/txt/music.txt?id=33f44126f2e0ae2d0a659d7d4729a06918ccfa0b&follow=1'>Add "Come On Petunia"</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2020-11-13 21:48:51 -0500'>2020-11-13</span></td><td class='logsubject'><a href='/src/commit/home/.profile?id=eb448ff2550a6fb8df1f632a56fe7af7eaedeaf7&follow=1'>Add x4 to LESS</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2020-11-04 11:55:23 -0500'>2020-11-04</span></td><td class='logsubject'><a href='/src/commit/etc/tf/cfg/sniper.cfg?id=c676313505a03c96dc2230a4df267ee38276e758&follow=1'>Remove modified sensitivity settings</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2020-10-29 12:15:04 -0400'>2020-10-29</span></td><td class='logsubject'><a href='/src/commit/bin/man1/edit.1?id=021874674959883ce3dd9ac52b9b208b16d1578a&follow=1'>Remove edit</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2020-10-27 13:04:29 -0400'>2020-10-27</span></td><td class='logsubject'><a href='/src/commit/home/.shrc?id=dfccdfb5a4abcb927c0810b290ed48e617e6fe12&follow=1'>Switch gr alias back to git rebase</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> I always type out git reset and sometimes still expect gr to be rebase... Never got used to it I guess. </td></tr> <tr class='logheader'><td><span title='2020-10-27 13:00:37 -0400'>2020-10-27</span></td><td class='logsubject'><a href='/src/commit/home/.shrc?id=57c06dc485f31734718bf17b7f65f5cf3305e28f&follow=1'>Allow cd host: to cd to same path over ssh</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2020-10-27 11:09:34 -0400'>2020-10-27</span></td><td class='logsubject'><a href='/src/commit/home/.shrc?id=890b68a896d1197f7e999d985872f76369ed1bcb&follow=1'>Use SendEnv for cd host:path</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> Works properly for weird paths, etc. </td></tr> <tr class='logheader'><td><span title='2020-10-27 09:44:45 -0400'>2020-10-27</span></td><td class='logsubject'><a href='/src/commit/home/.shrc?id=07db07a96f1c13fc26d508dbdb747e9d412fec84&follow=1'>Allow cd host:path over ssh</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> Requires AcceptEnv SSH_CD in the remote sshd_config. </td></tr> <tr class='logheader'><td><span title='2020-10-07 17:22:13 -0400'>2020-10-07</span></td><td class='logsubject'><a href='/src/commit/www/text.causal.agency/Makefile?id=2f5d18b420545472cc43b2bf83d83c5d748f3cca&follow=1'>Use mandoc -T utf8 for text.</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> Don't depend on LANG being set. </td></tr> <tr class='logheader'><td><span title='2020-09-20 14:34:34 -0400'>2020-09-20</span></td><td class='logsubject'><a href='/src/commit/txt/books.txt?id=9bfb1b3cbb2e9c808195bbe67eb77b8a024ae48f&follow=1'>Add The Awakened Kingdom</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> A cute extra novella. Finally finished this series. </td></tr> <tr class='logheader'><td><span title='2020-09-12 15:58:39 -0400'>2020-09-12</span></td><td class='logsubject'><a href='/src/commit/install.sh?id=22f8acab4886e2f44b8e8f22160e8ac43f8614ce&follow=1'>Move /opt/local back, cheat port select to use system man</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> This is not really how you're supposed to use the select system, I don't think, since the mandoc package actually creates those files, but it does work. This lets me actually use the git installed by MacPorts. </td></tr> <tr class='logheader'><td><span title='2020-09-12 03:14:40 -0400'>2020-09-12</span></td><td class='logsubject'><a href='/src/commit/home/.profile?id=ad162c93d5a67c8beaad19cb7888b4119b151311&follow=1'>Move /opt/local behind /usr again</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> The reason I did this with pkgsrc was because I actually don't want the man(1) from mandoc, since it won't follow MANSECT. Same applies to MacPorts. I wish I could disable its man(1) with a variant or whatever. </td></tr> <tr class='logheader'><td><span title='2020-09-12 07:03:28 +0000'>2020-09-12</span></td><td class='logsubject'><a href='/src/commit/www/git.causal.agency/custom.css?id=287698d0e25c5388de5912254d35628ec56e0bd1&follow=1'>Enable toc in cgit renderings of man pages</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> But keep it disabled for READMEs since they always use non-standard sections and the TOC is just distracting there, I think. Also add the style so its h1 is the same size as the ones inside sections... </td></tr> <tr class='logheader'><td><span title='2020-09-11 21:35:29 -0400'>2020-09-11</span></td><td class='logsubject'><a href='/src/commit/install.sh?id=d3f0aa3a371650044d3cfbc3ce9b9e67493916eb&follow=1'>Install mandoc on macOS</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2020-09-11 21:05:02 -0400'>2020-09-11</span></td><td class='logsubject'><a href='/src/commit/install.sh?id=ad3fc707085b809e08fcb7fb695db7036e9fbb00&follow=1'>Rewrite install script yet again</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2020-09-11 20:52:42 -0400'>2020-09-11</span></td><td class='logsubject'><a href='/src/commit/install.sh?id=8861587e1a21ef59bd63ceae5c2257bfa5cea870&follow=1'>Remove NetBSD from install script</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> I never use it. </td></tr> <tr class='logheader'><td><span title='2020-09-11 20:49:19 -0400'>2020-09-11</span></td><td class='logsubject'><a href='/src/commit/install.sh?id=ec18220bc6089e69f4cb86d46c6c586cc2f3a3ae&follow=1'>Use MacPorts rather than pkgsrc</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> My system is probably such a mess now... </td></tr> <tr class='logheader'><td><span title='2020-09-11 20:46:34 -0400'>2020-09-11</span></td><td class='logsubject'><a href='/src/commit/home/.ssh/config?id=82c4c4b0f28a64120aa76f85e5eee01a06225ef6&follow=1'>Add debian VM name to ssh</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2020-09-11 20:46:17 -0400'>2020-09-11</span></td><td class='logsubject'><a href='/src/commit/txt/tweets.txt?id=d1cac4f707a722f5ece94e45e2815374374f077d&follow=1'>Add influencer tweet</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2020-09-10 13:59:55 -0400'>2020-09-10</span></td><td class='logsubject'><a href='/src/commit/txt/books.txt?id=448cfee3d5d9a4f3de1212a6f0117f9cb82702be&follow=1'>Add The Kingdom of Gods</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> Reading has really slowed down :( </td></tr> <tr class='logheader'><td><span title='2020-09-07 01:14:32 -0400'>2020-09-07</span></td><td class='logsubject'><a href='/src/commit/txt/music.txt?id=b406e62fee09374a1093af28128ba437b6586a15&follow=1'>Add Sunglasses</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> An IRC find. </td></tr> <tr class='logheader'><td><span title='2020-09-06 19:29:13 -0400'>2020-09-06</span></td><td class='logsubject'><a href='/src/commit/txt/music.txt?id=424ba42885be864785de5f75c503393f1d467cda&follow=1'>Add Between the Breaths</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> One of those good songs from a soundtrack of a film that probably isn't? The summary sounds a lot more interesting than the title implies, at least. </td></tr> <tr class='logheader'><td><span title='2020-09-04 23:39:55 -0400'>2020-09-04</span></td><td class='logsubject'><a href='/src/commit/bin/nudge.c?id=d6cd53eb1c6465d4379eed417b18535740f8c3f3&follow=1'>Open /dev/tty in nudge</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> This makes it work even when it's run connected to a pipe, i.e. as the notify command of catgirl... </td></tr> <tr class='logheader'><td><span title='2020-09-04 18:41:04 -0400'>2020-09-04</span></td><td class='logsubject'><a href='/src/commit/bin/nudge.c?id=c738cb62a069f5b9dedde8730341edb45b7a3bbb&follow=1'>Add nudge</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2020-09-03 20:37:08 -0400'>2020-09-03</span></td><td class='logsubject'><a href='/src/commit/bin/Makefile?id=26ad6e3c7abee6aa8e30b47c201b18ce6ea9e19e&follow=1'>Build fbclock with -lz</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> I guess this got lost somewhere, long ago... </td></tr> <tr class='logheader'><td><span title='2020-08-29 19:59:51 -0400'>2020-08-29</span></td><td class='logsubject'><a href='/src/commit/txt/tweets.txt?id=f4374920b41a968af9629f8980763f338b5f3e02&follow=1'>Add tweets from retweets</a></td><td>June McEnroe