Skip to main content

web/README.md

1# web
3These scripts are for interacting with stuff on the web.
5## The individual scripts
7<!-- [[[cog
9# This adds the root of the repo to the PATH, which has cog_helpers.py
10from os.path import abspath, dirname
11import sys
13sys.path.append(abspath(dirname(dirname("."))))
15import cog_helpers
17folder_name = "web"
19scripts = [
20 {
21 "name": "caddyfmt",
22 "description": "Format all of my Caddyfiles, which are config files for my web server."
23 },
24 {
25 "name": "imdown",
26 "description": """
27 I run this when my Internet connection goes down, and it makes an audible "ping" when it comes back up.
28 """
29 },
30 {
31 "name": "scrape_really_useful_boxes.py",
32 "description": """
33 scrape the Really Useful Boxes product catalogue, so I can search for boxes in ways their website doesn't allow – in particular, by dimensions, so I can find boxes that fit into specific spaces.
34 """
35 },
36 {
37 "name": "yt-dlp.py",
38 "description": """
39 this is a wrapper around <a href="https://github.com/yt-dlp/yt-dlp">yt-dlp</a> that does parallel downloads of videos in playlists.
40 """
41 },
44cog_helpers.create_description_table(folder_name=folder_name, scripts=scripts)
46]]]-->
47<dl>
48 <dt>
49 <a href="https://github.com/alexwlchan/scripts/blob/main/web/caddyfmt">
50 <code>caddyfmt</code>
51 </a>
52 </dt>
53 <dd>
54 Format all of my Caddyfiles, which are config files for my web server.
55 </dd>
57 <dt>
58 <a href="https://github.com/alexwlchan/scripts/blob/main/web/imdown">
59 <code>imdown</code>
60 </a>
61 </dt>
62 <dd>
63 I run this when my Internet connection goes down, and it makes an audible "ping" when it comes back up.
64 </dd>
66 <dt>
67 <a href="https://github.com/alexwlchan/scripts/blob/main/web/scrape_really_useful_boxes.py">
68 <code>scrape_really_useful_boxes.py</code>
69 </a>
70 </dt>
71 <dd>
72 scrape the Really Useful Boxes product catalogue, so I can search for boxes in ways their website doesn't allow – in particular, by dimensions, so I can find boxes that fit into specific spaces.
73 </dd>
75 <dt>
76 <a href="https://github.com/alexwlchan/scripts/blob/main/web/yt-dlp.py">
77 <code>yt-dlp.py</code>
78 </a>
79 </dt>
80 <dd>
81 this is a wrapper around <a href="https://github.com/yt-dlp/yt-dlp">yt-dlp</a> that does parallel downloads of videos in playlists.
82 </dd>
83</dl>
84<!-- [[[end]]] (sum: 2K2olXGTrf) -->