a bunch of random updates that i hadn't committed

- tilde.json explorer
- resumes page
This commit is contained in:
Ben Harris 2021-01-05 12:47:38 -05:00
parent 7cad13636d
commit 6ba55d31ea
11 changed files with 90 additions and 55 deletions

View File

@ -1,48 +0,0 @@
Byobu is a suite of enhancements to tmux, as a command line
tool providing live system status, dynamic window management,
and some convenient keybindings:
F1 * Used by X11 *
Shift-F1 Display this help
F2 Create a new window
Shift-F2 Create a horizontal split
Ctrl-F2 Create a vertical split
Ctrl-Shift-F2 Create a new session
F3/F4 Move focus among windows
Alt-Left/Right Move focus among windows
Alt-Up/Down Move focus among sessions
Shift-Left/Right/Up/Down Move focus among splits
Shift-F3/F4 Move focus among splits
Ctrl-F3/F4 Move a split
Ctrl-Shift-F3/F4 Move a window
Shift-Alt-Left/Right/Up/Down Resize a split
F5 Reload profile, refresh status
Alt-F5 Toggle UTF-8 support, refresh status
Shift-F5 Toggle through status lines
Ctrl-F5 Reconnect ssh/gpg/dbus sockets
Ctrl-Shift-F5 Change status bar's color randomly
F6 Detach session and then logout
Shift-F6 Detach session and do not logout
Alt-F6 Detach all clients but yourself
Ctrl-F6 Kill split in focus
F7 Enter scrollback history
Alt-PageUp/PageDown Enter and move through scrollback
Shift-F7 Save history to $BYOBU_RUN_DIR/printscreen
F8 Rename the current window
Ctrl-F8 Rename the current session
Shift-F8 Toggle through split arrangements
Alt-Shift-F8 Restore a split-pane layout
Ctrl-Shift-F8 Save the current split-pane layout
F9 Launch byobu-config window
Ctrl-F9 Enter command and run in all windows
Shift-F9 Enter command and run in all splits
Alt-F9 Toggle sending keyboard input to all splits
F10 * Used by X11 *
F11 * Used by X11 *
Alt-F11 Expand split to a full window
Shift-F11 Zoom into a split, zoom out of a split
Ctrl-F11 Join window into a vertical split
F12 Escape sequence
Shift-F12 Toggle on/off Byobu's keybindings
Alt-F12 Toggle on/off Byobu's mouse support
Ctrl-Shift-F12 Mondrian squares

1
byobu.txt Symbolic link
View File

@ -0,0 +1 @@
/usr/share/doc/byobu/help.tmux.txt

View File

@ -4,9 +4,18 @@ m=$(printf %s "$QUERY_STRING" | sed -e "s/m=//" -e "s/+/ /g")
manfile=$(man -w $m)
if [ -z "$m" ]; then
printf "Content-type: text/plain\r\n"
printf "Content-type: text/html\r\n"
printf "\r\n"
printf "provide a manpage to find in the ?m= parameter\n"
printf "<!DOCTYPE html>\r\n"
printf "<html>\r\n"
printf "<head><title>man2html</title></head>\r\n"
printf "<body>\r\n"
printf '<form method="GET">\r\n'
printf "<label>manpage search</label>\r\n"
printf '<input autofocus name="m" type="text">\r\n'
printf "</form>\r\n"
printf "</body>\r\n"
printf "</html>\r\n"
exit 1
fi

View File

@ -0,0 +1 @@
generate.sh

View File

@ -0,0 +1,11 @@
<svg width="327.68" height="327.68" version="1.1" viewBox="0 0 327.68 327.68" xmlns="http://www.w3.org/2000/svg">
<g transform="translate(-.030902 -.53835)" stroke-width=".32">
<path d="m237.44 235.75c0-0.0484 1.116-1.1644 2.48-2.48l2.48-2.392-2.392 2.48c-2.2216 2.3034-2.568 2.626-2.568 2.392zm-10.4-15.272c1.3997-1.408 2.617-2.56 2.705-2.56s-0.98525 1.152-2.385 2.56-2.617 2.56-2.705 2.56 0.98524-1.152 2.385-2.56zm-34.14-36.059c0.231-0.0924 0.50701-0.0811 0.61334 0.0252 0.10633 0.10633-0.0827 0.18196-0.42 0.16807-0.37279-0.0154-0.44861-0.0912-0.19334-0.19333zm10.88 0c0.231-0.0924 0.50701-0.0811 0.61334 0.0252 0.10633 0.10633-0.0827 0.18196-0.42 0.16807-0.37279-0.0154-0.44861-0.0912-0.19334-0.19333zm31.74-13.342c0-0.0665 0.252-0.31845 0.56-0.56 0.50754-0.39804 0.51886-0.38672 0.12082 0.12081-0.41804 0.53304-0.68082 0.70256-0.68082 0.43919zm-25.66-5.8578c0.231-0.0924 0.50701-0.0811 0.61334 0.0252 0.10633 0.10633-0.0827 0.18196-0.42 0.16807-0.37279-0.0154-0.44861-0.0912-0.19334-0.19333zm11.52 0c0.231-0.0924 0.507-0.0811 0.61334 0.0252 0.10633 0.10633-0.0827 0.18196-0.42 0.16807-0.37279-0.0154-0.44861-0.0912-0.19334-0.19333zm19.9 0.0978c0-0.0664 0.252-0.31845 0.56-0.56 0.50754-0.39804 0.51886-0.38672 0.12082 0.12081-0.41804 0.53304-0.68082 0.70256-0.68082 0.43919zm-35.26-0.41778c0.231-0.0924 0.50701-0.0811 0.61334 0.0252 0.10633 0.10633-0.0827 0.18196-0.42 0.16807-0.37279-0.0154-0.44861-0.0912-0.19334-0.19333zm-121.7-1.3814c0.31856-0.352 0.65119-0.64 0.73919-0.64s-0.10064 0.288-0.41919 0.64c-0.31856 0.35199-0.65119 0.63999-0.73919 0.63999s0.10064-0.288 0.41919-0.63999zm34.02-1.1786c0.23099-0.0924 0.507-0.0811 0.61333 0.0252 0.10633 0.10633-0.0827 0.18196-0.42 0.16807-0.37278-0.0154-0.44861-0.0912-0.19333-0.19333zm-10.26-0.32724c0.396-0.0763 1.044-0.0763 1.44 0s0.072 0.13868-0.72 0.13868-1.116-0.0624-0.72-0.13868zm4.16 0c0.396-0.0763 1.044-0.0763 1.44 0s0.072 0.13868-0.72 0.13868-1.116-0.0624-0.72-0.13868zm-24.24-2.135c0-0.0665 0.252-0.31845 0.56-0.56 0.50754-0.39804 0.51886-0.38672 0.12082 0.12082-0.41804 0.53304-0.68082 0.70255-0.68082 0.43918zm33.22-14.498c0.23099-0.0924 0.507-0.0811 0.61333 0.0252 0.10633 0.10633-0.0827 0.18196-0.42 0.16807-0.37278-0.0154-0.44861-0.0912-0.19333-0.19333zm11.2 0c0.23099-0.0924 0.507-0.0811 0.61333 0.0252 0.10633 0.10633-0.0827 0.18196-0.42 0.16807-0.37278-0.0154-0.44861-0.0912-0.19333-0.19333zm94.46-39.621c-1.3112-1.32-2.312-2.4-2.224-2.4s1.2328 1.08 2.544 2.4 2.312 2.4 2.224 2.4-1.2328-1.08-2.544-2.4zm12.631-13.04-2.2314-2.32 2.32 2.2314c2.1548 2.0725 2.4661 2.4086 2.2314 2.4086-0.0487 0-1.0927-1.044-2.32-2.32z" fill="#d8e3cd"/>
<path d="m60.319 206.64-30.079-30.16 30.16 30.079c16.588 16.544 30.16 30.116 30.16 30.16 0 0.0443-0.03629 0.0806-0.08064 0.0806s-13.616-13.572-30.16-30.16zm12.8-12.72-30.079-30.08 60.479-60.32-60.158 60.32 30.079 30.08c16.543 16.544 30.007 30.08 29.919 30.08s-13.696-13.536-30.239-30.08zm162.08 18.4c3.0762-3.08 5.6652-5.6 5.7532-5.6s-2.3569 2.52-5.4332 5.6c-3.0762 3.08-5.6651 5.6-5.7531 5.6s2.3569-2.52 5.4331-5.6zm59.36-34.08c1.2226-1.232 2.2948-2.24 2.3828-2.24s-0.84028 1.008-2.0628 2.24-2.2948 2.24-2.3828 2.24 0.84027-1.008 2.0628-2.24zm-180.06-16.219c0.23099-0.0924 0.507-0.0811 0.61333 0.0252 0.10633 0.10633-0.0827 0.18196-0.42 0.16807-0.37278-0.0154-0.44861-0.0912-0.19333-0.19333zm-27.46-1.1822c0-0.0665 0.252-0.31845 0.56-0.56 0.50754-0.39804 0.51886-0.38672 0.12082 0.12082-0.41804 0.53304-0.68082 0.70255-0.68082 0.43918zm-26.72-39.879c16.543-16.544 30.151-30.08 30.239-30.08s-13.375 13.536-29.919 30.08-30.151 30.08-30.239 30.08 13.375-13.536 29.919-30.08zm234.08 27.04c-1.3112-1.32-2.312-2.4-2.224-2.4s1.2328 1.08 2.544 2.4 2.312 2.4 2.224 2.4-1.2328-1.08-2.544-2.4zm-59.523-34.32-5.5966-5.68 5.68 5.5966c3.124 3.0781 5.68 5.6341 5.68 5.68 0 0.22804-0.56381-0.31944-5.7634-5.5966z" fill="#c7d7b7"/>
<path d="m96.8 230.4c3.5167-3.52 6.466-6.4 6.554-6.4s-2.7173 2.88-6.234 6.4c-3.5167 3.52-6.466 6.4-6.554 6.4s2.7173-2.88 6.234-6.4zm149.76-29.44c3.1643-3.168 5.8253-5.76 5.9133-5.76s-2.429 2.592-5.5933 5.76c-3.1643 3.168-5.8253 5.76-5.9133 5.76s2.429-2.592 5.5933-5.76zm39.84-14.56c3.2524-3.256 5.9855-5.92 6.0735-5.92s-2.5011 2.664-5.7535 5.92-5.9855 5.92-6.0735 5.92 2.5011-2.664 5.7535-5.92zm-200.16-24.8c0.31856-0.352 0.65119-0.64 0.73919-0.64s-0.10064 0.288-0.41919 0.64c-0.31856 0.352-0.65119 0.64-0.73919 0.64s0.10064-0.288 0.41919-0.64zm199.84-22-5.9168-6 6 5.9168c3.3 3.2542 6 5.9542 6 6 0 0.22779-0.58598-0.34214-6.0832-5.9168zm-39.84-14.56-5.7567-5.84 5.84 5.7567c3.212 3.1662 5.84 5.7942 5.84 5.84 0 0.22792-0.57489-0.3308-5.9233-5.7567zm-149.44-27.84-6.397-6.48 6.48 6.397c6.0208 5.9437 6.6245 6.563 6.397 6.563-0.0456 0-2.9616-2.916-6.48-6.48z" fill="#bbcfa7"/>
<path d="m227.35 225.84-2.8733-2.96 2.96 2.8733c1.628 1.5803 2.96 2.9123 2.96 2.96 0 0.23234-0.37799-0.12415-3.0467-2.8733zm47.367-27.76c3.1643-3.168 5.8253-5.76 5.9133-5.76s-2.429 2.592-5.5933 5.76-5.8253 5.76-5.9133 5.76 2.429-2.592 5.5933-5.76zm-16.8-8.48c3.0762-3.08 5.6651-5.6 5.7531-5.6s-2.3569 2.52-5.4331 5.6c-3.0762 3.08-5.6651 5.6-5.7531 5.6s2.3569-2.52 5.4331-5.6zm-42.154-24.062c0.31135-0.0811 0.74335-0.0758 0.96 0.0119s-0.0381 0.15404-0.56609 0.14752c-0.528-7e-3 -0.70526-0.0782-0.39391-0.15938zm41.991-28.978-5.7567-5.84 5.84 5.7567c3.212 3.1662 5.84 5.7942 5.84 5.84 0 0.22792-0.57489-0.3308-5.9233-5.7567zm16.8-8.48-5.5966-5.68 5.68 5.5966c5.2771 5.1996 5.8246 5.7634 5.5966 5.7634-0.0459 0-2.6019-2.556-5.68-5.68zm-47.197-27.6c1.5767-1.584 2.9387-2.88 3.0267-2.88s-1.13 1.296-2.7067 2.88c-1.5767 1.584-2.9386 2.88-3.0266 2.88s1.13-1.296 2.7066-2.88z" fill="#abc493"/>
<path d="m233.59 232.08-3.3543-3.44 3.44 3.3543c1.892 1.8449 3.44 3.3929 3.44 3.44 0 0.23111-0.41019-0.15913-3.5257-3.3543zm31.846-24.72c1.93-1.936 3.5811-3.52 3.6691-3.52s-1.4191 1.584-3.3491 3.52c-1.93 1.936-3.5811 3.52-3.6691 3.52s1.4191-1.584 3.3491-3.52zm1.6-26.88c1.93-1.936 3.5811-3.52 3.6691-3.52s-1.4191 1.584-3.3491 3.52c-1.93 1.936-3.5811 3.52-3.6691 3.52s1.4191-1.584 3.3491-3.52zm-243.2-10.241-6.395-6.401 13.114-12.958-12.792 12.96 6.394 6.4c3.5167 3.52 6.322 6.4 6.234 6.4s-3.0378-2.8804-6.555-6.401zm215.36-2.879c0.31856-0.352 0.6512-0.64 0.7392-0.64s-0.10064 0.288-0.4192 0.64c-0.31855 0.352-0.65119 0.64-0.73919 0.64s0.10064-0.288 0.41919-0.64zm-25.034-1.8218c0.31135-0.0811 0.74335-0.0758 0.96 0.0119s-0.0381 0.15404-0.56609 0.14752c-0.528-7e-3 -0.70526-0.0782-0.39391-0.15938zm3.0339 0.01c0.22-0.0888 0.58-0.0888 0.8 0s0.04 0.16141-0.4 0.16141-0.62-0.0726-0.4-0.16141zm91.902-1.7941c0.36322-0.48186 0.33859-0.67215-0.16565-1.28l-0.59228-0.714 0.77796 0.71873c0.76362 0.70549 0.76668 0.72908 0.16565 1.28-0.58421 0.53551-0.59274 0.53529-0.18568-5e-3zm-42.067-17.914-3.5146-3.6 3.6 3.5145c3.3438 3.2644 3.7453 3.6855 3.5146 3.6855-0.047 0-1.667-1.62-3.6-3.6zm-1.6-26.88-3.5146-3.6 3.6 3.5145c3.3438 3.2644 3.7453 3.6855 3.5146 3.6855-0.047 0-1.667-1.62-3.6-3.6zm-31.84-24.64c3.1155-3.1951 3.5257-3.5854 3.5257-3.3543 0 0.04714-1.548 1.5951-3.44 3.44l-3.44 3.3543z" fill="#a2be87"/>
<path d="m252.64 220.16c5.1017-5.104 9.3479-9.28 9.4359-9.28s-4.0141 4.176-9.1159 9.28c-5.1017 5.104-9.3479 9.28-9.4359 9.28s4.0141-4.176 9.1159-9.28zm-51.74-35.739c0.231-0.0924 0.50701-0.0811 0.61334 0.0252 0.10633 0.10633-0.0827 0.18196-0.42 0.16807-0.37279-0.0154-0.44861-0.0912-0.19334-0.19333zm76.538-14.261 6.8763-6.96-13.753-13.92 14.076 13.92-14.076 13.92zm25.282-0.08c3.2524-3.256 5.9855-5.92 6.0735-5.92s-2.5011 2.664-5.7535 5.92-5.9855 5.92-6.0735 5.92 2.5011-2.664 5.7535-5.92zm-90-4.5319c0.22-0.0888 0.58-0.0888 0.8 0s0.04 0.1614-0.4 0.1614-0.62-0.0726-0.4-0.1614zm5.76 0c0.22-0.0888 0.58-0.0888 0.8 0s0.04 0.1614-0.4 0.1614-0.62-0.0726-0.4-0.1614zm84.077-9.4681-5.7567-5.84 5.84 5.7567c3.212 3.1662 5.84 5.7942 5.84 5.84 0 0.22792-0.57489-0.3308-5.9233-5.7567zm-178.46-10.699c0.23099-0.0924 0.507-0.0811 0.61333 0.0252 0.10633 0.10633-0.0827 0.18196-0.42 0.16807-0.37278-0.0154-0.44861-0.0912-0.19333-0.19333zm5.12 0c0.23099-0.0924 0.507-0.0811 0.61333 0.0252 0.10633 0.10633-0.0827 0.18196-0.42 0.16807-0.37278-0.0154-0.44861-0.0912-0.19333-0.19333zm123.42-39.221-9.2779-9.36 9.36 9.2779c5.148 5.1029 9.36 9.3149 9.36 9.36 0 0.22615-0.81992-0.57952-9.4421-9.2779z" fill="#9dba81"/>
<path d="m54.08 200.16-36.319-36.32 72.798-72.798 12.639 12.639-60.157 60.16 60.155 60.158-6.2351 6.2412c-3.4293 3.4327-6.3087 6.2412-6.3987 6.2412-0.08998 0-16.507-16.344-36.483-36.32zm176.96 29.12-6.2358-6.242 59.835-59.838-59.835-59.838 6.2358-6.242c3.4297-3.4331 6.3089-6.2056 6.3982-6.1612 0.0893 0.04442 16.352 16.317 36.139 36.161l35.977 36.08-35.977 36.08c-19.787 19.844-36.05 36.116-36.139 36.161-0.0893 0.0444-2.9684-2.7281-6.3982-6.1612zm-37.92-45.013c-1.936-0.15604-5.608-0.70521-8.16-1.2204-7.7931-1.5732-13.244-3.4523-23.717-8.1752-10.711-4.8304-17.785-7.4369-26.043-9.5964-22.154-5.7933-41.97-4.0185-54.514 4.8825-1.8823 1.3357-1.9905 1.3746-1.4532 0.52292 4.4626-7.0736 12.261-14.305 19.886-18.439 13.152-7.1314 29.313-8.6657 46.643-4.4282 5.5956 1.3682 9.2745 2.5998 18.238 6.1054 15.59 6.0972 26.983 9.2531 39.396 10.913 5.9661 0.79796 17.43 0.97395 21.884 0.33596 8.4522-1.2106 15.772-3.5608 20.02-6.428 0.78079-0.52695 1.4196-0.8711 1.4196-0.76478 0 0.76372-4.4118 6.1173-8 9.7077-5.1772 5.1804-8.8644 7.8756-14.88 10.877-7.0557 3.5199-12.778 5.1039-20.766 5.7479-4.5607 0.36771-4.9067 0.36631-9.9535-0.0404z" fill="#86aa62"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.1 KiB

View File

@ -1,5 +1,3 @@
@import "https://tilde.team/~ben/fonts/jetbrains-mono/font.css";
main {
-webkit-font-feature-settings: "liga" on, "calt" on;
-webkit-font-smoothing: antialiased;

View File

@ -64,6 +64,14 @@ $links = [
"href" => "pronouns/",
"icon" => "heart"
],
"resumes" => [
"href" => "resumes/",
"icon" => "money"
],
"tilde.json explorer" => [
"href" => "tilde.json/",
"icon" => "code"
],
"assorted images" => [
"href" => "img/",
"icon" => "file-image-o"

View File

@ -19,7 +19,7 @@
$pronoun = file_get_contents($pronoun);
if (empty(trim($pronoun))) continue;
?>
<p><a href="/~<?=$user?>/"><strong>~<?=$user?></strong></a> - <?=$pronoun?></p>
<p><a href="/~<?=$user?>/"><strong>~<?=$user?></strong></a> - <?=htmlspecialchars($pronoun)?></p>
<?php } ?>
</div>

1
resume.txt Normal file
View File

@ -0,0 +1 @@
https://tildegit.org/ben/resume/raw/branch/master/resume.pdf

View File

@ -12,14 +12,14 @@
<body>
<div class="container">
<h1>resumes</h1>
<p>create a oneline ~/public_html/resume.txt to appear here</p>
<p>create a oneline ~/public_html/resume.txt with a link to your resume to appear here</p>
<p>* indicates tilde user is looking for work. <sup>(<code>touch ~/.looking</code> if you are!)</sup></p>
<hr>
<?php foreach (glob("/home/*") as $user) {
$user = basename($user);
$resume = "/home/$user/public_html/resume.txt";
if (!is_file($resume)) continue;
$content = file_get_contents($resume);
$content = htmlspecialchars(file_get_contents($resume));
if (is_file("/home/$user/.looking")) {
$lfw = "* ";

53
tilde.json/index.php Normal file
View File

@ -0,0 +1,53 @@
<?php
$tilde = $_GET["tilde"] ?? "tilde.team";
$json = json_decode(file_get_contents("http://${tilde}/tilde.json"), true);
$tildes = json_decode(file_get_contents("https://tildeverse.org/members.json"), true);
foreach ($tildes["members"] as $member) {
$domains[] = str_replace("http://", "", str_replace("https://", "", $member["link"]));
}
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://tilde.team/css/hacker.css">
<title>tilde.json explorer</title>
</head>
<body>
<div class="container">
<h1>tilde.json explorer</h1>
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" id="dropdown1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
tildeverse members <span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dropdown1">
<?php foreach ($domains as $d) { ?>
<li><a href="?tilde=<?=$d?>"><?=$d?></a></li>
<?php } ?>
</ul>
</div>
<hr>
<p>here is the info for <?=$tilde?></p>
<p>name: <?=$json["name"]?></p>
<p>url: <a href="<?=$json["url"]?>"><?=$json["url"]?></a></p>
<p>signup url: <a href="<?=$json["signup_url"]?>"><?=$json["signup_url"]?></a></p>
<p>user count: <?=$json["user_count"]?></p>
<p>accepting signups?: <?=$json["want_users"]?></p>
<p>admin email address: <a href="mailto:<?=$json["admin_email"]?>"><?=$json["admin_email"]?></a></p>
<p>description: <?=$json["description"]?></p>
</div>
<script src="https://tilde.team/js/jquery.min.js"></script>
<script src="https://tilde.team/js/bootstrap.min.js"></script>
</body>
</html>

View File

@ -296,6 +296,7 @@ or open a github issue and i'll get back to you as soon as i can.</p>
<div class="feed">
<h3>live feels-sharing:</h3>
<ul>
<li><a href="https://tilde.team/~lohn/feels">~lohn</a> 2020-11-24 at 09:29 (utc+0)</li>
<li><a href="https://tilde.team/~skukic/feels">~skukic</a> 2020-09-15 at 20:06 (utc+0)</li>
<li><a href="https://tilde.team/~tude/feels">~tude</a> 2020-08-29 at 03:46 (utc+0)</li>
<li><a href="https://tilde.team/~leea/blog">~leea</a> 2020-08-21 at 19:09 (utc+0)</li>