a bunch of random stuff

a lot of this has been sitting uncommitted in my public_html
guess it's time to figure out what to do with it
This commit is contained in:
Ben Harris 2020-10-26 17:28:11 -04:00
parent 64d850158c
commit a607f35b16
12 changed files with 329 additions and 0 deletions

105
blahaj/blahaj.json Normal file
View File

@ -0,0 +1,105 @@
{
"emojis": {
"blurrycat": "emojis/blurrycat.png",
"cate": "emojis/cate.png",
"catto": "emojis/catto.png",
"freddiecat": "emojis/freddiecat.png",
"cringingcat": "emojis/cringingcat.png",
"politecat": "emojis/politecat.png",
"sadcat": "emojis/sadcat.png",
"saddercat": "emojis/saddercat.png",
"smugcat": "emojis/smugcat.png",
"tiredcat": "emojis/tiredcat.png",
"shonk": "emojis/blahaj.png"
},
"backgrounds": {
"rainbow": "emojo-bg-rainbow",
"red": "emojo-bg-red",
"black": "emojo-bg-black"
},
"captionTypes": {
"default": ["emojo-caption-default"],
"above": ["emojo-caption-default", "emojo-caption-above"],
"comicsans": ["emojo-caption-sans"],
"comicsans-above": ["emojo-caption-sans", "emojo-caption-above"]
},
"animations": {
"null": {
"name": "null",
"length": 1
},
"bounce": {
"name": "bounce",
"length": 1,
"extra": "linear infinite"
},
"flip": {
"name": "flip",
"length": 1,
"extra": "linear infinite"
},
"fastflip": {
"name": "flip",
"length": 0.25,
"extra": "linear infinite"
},
"spin": {
"name": "spin",
"length": 2,
"extra": "linear infinite"
},
"zoom": {
"name": "zoom",
"length": 50000,
"extra": "linear"
},
"slowzoom": {
"name": "zoom",
"length": 100000,
"extra": "linear"
},
"shake": {
"name": "shake",
"length": 1,
"extra": "infinite"
},
"fastshake": {
"name": "shake",
"length": 0.25,
"extra": "infinite"
},
"sway": {
"name": "sway",
"length": 1,
"extra": "ease-out infinite"
}
},
"music": {
"smwcredits": {
"path": "sounds/smwcredits.mp3",
"beat": 0.395
},
"temmie": {
"path": "sounds/temmie.mp3",
"beat": 0.715
},
"sm64": {
"path": "sounds/sm64.mp3",
"beat": 0.45
},
"null": {
"path": null,
"beat": 1
}
},
"default": {
"emoji": ["shonk"],
"animations": ["flip", "shake", "slowzoom"],
"music": "temmie",
"speed": 1,
"caption": null,
"captionType": "default",
"background": null,
"emojiInterval": 4
}
}

46
blahaj/index.php Normal file
View File

@ -0,0 +1,46 @@
<?php
$emoj = json_decode(file_get_contents("blahaj.json"), true);
?>
<!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/~ben/gruvbox/gruvbox.css">
<title>my page</title>
</head>
<body>
<main>
<h1>page</h1>
<form method="GET" action="https://tilde.team/~hazel/blahaj/">
<select name="emoji">
<?php foreach ($emoj["emojis"] as $emoji => $filename) { ?>
<option value="<?=$emoji?>"><?=$emoji?></option>
<?php } ?>
</select>
<!-- <select name="animations">
<?php foreach ($emoj["animations"] as $animation => $filename) { ?>
<option value="<?=$animation?>"><?=$animation?></option>
<?php } ?>
</select>
-->
<select name="music">
<?php foreach ($emoj["music"] as $music => $filename) { ?>
<option value="<?=$music?>"><?=$music?></option>
<?php } ?>
</select>
<input type="submit" />
</form>
</main>
</body>
</html>

48
byobu.txt Normal file
View File

@ -0,0 +1,48 @@
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

23
cgi-bin/man.sh Executable file
View File

@ -0,0 +1,23 @@
#!/bin/sh
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 "\r\n"
printf "provide a manpage to find in the ?m= parameter\n"
exit 1
fi
if [ ! -f "$manfile" ]; then
printf "Content-type: text/plain\r\n"
printf "\r\n"
printf "manpage for %s not found\n" "$m"
exit 1
fi
zcat "$manfile" \
| man2html -M /~ben/cgi-bin/man.sh
exit 0

1
cgi-bin/man.sh.txt Symbolic link
View File

@ -0,0 +1 @@
./man.sh

4
gitea-favicon/README.md Normal file
View File

@ -0,0 +1,4 @@
# gitea-favicons
a lil script (see generate.sh) to generate the various sizes required
for tildegit.org from the base icon

24
gitea-favicon/generate.sh Normal file
View File

@ -0,0 +1,24 @@
#!/bin/sh
# generate all sizes
for size in 16 32 64 120 128 180 192 200 512 880; do
if [ ! -f tildegit-$size.png ]; then
convert -resize "${size}x${size}" tildegit.png tildegit-$size.png
fi
done
convert \
tildegit-16.png \
tildegit-32.png \
tildegit-64.png \
tildegit-128.png \
-delete 0 -alpha off -colors 256 favicon.ico
cp tildegit-120.png gitea-sm.png
cp tildegit-180.png apple-touch-icon.png
cp tildegit-180.png favicon.png
cp tildegit-192.png gitea-192.png
cp tildegit-200.png avatar_default.png
cp tildegit-512.png gitea-512.png
cp tildegit-880.png gitea-lg.png

View File

@ -0,0 +1,12 @@
favicon.ico - 128x128
gitea-safari.svg
gitea-sm.png - 120x120
apple-touch-icon.png - 180x180
favicon.png - 180x180
gitea-192.png - 192x192
avatar_default.png - 200x200
gitea-512.png - 512x512
gitea-lg.png - 880x880

BIN
gitea-favicon/tildegit.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

1
gitslides Symbolic link
View File

@ -0,0 +1 @@
../workspace/gitslides/

36
mydomains.txt Normal file
View File

@ -0,0 +1,36 @@
google domains:
- heyderebub.com
- platformpersonalities.com
isnic.is:
- benharr.is
nic.st:
- hmm.st
namesilo.com:
- benharri.com
- benharri.org
- bhh.sh
- fuckup.club
- harris.team
- harriswoodworks.net
- irctokens.org
- ittwsd.org
- nand.sh
- tild3.org
- tilde.chat
- tilde.life
- tilde.news
- tilde.site
- tilde.team
- tilde.wiki
- tilde.zone
- tildegit.org
- tilderadio.org
- tildeteam.net
- tildeteam.org
- tildeverse.net
- tildeverse.org
- ttm.sh

29
taglines/index.php Normal file
View File

@ -0,0 +1,29 @@
<!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.team taglines</title>
</head>
<body>
<div class="container">
<h1>taglines</h1>
<p>create a oneline ~/public_html/tagline.txt to appear here</p>
<hr>
<?php foreach (glob("/home/*") as $user) {
$user = basename($user);
$tagline = "/home/$user/public_html/tagline.txt";
if (!is_file($tagline)) continue;
$tag = file_get_contents($tagline);
?>
<p><a href="/~<?=$user?>/"><strong>~<?=$user?></strong></a> - <?=$tag?></p>
<?php } ?>
</div>
</body>
</html>