Initial commit

This commit is contained in:
mattx 2020-08-29 21:33:05 +00:00
commit 8e2675bce4
27 changed files with 326 additions and 0 deletions

2
.bundle/config Normal file
View File

@ -0,0 +1,2 @@
---
BUNDLE_PATH: "vendor/bundle"

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
_site
vendor
vendor1
Gemfile.lock

View File

@ -0,0 +1 @@
I"Ê{"source"=>"/home/mattx/site", "destination"=>"/home/mattx/site/_site", "collections_dir"=>"", "cache_dir"=>".jekyll-cache", "plugins_dir"=>"_plugins", "layouts_dir"=>"_layouts", "data_dir"=>"_data", "includes_dir"=>"_includes", "collections"=>{"posts"=>{"output"=>true, "permalink"=>"/:categories/:year/:month/:day/:title:output_ext"}}, "safe"=>false, "include"=>[".htaccess"], "exclude"=>["README.md", ".sass-cache", ".jekyll-cache", "gemfiles", "Gemfile", "Gemfile.lock", "node_modules", "vendor/bundle/", "vendor/cache/", "vendor/gems/", "vendor/ruby/"], "keep_files"=>[".git", ".svn"], "encoding"=>"utf-8", "markdown_ext"=>"markdown,mkdown,mkdn,mkd,md", "strict_front_matter"=>false, "show_drafts"=>nil, "limit_posts"=>0, "future"=>false, "unpublished"=>false, "whitelist"=>[], "plugins"=>[], "markdown"=>"kramdown", "highlighter"=>"rouge", "lsi"=>false, "excerpt_separator"=>"\n\n", "incremental"=>false, "detach"=>false, "port"=>"4000", "host"=>"127.0.0.1", "baseurl"=>nil, "show_dir_listing"=>false, "permalink"=>"date", "paginate_path"=>"/page:num", "timezone"=>nil, "quiet"=>false, "verbose"=>false, "defaults"=>[], "liquid"=>{"error_mode"=>"warn", "strict_filters"=>false, "strict_variables"=>false}, "kramdown"=>{"auto_ids"=>true, "toc_levels"=>[1, 2, 3, 4, 5, 6], "entity_output"=>"as_char", "smart_quotes"=>"lsquo,rsquo,ldquo,rdquo", "input"=>"GFM", "hard_wrap"=>false, "guess_lang"=>true, "footnote_nr"=>1, "show_warnings"=>false}, "title"=>"mattx", "serving"=>false}:ET

View File

@ -0,0 +1,11 @@
I"p<h1 id="hello">hello</h1>
<p>welcome to my site, its pretty empty as you can see at the moment</p>
<h2 id="stuff">stuff</h2>
<ul>
<li><a href="files/pairing.txt">pairing</a> - on a multi-user host like tildes, allows making shared tmux sessions</li>
<li><a href="about.html">about this</a></li>
<li><a href="frogcat">a frogcat! use with curl</a></li>
</ul>
:ET

View File

@ -0,0 +1,10 @@
I"6<h1 id="hello">hello</h1>
<p>welcome to my site, its pretty empty as you can see at the moment</p>
<h2 id="stuff">stuff</h2>
<ul>
<li><a href="files/pairing.txt">pairing</a> - on a multi-user host like tildes, allows making shared tmux sessions</li>
<li><a href="about.html">about this</a></li>
</ul>
:ET

View File

@ -0,0 +1,14 @@
I"<<h2 id="design">design</h2>
<p>the page is made so that it scores very well on stuff like Lighthouse - that means:</p>
<ul>
<li>its made to be small and load fast</li>
<li>the style works on both mobile and desktop</li>
<li>the style is accessible - screen readers have no problem</li>
</ul>
<h2 id="generator">generator</h2>
<p>I use Jekyll as its way easier to configure - I wanted to switch to Hugo, though I dont exactly like how it works</p>
<h2 id="source">source</h2>
<p>the pages are written in Markdown, and can be found in /home/mattx/site.</p>
:ET

3
Gemfile Normal file
View File

@ -0,0 +1,3 @@
source "https://rubygems.org"
gem "jekyll"

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# site
my site

4
_config.yml Normal file
View File

@ -0,0 +1,4 @@
title: mattx
#baseurl: "/~mattx/"
exclude:
- README.md

2
_data/navigation.yml Normal file
View File

@ -0,0 +1,2 @@
- name: Home
link: "https://mattx.fuckup.club"

12
_includes/base.html Normal file
View File

@ -0,0 +1,12 @@
{% assign base = ''
%}{% assign depth = page.url | split: '/' | size | minus: 1
%}{% if depth <= 1
%}{% assign base = '.'
%}{% elsif depth == 2
%}{% assign base = '..'
%}{% elsif depth == 3
%}{% assign base = '../..'
%}{% elsif depth == 4
%}{% assign base = '../../..'
%}{% endif
%}

1
_includes/css.html Normal file
View File

@ -0,0 +1 @@
<link rel="stylesheet" href="{{ base }}/assets/css/main.css">

10
_includes/meta.html Normal file
View File

@ -0,0 +1,10 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Web page of random tech stuff.">
<meta name="author" content="Matt">
<meta name="theme-color" content="#7f00ff">
<meta property="og:title" content="Matt's Site">
<meta property="og:type" content="website">
<meta property="og:url" content="https://mattx.fuckup.club">
<meta property="og:image" content="https://mattx.fuckup.club/ogwhy.png">
<meta property="og:description" content="Web page of random tech stuff. Due to the circumstances allowed by the standard used by a variety of social networking sites called The Open Graph protocol, I, a human person can put an unnecessarily verbose and long description of the website in the preview. Dame da ne, dame yo, dame na no yo. Anyway, why are you reading this lol.">

9
_includes/navbar.html Normal file
View File

@ -0,0 +1,9 @@
<nav class="navbar">
<div class="navitem">~mattx</div>
{% for item in site.data.navigation %}
<a class="navitem" href="{{ item.link | relative_url }}" {% if page.url == item.link %}
style="background-color: #777;" {% endif %}>
{{ item.name }}
</a>
{% endfor %}
</nav>

21
_layouts/default.html Normal file
View File

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- sorry if the indentation is wonky all over the place;
this site is generated with Jekyll -->
{% comment %}
congratulations! you've found it.
{% endcomment %}
{% include base.html %}
{% include meta.html %}
{% include css.html %}
<title>{{ page.title }}</title>
</head>
<body>
{% include navbar.html %}
<div class="wrapper">
<h1>{{ page.title }}</h1>
{{ content }}
</div>
</body>
</html>

15
_sass/body.scss Normal file
View File

@ -0,0 +1,15 @@
@import url('https://fonts.googleapis.com/css2?family=Cantarell&display=swap');
$backgroundColor: #fff;
$bodyColor: #000;
$bodyFont: "Cantarell", sans-serif;
body {
background: $backgroundColor;
color: $bodyColor;
font-family: $bodyFont;
margin: 0;
}
.wrapper {
margin-left: 10px;
}

9
_sass/codeblock.scss Normal file
View File

@ -0,0 +1,9 @@
.highlight {
color: white;
}
.highlight > pre {
width: max-content;
padding: 14px 16px;
border-radius: 8px;
}

View File

@ -0,0 +1,71 @@
/* Pygments "Native" theme */
.highlight pre { background-color: #404040 }
.highlight .hll { background-color: #404040 }
.highlight .c { color: #999999; font-style: italic } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .g { color: #d0d0d0 } /* Generic */
.highlight .k { color: #6ab825; font-weight: bold } /* Keyword */
.highlight .l { color: #d0d0d0 } /* Literal */
.highlight .n { color: #d0d0d0 } /* Name */
.highlight .o { color: #d0d0d0 } /* Operator */
.highlight .x { color: #d0d0d0 } /* Other */
.highlight .p { color: #d0d0d0 } /* Punctuation */
.highlight .cm { color: #999999; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #cd2828; font-weight: bold } /* Comment.Preproc */
.highlight .c1 { color: #999999; font-style: italic } /* Comment.Single */
.highlight .cs { color: #e50808; font-weight: bold; background-color: #520000 } /* Comment.Special */
.highlight .gd { color: #d22323 } /* Generic.Deleted */
.highlight .ge { color: #d0d0d0; font-style: italic } /* Generic.Emph */
.highlight .gr { color: #d22323 } /* Generic.Error */
.highlight .gh { color: #ffffff; font-weight: bold } /* Generic.Heading */
.highlight .gi { color: #589819 } /* Generic.Inserted */
.highlight .go { color: #cccccc } /* Generic.Output */
.highlight .gp { color: #aaaaaa } /* Generic.Prompt */
.highlight .gs { color: #d0d0d0; font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #ffffff; text-decoration: underline } /* Generic.Subheading */
.highlight .gt { color: #d22323 } /* Generic.Traceback */
.highlight .kc { color: #6ab825; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #6ab825; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #6ab825; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #6ab825 } /* Keyword.Pseudo */
.highlight .kr { color: #6ab825; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #6ab825; font-weight: bold } /* Keyword.Type */
.highlight .ld { color: #d0d0d0 } /* Literal.Date */
.highlight .m { color: #3677a9 } /* Literal.Number */
.highlight .s { color: #ed9d13 } /* Literal.String */
.highlight .na { color: #bbbbbb } /* Name.Attribute */
.highlight .nb { color: #24909d } /* Name.Builtin */
.highlight .nc { color: #447fcf; text-decoration: underline } /* Name.Class */
.highlight .no { color: #40ffff } /* Name.Constant */
.highlight .nd { color: #ffa500 } /* Name.Decorator */
.highlight .ni { color: #d0d0d0 } /* Name.Entity */
.highlight .ne { color: #bbbbbb } /* Name.Exception */
.highlight .nf { color: #447fcf } /* Name.Function */
.highlight .nl { color: #d0d0d0 } /* Name.Label */
.highlight .nn { color: #447fcf; text-decoration: underline } /* Name.Namespace */
.highlight .nx { color: #d0d0d0 } /* Name.Other */
.highlight .py { color: #d0d0d0 } /* Name.Property */
.highlight .nt { color: #6ab825; font-weight: bold } /* Name.Tag */
.highlight .nv { color: #40ffff } /* Name.Variable */
.highlight .ow { color: #6ab825; font-weight: bold } /* Operator.Word */
.highlight .w { color: #666666 } /* Text.Whitespace */
.highlight .mf { color: #3677a9 } /* Literal.Number.Float */
.highlight .mh { color: #3677a9 } /* Literal.Number.Hex */
.highlight .mi { color: #3677a9 } /* Literal.Number.Integer */
.highlight .mo { color: #3677a9 } /* Literal.Number.Oct */
.highlight .sb { color: #ed9d13 } /* Literal.String.Backtick */
.highlight .sc { color: #ed9d13 } /* Literal.String.Char */
.highlight .sd { color: #ed9d13 } /* Literal.String.Doc */
.highlight .s2 { color: #ed9d13 } /* Literal.String.Double */
.highlight .se { color: #ed9d13 } /* Literal.String.Escape */
.highlight .sh { color: #ed9d13 } /* Literal.String.Heredoc */
.highlight .si { color: #ed9d13 } /* Literal.String.Interpol */
.highlight .sx { color: #ffa500 } /* Literal.String.Other */
.highlight .sr { color: #ed9d13 } /* Literal.String.Regex */
.highlight .s1 { color: #ed9d13 } /* Literal.String.Single */
.highlight .ss { color: #ed9d13 } /* Literal.String.Symbol */
.highlight .bp { color: #24909d } /* Name.Builtin.Pseudo */
.highlight .vc { color: #40ffff } /* Name.Variable.Class */
.highlight .vg { color: #40ffff } /* Name.Variable.Global */
.highlight .vi { color: #40ffff } /* Name.Variable.Instance */
.highlight .il { color: #3677a9 } /* Literal.Number.Integer.Long */

16
_sass/navbar.scss Normal file
View File

@ -0,0 +1,16 @@
.navbar {
display: flex;
align-items: center;
background-color: #444;
color: white;
}
.navitem {
padding: 16px 14px;
color: white;
text-decoration: none;
}
a.navitem:hover {
background-color: #777;
}

16
about.md Normal file
View File

@ -0,0 +1,16 @@
---
layout: default
title: about here
---
## design
the page is made so that it scores very well on stuff like Lighthouse - that means:
- it's made to be small and load fast
- the style works on both mobile and desktop
- the style is accessible - screen readers have no problem
## generator
I use Jekyll as it's way easier to configure - I wanted to switch to Hugo, though I don't exactly like how it works
## source
the pages are written in Markdown, and can be found in /home/mattx/site.

6
assets/css/main.scss Normal file
View File

@ -0,0 +1,6 @@
---
---
@import "body";
@import "codeblock";
@import "highlight-theme";
@import "navbar";

46
files/pairing.txt Normal file
View File

@ -0,0 +1,46 @@
#!/bin/bash
if [ $# -lt 1 ]; then
echo "usage: pairing <user> [socketname]"
echo "starts up a tmux session available for the specified user."
echo "if socketname is specified, uses a custom socket name."
echo "else, it will generate a random name"
exit 1
fi
id $1
USEREXISTS=$?
if [ $USEREXISTS -eq 1 ]; then
echo "user does not exist"
exit 1
fi
if [ ! -d "/tmp/pairs" ]; then
# Shouldn't need to run unless tilde.town rebooted
mkdir /tmp/pairs
chmod 0777 /tmp/pairs
fi
if [ $# -lt 2 ]; then
# I know, useless use of cat but it's nicer to read
RANDOMSTR=$(cat /dev/urandom | tr -cd 'a-f0-9' | head -c 8)
PAIR="/tmp/pairs/$RANDOMSTR"
else
PAIR="/tmp/pairs/$(basename $2)" # Checkmate, ../ usage
fi
if [ -d $PAIR ]; then
echo "specified pair already exists, or rng gave a duplicate :o"
exit 1
fi
echo "starting session"
tmux -S $PAIR new-session -d
echo "granting $1 access to the socket"
setfacl -m u:$1:rw $PAIR
echo "Success!"
echo "Please terminate the session once you're done to minimize socket usage."
echo "Attach using:"
echo "tmux -S $PAIR attach"
echo "You may now send this command to $1."

22
frogcat Normal file
View File

@ -0,0 +1,22 @@
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄

11
index.md Normal file
View File

@ -0,0 +1,11 @@
---
layout: default
---
# hello
welcome to my site, it's pretty empty as you can see at the moment
## stuff
- [pairing](files/pairing.txt) - on a multi-user host like tildes, allows making shared tmux sessions
- [about this](about.html)
- [a frogcat! use with curl](frogcat)

BIN
ogwhy.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

4
stuff/bash-aliases.md Normal file
View File

@ -0,0 +1,4 @@
---
title: bash alias collection
layout: default
---