summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2020-06-18 23:15:07 +0200
committerTom Smeding <tom.smeding@gmail.com>2020-06-18 23:15:07 +0200
commitafe42d9600842ba565cf66c043cd11b8ff0a7d1b (patch)
tree9a8d937254d0db775120b505d2a3624512921a92
parent0cc65cc552af39dd1ec3c961b64daed367052601 (diff)
First post
-rw-r--r--$template.html23
-rw-r--r--.gitignore1
-rwxr-xr-x.tools/render.sh16
-rw-r--r--tools.html32
4 files changed, 67 insertions, 5 deletions
diff --git a/$template.html b/$template.html
index 282886e..012552e 100644
--- a/$template.html
+++ b/$template.html
@@ -6,7 +6,7 @@
<style>
/* Source: https://github.com/madmalik/mononoki/blob/master/style.css */
@font-face {
- font-family: 'mononoki';
+ font-family: 'mononoki-webfont';
src: url('/fonts/mononoki-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/fonts/mononoki-Regular.woff2') format('woff2'), /* Super Modern Browsers */
url('/fonts/mononoki-Regular.woff') format('woff'), /* Pretty Modern Browsers */
@@ -15,7 +15,7 @@
font-style: normal;
}
@font-face {
- font-family: 'mononoki';
+ font-family: 'mononoki-webfont';
src: url('/fonts/mononoki-Bold.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/fonts/mononoki-Bold.woff2') format('woff2'), /* Super Modern Browsers */
url('/fonts/mononoki-Bold.woff') format('woff'), /* Pretty Modern Browsers */
@@ -24,7 +24,7 @@
font-style: normal;
}
@font-face {
- font-family: 'mononoki';
+ font-family: 'mononoki-webfont';
src: url('/fonts/mononoki-Italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/fonts/mononoki-Italic.woff2') format('woff2'), /* Super Modern Browsers */
url('/fonts/mononoki-Italic.woff') format('woff'), /* Pretty Modern Browsers */
@@ -33,7 +33,7 @@
font-style: italic;
}
@font-face {
- font-family: 'mononoki';
+ font-family: 'mononoki-webfont';
src: url('/fonts/mononoki-BoldItalic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/fonts/mononoki-BoldItalic.woff2') format('woff2'), /* Super Modern Browsers */
url('/fonts/mononoki-BoldItalic.woff') format('woff'), /* Pretty Modern Browsers */
@@ -48,9 +48,22 @@ html, body {
padding-top: 0px;
padding-bottom: 0px;
margin: 0;
- font-family: mononoki, monospace;
+ /* Have a fallback to local mononoki for offline pages */
+ font-family: mononoki-webfont, mononoki, monospace;
font-size: 12pt;
}
+code {
+ font-family: inherit;
+ border-radius: 5px;
+ background-color: #f2e8e8;
+ padding: 0px 4px 2px 5px;
+}
+blockquote {
+ display: block;
+ border-radius: 9px;
+ padding: 10px;
+ background-color: #f2e8e8;
+}
#main-content {
padding: 0px 50px;
margin: 0px auto;
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..b7422d7
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*.rendered.html
diff --git a/.tools/render.sh b/.tools/render.sh
new file mode 100755
index 0000000..273d574
--- /dev/null
+++ b/.tools/render.sh
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+cd "$(dirname "$0")/.."
+
+if [[ $# -ne 1 ]]; then
+ echo >&2 "Usage: $0 <path/to/post[.html]>"
+ echo >&2 "Renders the given post and saves the output to <post.rendered.html>."
+ exit 1
+fi
+
+postpath="$(echo "$1" | sed 's/\.html$//')"
+inpath="${postpath}.html"
+outpath="${postpath}.rendered.html"
+
+sed "/<!-- REPLACE CONTENT -->/ { r $inpath"$'\n'"; d; }" <'$template.html' >"$outpath"
diff --git a/tools.html b/tools.html
new file mode 100644
index 0000000..ef13675
--- /dev/null
+++ b/tools.html
@@ -0,0 +1,32 @@
+<p>
+ For any given task that enough people have wanted to do before on a computer, there is a multitude of tools available to perform that task on Linux.
+ Here is a small list of cherry-picked ones that I tend to forget (or that I want to promote :) ).
+ As I use Arch Linux, some may be Arch-specific.
+</p>
+
+<ul>
+<li><p>
+ <b>pulseaudio-equalizer-ladspa</b>. [<a href="https://www.archlinux.org/packages/community/any/pulseaudio-equalizer-ladspa/" target="_blank">Arch repos</a>]
+ Assuming you use PulseAudio, if you want to run a very simple equalizer over whatever comes out of your speakers, use this package.
+ The GUI executable is called <code>pulseaudio-equalizer-gtk</code>.
+</p></li>
+<li><p>
+ <b>nload</b>. [<a href="https://www.archlinux.org/packages/community/x86_64/nload/" target="_blank">Arch repos</a>]
+ For nice graphs/statistics on current network usage (mbits incoming/outgoing).
+ To show all interfaces, invoke it as <code>nload -m</code>; to show only a single interface, use e.g. <code>nload enp3s0f1</code>.
+</p></li>
+<li><p>
+ <b>paccache</b>. [<a href="https://www.archlinux.org/packages/community/x86_64/pacman-contrib/" target="_blank">in pacman-contrib</a>]
+ To flexibly purge package files from the Pacman cache.
+ Pacman proper has <code>--clean</code>, but paccache allows you to remove e.g. all but the most recent three versions of all packages, ignoring stuff related to nvidia:
+ <blockquote>
+paccache -r -k 3 -i nvidia,nvidia-settings,nvidia-utils,opencl-nvidia,linux,linux-firmware,linux-headers,cuda
+ </blockquote>
+ Also check out the other scripts in pacman-contrib, like pacdiff and rankmirrors.
+</p></li>
+<li><p>
+ <b>pdfpc</b>. [<a href="https://www.archlinux.org/packages/community/x86_64/pdfpc/" target="_blank">Arch repos</a>]
+ Lightweight PDF presenting, with even some really esoteric features like detecting animated slides in a LaTeX beamer presentation (that doesn't really work in my experience).
+ Multi-monitor support.
+</p></li>
+</ul>