diff --git a/about/index.html b/about/index.html index d32e0ef..44a4702 100644 --- a/about/index.html +++ b/about/index.html @@ -6,7 +6,7 @@ name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" /> - + - + - + - + - + - + - + - + - + - +
In my home directory I defined two hook scripts:
~/webhooks/update-pages.sh
-#!/bin/bash
-# parameter 1 is repo name, parameter 2 is clone url
-[[ "$1" == *"/"* ]] && exit 1;
-[[ "$1" == *".."* ]] && exit 1;
-[[ "$1" == *"*"* ]] && exit 1;
-if [ -d "/var/www/$1" ]; then
- git clone -b gh-pages --single-branch "$2" "$1" || exit 1;
- exit;
-fi;
-cd "/var/www/$1";
-git fetch origin gh-pages;
-git reset --hard origin/gh-pages;
-exit;
+ #!/bin/bash
+# parameter 1 is repo name, parameter 2 is clone url
+[[ "$1" == *"/"* ]] && exit 1;
+[[ "$1" == *".."* ]] && exit 1;
+[[ "$1" == *"*"* ]] && exit 1;
+if [ -d "/var/www/$1" ]; then
+ git clone -b gh-pages --single-branch "$2" "$1" || exit 1;
+ exit;
+fi;
+cd "/var/www/$1";
+git fetch origin gh-pages;
+git reset --hard origin/gh-pages;
+exit;
~/webhooks/remove-pages.sh
- #!/bin/bash
-# parameter 1 is repo name
-[[ "$1" == *"/"* ]] && exit 1;
-[[ "$1" == *".."* ]] && exit 1;
-[[ "$1" == *"*"* ]] && exit 1;
-[ -d "/var/www/$1" ] || exit 1;
-cd "/var/www";
-rm -rf "/var/www/$1";
+ #!/bin/bash
+# parameter 1 is repo name
+[[ "$1" == *"/"* ]] && exit 1;
+[[ "$1" == *".."* ]] && exit 1;
+[[ "$1" == *"*"* ]] && exit 1;
+[ -d "/var/www/$1" ] || exit 1;
+cd "/var/www";
+rm -rf "/var/www/$1";
To trigger these hooks I am using webhook
which is in the
@@ -270,80 +273,82 @@ rm -rf "/var/www/$1";
referencing your username and script paths.
/etc/webhook.conf
- [
- {
- "id": "update-pages",
- "execute-command": "su joshua /home/joshua/webhooks/update-pages.sh",
- "command-working-directory": "/var/www",
- "pass-arguments-to-command":
- [
- {
- "source": "payload",
- "name": "repository.name"
- },
- ],
- "trigger-rule":
- {
- "and":
- [
- {
- "match":
- {
- "type": "payload-hmac-sha256",
- "secret": "(omitted)",
- "parameter":
- {
- "source": "header",
- "name": "X-Forgejo-Signature"
- }
- }
- },
- {
- "match":
- {
- "type": "value",
- "value": "refs/heads/gh-pages",
- "parameter":
- {
- "source": "payload",
- "name": "ref"
- }
- }
- }
- ]
- }
- },
- {
- "id": "remove-pages",
- "execute-command": "su joshua /home/joshua/webhooks/remove-pages.sh",
- "command-working-directory": "/var/www",
- "pass-arguments-to-command":
- [
- {
- "source": "payload",
- "name": "repository.name"
- },
- ],
- "trigger-rule":
- {
- "and":
- [
- {
- "match":
- {
- "type": "payload-hmac-sha256",
- "secret": "(omitted)",
- "parameter":
- {
- "source": "header",
- "name": "X-Forgejo-Signature"
- }
- }
- }
- ]
- }
- }
-]
+ [
+ {
+ "id": "update-pages",
+ "execute-command": "su joshua /home/joshua/webhooks/update-pages.sh",
+ "command-working-directory": "/var/www",
+ "pass-arguments-to-command":
+ [
+ {
+ "source": "payload",
+ "name": "repository.name"
+ },
+ ],
+ "trigger-rule":
+ {
+ "and":
+ [
+ {
+ "match":
+ {
+ "type": "payload-hmac-sha256",
+ "secret": "(omitted)",
+ "parameter":
+ {
+ "source": "header",
+ "name": "X-Forgejo-Signature"
+ }
+ }
+ },
+ {
+ "match":
+ {
+ "type": "value",
+ "value": "refs/heads/gh-pages",
+ "parameter":
+ {
+ "source": "payload",
+ "name": "ref"
+ }
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": "remove-pages",
+ "execute-command": "su joshua /home/joshua/webhooks/remove-pages.sh",
+ "command-working-directory": "/var/www",
+ "pass-arguments-to-command":
+ [
+ {
+ "source": "payload",
+ "name": "repository.name"
+ },
+ ],
+ "trigger-rule":
+ {
+ "and":
+ [
+ {
+ "match":
+ {
+ "type": "payload-hmac-sha256",
+ "secret": "(omitted)",
+ "parameter":
+ {
+ "source": "header",
+ "name": "X-Forgejo-Signature"
+ }
+ }
+ }
+ ]
+ }
+ }
+]
Forgejo
diff --git a/posts/needs-based-communication/index.html b/posts/needs-based-communication/index.html
index 578428c..8bb7515 100644
--- a/posts/needs-based-communication/index.html
+++ b/posts/needs-based-communication/index.html
@@ -6,7 +6,7 @@
name="viewport"
content="width=device-width, initial-scale=1.0, viewport-fit=cover"
/>
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
code {
- display: inline-block;
+p > code,
+pre {
font-family: "Commit Mono", monospace;
background-color: var(--c-text-background-light);
padding: 0.1em;
- margin: -0.1em;
border-radius: 0.5em;
}
+p > code {
+ margin: -0.1em;
+ display: inline-block;
+}
body #isso-thread {
margin-top: 4rem;
@@ -601,7 +604,8 @@ body .isso-input-wrapper label {
body .isso-input-wrapper input,
input[type="text"],
body .isso-textarea,
-body .isso-preview {
+body .isso-preview,
+pre {
color: inherit;
font-size: 1rem;
background-color: transparent;
@@ -718,3 +722,129 @@ body .isso-post-action {
.pagefind-ui__result-excerpt {
margin: 0.5rem 0;
}
+
+/**
+ * GHColors theme by Avi Aryan (http://aviaryan.in)
+ * Inspired by Github syntax coloring
+ */
+
+code[class*="language-"],
+pre[class*="language-"] {
+ color: #393a34;
+ direction: ltr;
+ text-align: left;
+ white-space: pre;
+ word-spacing: normal;
+ word-break: normal;
+ font-size: 0.9em;
+ line-height: 1.2em;
+
+ -moz-tab-size: 4;
+ -o-tab-size: 4;
+ tab-size: 4;
+
+ -webkit-hyphens: none;
+ -moz-hyphens: none;
+ -ms-hyphens: none;
+ hyphens: none;
+}
+
+pre > code[class*="language-"] {
+ font-size: 1em;
+}
+
+pre[class*="language-"]::-moz-selection,
+pre[class*="language-"] ::-moz-selection,
+code[class*="language-"]::-moz-selection,
+code[class*="language-"] ::-moz-selection {
+ background: #b3d4fc;
+}
+
+pre[class*="language-"]::selection,
+pre[class*="language-"] ::selection,
+code[class*="language-"]::selection,
+code[class*="language-"] ::selection {
+ background: #b3d4fc;
+}
+
+/* Code blocks */
+pre[class*="language-"] {
+ padding: 1em;
+ margin: 0.5em 0;
+ overflow: auto;
+ border: 1px solid #dddddd;
+ background-color: white;
+}
+
+/* Inline code */
+:not(pre) > code[class*="language-"] {
+ padding: 0.2em;
+ padding-top: 1px;
+ padding-bottom: 1px;
+ background: #f8f8f8;
+ border: 1px solid #dddddd;
+}
+
+.token.comment,
+.token.prolog,
+.token.doctype,
+.token.cdata {
+ color: #999988;
+ font-style: italic;
+}
+
+.token.namespace {
+ opacity: 0.7;
+}
+
+.token.string,
+.token.attr-value {
+ color: #e3116c;
+}
+
+.token.punctuation,
+.token.operator {
+ color: #393a34; /* no highlight */
+}
+
+.token.entity,
+.token.url,
+.token.symbol,
+.token.number,
+.token.boolean,
+.token.variable,
+.token.constant,
+.token.property,
+.token.regex,
+.token.inserted {
+ color: #36acaa;
+}
+
+.token.atrule,
+.token.keyword,
+.token.attr-name,
+.language-autohotkey .token.selector {
+ color: #00a4db;
+}
+
+.token.function,
+.token.deleted,
+.language-autohotkey .token.tag {
+ color: #9a050f;
+}
+
+.token.tag,
+.token.selector,
+.language-autohotkey .token.keyword {
+ color: #00009f;
+}
+
+.token.important,
+.token.function,
+.token.bold {
+ font-weight: bold;
+}
+
+.token.italic {
+ font-style: italic;
+}
diff --git a/sitemap.xml b/sitemap.xml
index 45960bb..a60dbb2 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -176,7 +176,7 @@
- /site.css?v=b0813e810319
+ /site.css?v=122d2bbcc39b
2025-06-06T04:44:47.546Z
@@ -228,7 +228,7 @@
/feed.xml
- 2025-06-15T17:26:28.478Z
+ 2025-06-15T18:00:31.327Z
diff --git a/unoffice-hours/index.html b/unoffice-hours/index.html
index 78bc714..289a700 100644
--- a/unoffice-hours/index.html
+++ b/unoffice-hours/index.html
@@ -6,7 +6,7 @@
name="viewport"
content="width=device-width, initial-scale=1.0, viewport-fit=cover"
/>
-
+
-
+