Skip to content

Commit

Permalink
✨ [FEAT] 10-30-2024 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
domogami committed Oct 31, 2024
1 parent 94cc139 commit 2fe9ac2
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 9 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,12 @@ A place for me to publish my learnings as I dive into topics and document my act
Because I couldn't bring myself to pay 20 dollars a month for Obsidian Publish, I have decided to use a modified version of [quartz](https://quartz.jzhao.xyz/) based on [Brandon Boswell's Tutorial](https://www.youtube.com/watch?v=ITiiuBNVue0&t=364s) which has allowed me to host my own digital garden using GitHub Pages.

🔗 [Dom's Digital Garden](https://domogami.github.io)

## Note to self
How to develop locally

```shell
nvm use 20
npm install
npx quartz build --serve --verbose
```
58 changes: 49 additions & 9 deletions content/Misc/Home Network.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,56 @@
---
title: Home Network
tags: ~
title: Automating Obsidian Publish
---

## Basics
## Script

For a basic upgraded setup with a non-fiber plan, you will need a Modem that plugs into your Coax port, then a router that plugs into the modem. Additionally, you can add a firewall that plugs into the router that can help prevent against IP scanning and block malicious requests.
To make it easier for me to keep my website up to date with my personal vault, I needed to automate the publish process. Below is a script I can trigger from RayCast in order to quickly update my website with a simple trig\[[]()\]()ger and confirmation key.

## Recommendations
````bash
#!/bin/bash

Some of the recommendations I've received from someone who used to do IT Networking and someone who mastered in Networking are as follows:
# Remove Old Files
trash /Users/dom/Documents/GitHub/obsidian-site/quartz/content/*
trash /Users/dom/Documents/GitHub/obsidian-site/quartz/public/*

* Ubiquit unify home network
* Dream machine pro
* Purple Firewalla
# Export my Obsidian Vault to the GitHub content folder
/Users/dom/Documents/GitHub/obsidian-site/obsidian-export/target/debug/obsidian-export --frontmatter=always ~/Library/Mobile\ Documents/iCloud~md~obsidian/Documents/Dom\'s\ 2nd\ Brain/ /Users/dom/Documents/GitHub/obsidian-site/quartz/content

# Compile Quartz Site
cd /Users/dom/Documents/GitHub/obsidian-site/quartz
npx quartz build

# Save today's date for the commit name
date=$(date '+%m-%d-%Y')

# Output current changed files
OUTPUT="$(git status)"
echo "${OUTPUT}"

# A helper function to ask for confirmation
asksure() {
echo -n "Are you sure (Y/N)? "
while read -r -n 1 -s answer; do
if [[ $answer = [YyNn] ]]; then
[[ $answer = [Yy] ]] && retval=0
[[ $answer = [Nn] ]] && retval=1
break
fi
done

echo # just a final linefeed, optics...

return $retval
}

if asksure; then
# Publish!
git add .
git commit -m "✨ [FEAT] $date Update"
git push

echo "Published! 🚀"
else
echo "Aborting! ❌"
fi
````
1 change: 1 addition & 0 deletions quartz/styles/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
--lightgray: #C678DD !important;
--darkgray: #ABB2BF !important;
--outlinegray: #ABB2BF !important;
-webkit-tap-highlight-color: #282c34 !important;
}

// #181b20 Very dark
Expand Down

0 comments on commit 2fe9ac2

Please sign in to comment.