From 5b7615ed2865fd9eee297e7a1e01fb942ca58c65 Mon Sep 17 00:00:00 2001 From: Thomas Bruce Date: Tue, 18 Feb 2025 20:49:59 -0500 Subject: [PATCH 1/1] migrate from original repository + update git info --- index.html | 32 ++++++++++++ non-work/blogposts/hello-world.md | 76 +++++++++++++++++++++++++++ non-work/blogposts/template.html | 23 +++++++++ non-work/index.html | 29 +++++++++++ non-work/m/index.html | 23 +++++++++ non-work/now/index.html | 59 +++++++++++++++++++++ non-work/p/index.html | 23 +++++++++ non-work/r/index.html | 23 +++++++++ non-work/ssg.sh | 79 ++++++++++++++++++++++++++++ non-work/styles-nonpro.css | 33 ++++++++++++ non-work/w/cleanup-dist.sh | 3 ++ non-work/w/doe-insanity.html | 50 ++++++++++++++++++ non-work/w/hello-world.html | 86 +++++++++++++++++++++++++++++++ non-work/w/index.html | 19 +++++++ styles.css | 33 ++++++++++++ 15 files changed, 591 insertions(+) create mode 100644 index.html create mode 100644 non-work/blogposts/hello-world.md create mode 100644 non-work/blogposts/template.html create mode 100644 non-work/index.html create mode 100644 non-work/m/index.html create mode 100644 non-work/now/index.html create mode 100644 non-work/p/index.html create mode 100644 non-work/r/index.html create mode 100755 non-work/ssg.sh create mode 100644 non-work/styles-nonpro.css create mode 100755 non-work/w/cleanup-dist.sh create mode 100644 non-work/w/doe-insanity.html create mode 100644 non-work/w/hello-world.html create mode 100644 non-work/w/index.html create mode 100644 styles.css diff --git a/index.html b/index.html new file mode 100644 index 0000000..a858df5 --- /dev/null +++ b/index.html @@ -0,0 +1,32 @@ + + + + + + + deglebe.com + + + + +
+

thomas bruce

+

student at marist university

+ +

project organization

+

to acces my projects via gitweb, see the git link in the navbar

+

to access my projects via sr.ht:

+ sr.ht/~deglebe + +

my srht may be removed at some point, so gitweb should be treated as the most up-to-date portfolio

+ +

contact

+

thomas dot bruce 1 at marist dot edu

+
+ + diff --git a/non-work/blogposts/hello-world.md b/non-work/blogposts/hello-world.md new file mode 100644 index 0000000..e6dca76 --- /dev/null +++ b/non-work/blogposts/hello-world.md @@ -0,0 +1,76 @@ +--- +title: hello, world! +date: 01/02/2025 +author: thomas bruce +--- + +hello, world! + +this is my first blog post here, and really ever. going to be interesting to see +if i upkeep this as frequently as i would like. this post is just to get some +basic information out of the way, so i can write freely and answer any questions +which might be had. + +### about me: +my name is thomas bruce. i am a computer science (software engineering) student +and mathematics student in the hudson valley, new york. i've independently been +studying computing and maths for some years prior, however. other academic +interests of mine include botany, climatology, and political theory. + +hobbies of mine include: long-distance running, reading (mostly philosophy or +other nonfiction areas), cooking, torturing myself (writing software), and +having fun (writing software) + +obviously this not an all-encompassing biography. + +### some random points/disclaimers +there are some important things to get out of the way: + +#### what's with the lack of capitalization? +i prefer to keep my writing (outside of academic writing) in all lowercase for +a few reasons: + + - it looks better to me + - it works well with my font + - my wpm increases slightly + +if you don't like it, write a tampermonkey script to capitalize my site, and +share it for free on a non-restrictive platform. + +#### my politics +while i will continue to maintain that politics aren't the sole defining +feature of an individual, it is nothing but fair to give a bit of a bias +disclaimer about my poltical leanings. my political writings will (unless my +mind is changed) be coming from a more lib-left slant than anything else. i will +be wrong about things, or disagree with you on things, and that is ok! friction +in the physical world releases energy, which has an effect on its surroundings. +it is the same with disagreement among individuals; disagreement is nothing but +the potential for further learning and understanding. + +i do hold that there is a fundamental difference between politics and +politicking about social issues. i will differentiate between the two in my +writings. + +#### thoughts on identity +i take a sligtly more "free" approach to identity than some of my peers, based +on a loose interpretation of karl popper's philosophies: identity is not based +in the determinism of historical materialism, i.e. it is not merely a result +of conditions and intrinsic stati, but more due to individual's ability to +reason critically and their choices thereof. it is my opinion that when the self +is boiled down to a set of terms (labels) or (heaven forbid) diagnoses, it +becomes an externally-mediated concept rather than an actual personal identity. +it becomes a surface-level conceptualization of what it means to be "me", rather +than a deep knowledge of one's self. it becomes a way to explain away the +behaviours, quirks, idiosyncrasies, and more as due to a diagnosis or label or +distinction of some other kind rather than the mild differences which we all +hold from each other. + +i don't want it to be thought that i reject the comfort aspect of labels, +however. i just think that there is so much more to identity than words and +phrases. but i do think that this trend, ironically, serves to perpetuate what +was antithetical to both marx' and popper's ideologies: it continues to create +hierarchies and social distinctions which do nothing but hinder individuality +at its purist form. + +### outro +that about sums it up for this post. looking forward to writing my next one. diff --git a/non-work/blogposts/template.html b/non-work/blogposts/template.html new file mode 100644 index 0000000..98a5b39 --- /dev/null +++ b/non-work/blogposts/template.html @@ -0,0 +1,23 @@ + + + + + + + + deglebe.com + + + + + +

writing

+ + diff --git a/non-work/index.html b/non-work/index.html new file mode 100644 index 0000000..5a8c67f --- /dev/null +++ b/non-work/index.html @@ -0,0 +1,29 @@ + + + + + + + deglebe.com + + + + +
+

thomas bruce

+

student, hobby software developer, runner, enjoyer of food

+ +

contact

+

you can contact me any time on libera as deglebe

+

going to set up an email alias at some point

+
+ + diff --git a/non-work/m/index.html b/non-work/m/index.html new file mode 100644 index 0000000..e51786b --- /dev/null +++ b/non-work/m/index.html @@ -0,0 +1,23 @@ + + + + + + + deglebe.com + + + + + +

math

+

TODO

+ + diff --git a/non-work/now/index.html b/non-work/now/index.html new file mode 100644 index 0000000..4923eda --- /dev/null +++ b/non-work/now/index.html @@ -0,0 +1,59 @@ + + + + + + now | deglebe.com + + + + + +

now

+ +
+

last update: 14/02/2025

+ +

reading

+

currently reading:

+ + +

school

+

classes i am currently taking:

+ + +

projects

+

personal projects i am working on:

+ + +

writings

+

stuff i am writing which might show up on this site:

+ +
+ + diff --git a/non-work/p/index.html b/non-work/p/index.html new file mode 100644 index 0000000..7863a18 --- /dev/null +++ b/non-work/p/index.html @@ -0,0 +1,23 @@ + + + + + + + deglebe.com + + + + + +

projects

+

TODO

+ + diff --git a/non-work/r/index.html b/non-work/r/index.html new file mode 100644 index 0000000..27dea36 --- /dev/null +++ b/non-work/r/index.html @@ -0,0 +1,23 @@ + + + + + + + deglebe.com + + + + + +

read

+

TODO

+ + diff --git a/non-work/ssg.sh b/non-work/ssg.sh new file mode 100755 index 0000000..2e9a77f --- /dev/null +++ b/non-work/ssg.sh @@ -0,0 +1,79 @@ +#!/bin/bash + +# directories +INPUT_DIR="blogposts" +OUTPUT_DIR="w" +INDEX_FILE="$OUTPUT_DIR/index.html" +TEMPLATE_FILE="$INPUT_DIR/template.html" + +mkdir -p "$OUTPUT_DIR" + +if [[ ! -f "$TEMPLATE_FILE" ]]; then + echo "Error: Missing template.html file." + exit 1 +fi + +TEMP_INDEX=$(mktemp) + +for md_file in "$INPUT_DIR"/*.md; do + [[ -f "$md_file" ]] || continue + + filename=$(basename -- "$md_file") + slug="${filename%.*}" # Remove extension + html_file="$OUTPUT_DIR/$slug.html" + + # Extract YAML metadata using awk + metadata=$(awk '/^---$/ {f=!f; next} f' "$md_file") + title=$(echo "$metadata" | awk -F': ' '/^title:/ {print $2}') + date=$(echo "$metadata" | awk -F': ' '/^date:/ {print $2}') + author=$(echo "$metadata" | awk -F': ' '/^author:/ {print $2}') + + # If no title is found, use the slug as a fallback + title=${title:-$slug} + date=${date:-"1970-01-01"} # Default to earliest date if missing + author=${author:-"Unknown"} + + # Convert Markdown to HTML, skipping YAML header + content=$(sed '1,/^---$/d' "$md_file" | pandoc -f markdown -t html) + + # Generate the full HTML page + awk -v title="$title" -v content="$content" ' + /

writing<\/h1>/ { print "

" title "

"; print content; next } + { print } + ' "$TEMPLATE_FILE" > "$html_file" + + echo "Generated: $html_file" + + # Append to temporary index file for sorting later + echo "$date|
  • $title - $date by $author
  • " >> "$TEMP_INDEX" +done + +# Generate updated index.html with sorted posts +{ + echo "" + echo "" + echo "Writing" + echo "" + echo "" + echo "

    writing

    " + echo "

    all opinions here are entirely my own and not endorsed by any employer, educational institution, or otherwise" + echo "

    " + echo "" + echo "" +} > "$INDEX_FILE" + +rm "$TEMP_INDEX" # Clean up + +echo "Index updated: $INDEX_FILE" diff --git a/non-work/styles-nonpro.css b/non-work/styles-nonpro.css new file mode 100644 index 0000000..2f6f0ce --- /dev/null +++ b/non-work/styles-nonpro.css @@ -0,0 +1,33 @@ + +body { + color: #fbf1c7; + background: #282828; + margin: 40px auto; + font-family: monospace; + font-size: 18px; + max-width: 650px; + padding: 0 10px; +} + +h1 { line-height: 1.2; text-align: left; } +h2, h3 { line-height: 1.2; border-bottom: 1px solid; } + +a { + color: #d79921; + text-decoration: none; + padding: 0.5em 0; +} + +img { + width: 30%; +} + +.navbar { + display: flex; + align-items: center; + justify-content: space-between; + flex-direction: row; + text-align: center; + +} + diff --git a/non-work/w/cleanup-dist.sh b/non-work/w/cleanup-dist.sh new file mode 100755 index 0000000..64fd61b --- /dev/null +++ b/non-work/w/cleanup-dist.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +find . ! -name 'index.html' ! -name 'cleanup-dist.sh' -type f -exec rm -f {} + diff --git a/non-work/w/doe-insanity.html b/non-work/w/doe-insanity.html new file mode 100644 index 0000000..10828b9 --- /dev/null +++ b/non-work/w/doe-insanity.html @@ -0,0 +1,50 @@ + + + + + + + + deglebe.com + + + + + +

    department of education insanity

    +

    thesis: the civil discourse surrounding the state of the department +of education (usa) is confused and irrational.

    +

    position: the department of education (usa) ought to be reformed in +such a way that the model of education is much looser, and it +prioritizes real learning over knowledge acquisition.

    +
    bias notice
    +

    most of my acquired knowledge surrounding educational theory and +structure comes from illich, althusser, peat,

    +
     ```
    + test code block
    + ```
    +

    context

    +

    at the time of writing, (feb 2025) the trump administration in the +united state is actively seeking to do away with the federal-level +department of education. reasons cited include:

    + +

    centralised education +creates workers

    + + diff --git a/non-work/w/hello-world.html b/non-work/w/hello-world.html new file mode 100644 index 0000000..84a503b --- /dev/null +++ b/non-work/w/hello-world.html @@ -0,0 +1,86 @@ + + + + + + + + deglebe.com + + + + + +

    hello, world!

    +

    hello, world!

    +

    this is my first blog post here, and really ever. going to be +interesting to see if i upkeep this as frequently as i would like. this +post is just to get some basic information out of the way, so i can +write freely and answer any questions which might be had.

    +

    about me:

    +

    my name is thomas bruce. i am a computer science (software +engineering) student and mathematics student in the hudson valley, new +york. i’ve independently been studying computing and maths for some +years prior, however. other academic interests of mine include botany, +climatology, and political theory.

    +

    hobbies of mine include: long-distance running, reading (mostly +philosophy or other nonfiction areas), cooking, torturing myself +(writing software), and having fun (writing software)

    +

    obviously this not an all-encompassing biography.

    +

    some random +points/disclaimers

    +

    there are some important things to get out of the way:

    +

    what’s with the lack of +capitalization?

    +

    i prefer to keep my writing (outside of academic writing) in all +lowercase for a few reasons:

    +
    - it looks better to me
    +- it works well with my font
    +- my wpm increases slightly
    +

    if you don’t like it, write a tampermonkey script to capitalize my +site, and share it for free on a non-restrictive platform.

    +

    my politics

    +

    while i will continue to maintain that politics aren’t the sole +defining feature of an individual, it is nothing but fair to give a bit +of a bias disclaimer about my poltical leanings. my political writings +will (unless my mind is changed) be coming from a more lib-left slant +than anything else. i will be wrong about things, or disagree with you +on things, and that is ok! friction in the physical world releases +energy, which has an effect on its surroundings. it is the same with +disagreement among individuals; disagreement is nothing but the +potential for further learning and understanding.

    +

    i do hold that there is a fundamental difference between politics and +politicking about social issues. i will differentiate between the two in +my writings.

    +

    thoughts on identity

    +

    i take a sligtly more “free” approach to identity than some of my +peers, based on a loose interpretation of karl popper’s philosophies: +identity is not based in the determinism of historical materialism, +i.e. it is not merely a result of conditions and intrinsic stati, but +more due to individual’s ability to reason critically and their choices +thereof. it is my opinion that when the self is boiled down to a set of +terms (labels) or (heaven forbid) diagnoses, it becomes an +externally-mediated concept rather than an actual personal identity. it +becomes a surface-level conceptualization of what it means to be “me”, +rather than a deep knowledge of one’s self. it becomes a way to explain +away the behaviours, quirks, idiosyncrasies, and more as due to a +diagnosis or label or distinction of some other kind rather than the +mild differences which we all hold from each other.

    +

    i don’t want it to be thought that i reject the comfort aspect of +labels, however. i just think that there is so much more to identity +than words and phrases. but i do think that this trend, ironically, +serves to perpetuate what was antithetical to both marx’ and popper’s +ideologies: it continues to create hierarchies and social distinctions +which do nothing but hinder individuality at its purist form.

    +

    outro

    +

    that about sums it up for this post. looking forward to writing my +next one.

    + + diff --git a/non-work/w/index.html b/non-work/w/index.html new file mode 100644 index 0000000..5da7711 --- /dev/null +++ b/non-work/w/index.html @@ -0,0 +1,19 @@ + + +Writing + + +

    writing

    +

    all opinions here are entirely my own and not endorsed by any employer, educational institution, or otherwise +

    + + diff --git a/styles.css b/styles.css new file mode 100644 index 0000000..2f6f0ce --- /dev/null +++ b/styles.css @@ -0,0 +1,33 @@ + +body { + color: #fbf1c7; + background: #282828; + margin: 40px auto; + font-family: monospace; + font-size: 18px; + max-width: 650px; + padding: 0 10px; +} + +h1 { line-height: 1.2; text-align: left; } +h2, h3 { line-height: 1.2; border-bottom: 1px solid; } + +a { + color: #d79921; + text-decoration: none; + padding: 0.5em 0; +} + +img { + width: 30%; +} + +.navbar { + display: flex; + align-items: center; + justify-content: space-between; + flex-direction: row; + text-align: center; + +} + -- 2.39.5