commit 91f6670945c64d7a224179469e2c616107e3f950
Author: emmett1 <emmett1.2miligrams@protonmail.com>
Date: Sun, 7 Sep 2025 22:26:10 +0800
updated email
Diffstat:
12 files changed, 192 insertions(+), 0 deletions(-)
diff --git a/.domains b/.domains
@@ -0,0 +1 @@
+emmett1.my
+\ No newline at end of file
diff --git a/.gitignore b/.gitignore
@@ -0,0 +1,2 @@
+/public/
+md2html.sh
diff --git a/.woodpecker.yml b/.woodpecker.yml
@@ -0,0 +1,24 @@
+steps:
+ publish:
+ image: alpine:edge
+ environment:
+ CBMAIL:
+ from_secret: "mail"
+ CBTOKEN:
+ from_secret: "codeberg_token"
+ commands:
+ - apk add --no-cache git build-base
+ - chmod +x ./genhtml.sh
+ - ./genhtml.sh
+ - git config --global user.email "$${CBMAIL}"
+ - git config --global user.name "Woodpecker CI"
+ - git clone -b pages https://$${CBTOKEN}@codeberg.org/$CI_REPO.git $CI_REPO_NAME
+ - cd $CI_REPO_NAME
+ - git rm -r "*" || true # Don't fail if there's nothing to remove
+ - cp -ar ../public/. ../.domains . || true
+ - git add --all
+ - git commit -m "Woodpecker CI ${CI_COMMIT_SHA} [SKIP CI]" --allow-empty
+ - git push
+ when:
+ event: [push]
+
diff --git a/LICENSE b/LICENSE
@@ -0,0 +1,7 @@
+Copyright © 2024 Emmett1
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/assets/pixelfox.png b/assets/pixelfox.png
Binary files differ.
diff --git a/footer b/footer
@@ -0,0 +1,5 @@
+<hr>
+<p>Copyright (C) Emmett1, 2024-2025</p>
+</div>
+</body>
+</html>
diff --git a/genhtml.sh b/genhtml.sh
@@ -0,0 +1,39 @@
+#!/bin/sh -e
+
+rm -rf public
+mkdir -p public
+
+if [ ! -f md2html.sh ]; then
+ curl -LO https://codeberg.org/emmett1/md2html/raw/branch/main/md2html.sh || { rm -f md2html.sh; exit 1; }
+fi
+chmod +x md2html.sh
+
+# posts
+mkdir -p public/posts
+for i in posts/*.md; do
+ echo "generating html for $i..."
+ i=${i#*/}
+ {
+ sed "s/@TITLE@/posts/g" header
+ ./md2html.sh posts/$i
+ cat footer
+ } > public/posts/${i%.md}.html
+done
+
+# top files
+for i in *.md; do
+ echo "generating html for $i..."
+ {
+ title=${i%.md}
+ case ${i%.md} in index) title=home; esac
+ sed "s/@TITLE@/$title/g" header
+ ./md2html.sh $i
+ cat footer
+ } > public/${i%.md}.html
+done
+
+if [ -d assets ]; then
+ cp -ra assets public/
+fi
+
+exit 0
diff --git a/header b/header
@@ -0,0 +1,73 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+<meta charset="UTF-8">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<title>Emmett1's Space - @TITLE@</title>
+<link rel="icon" href="assets/pixelfox.png" type="image/png">
+<style>
+ body {
+ font-family: monospace;
+ font-size: 14px;
+ line-height: 1.25;
+ max-width: 60em;
+ margin-left: auto;
+ margin-right: auto;
+ padding-left: 1em;
+ padding-right: 1em;
+ background-color: #242424;
+ color: #fefefe;
+ }
+ pre {
+ background-color: #2b2b2b;
+ border-radius: 3px;
+ padding: 10px;
+ overflow-x: auto;
+ }
+ code {
+ color: #f7f3d6;
+ white-space: pre-wrap;
+ }
+ img {
+ display: block;
+ max-width: 100%;
+ }
+ hr {
+ border: 0;
+ border-top: 1px dashed #fefefe;
+ margin: 20px 0;
+ }
+ table {
+ width: 100%;
+ border-collapse: collapse;
+ }
+ th, td {
+ padding: 4px;
+ }
+ th {
+ background-color: #221e1f;
+ }
+ table, th, td {
+ border: 1px dashed #e7e8eb;
+ }
+ a {
+ color: #90cbf9;
+ text-decoration: none;
+ }
+ a:hover {
+ color: #869edc;
+ text-decoration: underline;
+ }
+ blockquote {
+ font-family: monospace;
+ font-style: italic;
+ margin-left: 1em;
+ padding-left: 1em;
+ }
+</style>
+</head>
+<body>
+<div class="centered-wrapper">
+<h1>@TITLE@</h1>
+<a href="/">home</a> / <a href="/posts">posts</a> / <a href="/links.html">links</a> / <a href="https://codeberg.org/emmett1">codeberg</a> / <a href="https://github.com/emmett1">github</a>
+<hr>
diff --git a/index.md b/index.md
@@ -0,0 +1,29 @@
+about me
+--------
+
+I’m a minimalist who likes keeping things simple and efficient. I have a deep love for technology, with a particular passion for Linux and all things open-source. Shell scripting is one of my favorite ways to automate and streamline tasks, and I enjoy finding creative solutions through code. When I'm not immersed in tech, you’ll find me listening to music, which is a constant source of inspiration and relaxation for me.
+
+>“The only way to do great work is to love what you do.” – Steve Jobs
+
+projects
+--------
+
+- [https://krak3n.my](https://krak3n.my): a lightweight musl + clang + busybox linux distribution
+- [https://alicelinux.emmett1.net](https://alicelinux.emmett1.net): a minimal musl + clang + libressl + busybox based linux distribution
+- [https://venomlinux.org](https://venomlinux.org): a lightweight sourcebased linux distribution
+- [https://codeberg.org/emmett1/spm](https://codeberg.org/emmett1/spm): a simple package manager
+- [https://codeberg.org/emmett1/crux-musl](https://codeberg.org/emmett1/crux-musl): CRUX but musl instead of glibc
+
+contact
+-------
+
+- email: root at emmett1 dot my
+- irc: emmett1 at #crux #opencrux #krak3n (libera)
+- telegram: [https://t.me/emmett1](https://t.me/emmett1)
+
+coffee
+------
+
+- [paypal](https://paypal.me/syazwanemmett)
+- [ko-fi](https://ko-fi.com/emmett1)
+- [buymeacoffee](https://buymeacoffee.com/emmett1)
diff --git a/links.md b/links.md
@@ -0,0 +1,8 @@
+This is some interesting links for me, and you should have a look at it too :D
+
+- [https://blog.z3bra.org](https://blog.z3bra.org): monochromatic blog
+- [https://suckless.org](https://suckless.org): less suck softwares
+- [https://kisscommunity.org](https://kisscommunity.org): simple kiss linux distribution
+- [https://crux.nu](https://crux.nu): lightweight linux distribution
+- [https://github.com/oasislinux/oasis](https://github.com/oasislinux/oasis): a small statically-linked linux system
+- [https://arachsys.github.io/#linux-distribution](https://arachsys.github.io/#linux-distribution): a small linux distribution
+\ No newline at end of file
diff --git a/posts.md b/posts.md
@@ -0,0 +1,2 @@
+coming soon
+-----------
diff --git a/posts/introduction.md b/posts/introduction.md