diff --git a/Justfile b/Justfile index 17e5e33e..0f430f58 100644 --- a/Justfile +++ b/Justfile @@ -1,2 +1,2 @@ serve: - marmite pype.dev site --watch --serve --bind "0.0.0.0:8001" + marmite pype.dev markout --watch --serve --bind "0.0.0.0:8001" diff --git a/pype.dev/content/blog/benchmark-your-disks-with-fio.md b/pype.dev/content/blog/benchmark-your-disks-with-fio.md index afe7e4f8..f8554c07 100644 --- a/pype.dev/content/blog/benchmark-your-disks-with-fio.md +++ b/pype.dev/content/blog/benchmark-your-disks-with-fio.md @@ -31,7 +31,8 @@ Here is a random screenshot of my glances homepage at time of writing - The only major load on my server is some `ffmpeg` transcoding (about 60% CPU utilization)... -![Alt Text](/media/glances-iowait.png) +glances + As you can see... there's a lot of issues and _I don't even know what they mean_. diff --git a/pype.dev/content/blog/initial-proxmox-setup.md b/pype.dev/content/blog/initial-proxmox-setup.md index 4d53f783..d2ce8d4d 100644 --- a/pype.dev/content/blog/initial-proxmox-setup.md +++ b/pype.dev/content/blog/initial-proxmox-setup.md @@ -10,4 +10,9 @@ tags: --- -Look at notes in home-server... apt repos, zfs, etc. +1. `apt-get` by default wil go to the pve.enterprise repos so we need to point it to the non-enterprise ones. +``` +rm /etc/apt/sources.list.d/pve-enterprise.list +vim /etc/apt/sources.list.d/pve-no-subscription.list +# add deb http://download.proxmox.com/debian/pve buster pve-no-subscription +``` diff --git a/pype.dev/content/blog/ipython-prompt.md b/pype.dev/content/blog/ipython-prompt.md index ed50298a..7d449f99 100644 --- a/pype.dev/content/blog/ipython-prompt.md +++ b/pype.dev/content/blog/ipython-prompt.md @@ -25,16 +25,17 @@ I won't write about that here but you can find my `rich` config [here](https://g My zsh prompt looks a little something like this: -![Alt Text](/media/zsh-starship-prompt.png) +starship + And after my ipython customiztion it currently (subject to much change but this is as of my dotfiles commit #d22088f6be81a58b5f7dfb73b7a4088cbdd9fece on `main`). -![Alt Text](/media/ipython-prompt.png) +ipython Now in ipython I have an indicator of my working directory, git branch, python environment, and a note that I'm in `ipython` and not `zsh`. I also configured my prompt to warn me if I'm _not_ in a git directory! -![Alt Text](/media/ipython-prompt-no-git.png) +ipython-ng All in all the customization isn't too bad with just 2 specific files. diff --git a/pype.dev/content/blog/modal-labs.md b/pype.dev/content/blog/modal-labs.md index d7dd05ee..e2e3237b 100644 --- a/pype.dev/content/blog/modal-labs.md +++ b/pype.dev/content/blog/modal-labs.md @@ -102,3 +102,14 @@ An environment variable, `BASE_VERSION` that I expect to be in my base image was not available to the python function in my Modal app... hopefully the log is still [here](https://modal.com/logs/ap-qYjE45dciqgT3C3CpNp3RL?functionId=fu-rOt31ShRE1W1CQfuf02fsq&taskId=ta-dm8BfiblvFLwVIQyt75YC2&inputId=in-n64klEFrLtbcm2BiykJEvW) + + +## GitHub Actions + +I think it'd be easy to deploy from GH actions... just need an API Key... + +# Deployment + +Without gitops it's already ahrd to manage my versions... need to get that built in either to github or locally sooooon + +Nomad?? :D diff --git a/pype.dev/content/blog/plotly-and-streamlit.md b/pype.dev/content/blog/plotly-and-streamlit.md index a2f54c71..3f2e842d 100644 --- a/pype.dev/content/blog/plotly-and-streamlit.md +++ b/pype.dev/content/blog/plotly-and-streamlit.md @@ -155,4 +155,5 @@ if __name__ == "__main__": You can save this as `my_dash.py` and run with `streamlit run my_dash.py` and should see something like the following! -![Alt Text](/media/plotly-streamlit.gif "plotly-streamlit-gif") +plotly + diff --git a/pype.dev/content/blog/starship.md b/pype.dev/content/blog/starship.md index 3aab6659..bd8c2e2b 100644 --- a/pype.dev/content/blog/starship.md +++ b/pype.dev/content/blog/starship.md @@ -19,11 +19,13 @@ The default sh/bash/zsh prompts are... to put it lightly... garbage... I can't s Here's the default `sh` prompt... -![Alt Text](/media/sh-prompt.png) + +sh + Then switching to `zsh` you get something marginally better (plus tab completion!) -![Alt Text](/media/zsh-prompt.png) +zsh But this still is super gross... there's nothing to indicate file types and no status information readily available (ie. `git status` etc.) @@ -37,7 +39,7 @@ Kitty themes though - do not give me a nice prompt. The default prompt you get with `oh-my-zsh` themes isn't bad though (and you can pick from several default themes)... -![Alt Text](/media/zsh-oh-my-zsh-prompt.png) +omz Notice that you get some nice coloring and some default `git` status stuff, mainly the branch you are on. There's plugins to show you more and that's all well and good, but again it's not my choice... @@ -59,7 +61,7 @@ My starship config is found [here](https://github.com/nicpayne713/dotfiles/blob/ Now I have a beautiful prompt with relevant information that's a dream to look at! -![Alt Text](/media/zsh-starship-prompt.png) +starship I have configured my starship to show me relevant `git status` options (stashes, untracked files, etc etc.) I also have starship show me if I'm in a git repo, what branch I'm on, if I'm in a python project and if so what virtual environment is active. diff --git a/pype.dev/content/blog/tiddly-wiki.md b/pype.dev/content/blog/tiddly-wiki.md index 382f9781..e7f46b79 100644 --- a/pype.dev/content/blog/tiddly-wiki.md +++ b/pype.dev/content/blog/tiddly-wiki.md @@ -46,11 +46,11 @@ Setting static IP on Ubuntu 20.04 addresses: [8.8.4.4, 8.8.8.8] ``` -``` -![Alt text](/media/tiddlywiki-example.png "A Tiddler") +tiddlywiki +``` The `#` create a numbered list, `//` creates an italicized heading, and `!` creates headings similar to Markdown's `#`. The differences aren't too bad to keep in mind and what renders out is totally depenent on the tidlywiki itself. My template has a nice nord feel to it, feel free to download from my github and try it out! diff --git a/pype.dev/content/blog/truenas-and-wireguard.md b/pype.dev/content/blog/truenas-and-wireguard.md index cd57347f..941aacfa 100644 --- a/pype.dev/content/blog/truenas-and-wireguard.md +++ b/pype.dev/content/blog/truenas-and-wireguard.md @@ -81,4 +81,4 @@ This really threw me for a loop today but is just another reminder that if you h Give her the 'ol reboot and now if I check `wg` I should see some traffic on my wireguard tunnel! -![Alt text](/media/truenas-wireguard.png "truenas-wireguard") +TrueNAS Wireguard diff --git a/pype.dev/content/media/builtin-calendar.png b/pype.dev/content/media/builtin-calendar.png deleted file mode 100644 index bb004032..00000000 Binary files a/pype.dev/content/media/builtin-calendar.png and /dev/null differ diff --git a/pype.dev/content/media/df-memory-usage.png b/pype.dev/content/media/df-memory-usage.png deleted file mode 100644 index 9fdf1d65..00000000 Binary files a/pype.dev/content/media/df-memory-usage.png and /dev/null differ diff --git a/pype.dev/content/media/glances-iowait.png b/pype.dev/content/media/glances-iowait.png deleted file mode 100644 index 2a3a4bf4..00000000 Binary files a/pype.dev/content/media/glances-iowait.png and /dev/null differ diff --git a/pype.dev/content/media/htop-d.png b/pype.dev/content/media/htop-d.png deleted file mode 100644 index fa3adb91..00000000 Binary files a/pype.dev/content/media/htop-d.png and /dev/null differ diff --git a/pype.dev/content/media/icon2-round.png b/pype.dev/content/media/icon2-round.png new file mode 100644 index 00000000..2c237e04 Binary files /dev/null and b/pype.dev/content/media/icon2-round.png differ diff --git a/pype.dev/content/media/icon2.png b/pype.dev/content/media/icon2.png new file mode 100644 index 00000000..940871ea Binary files /dev/null and b/pype.dev/content/media/icon2.png differ diff --git a/pype.dev/content/media/ipython-prompt-no-git.png b/pype.dev/content/media/ipython-prompt-no-git.png deleted file mode 100644 index 4553bdf7..00000000 Binary files a/pype.dev/content/media/ipython-prompt-no-git.png and /dev/null differ diff --git a/pype.dev/content/media/ipython-prompt.png b/pype.dev/content/media/ipython-prompt.png deleted file mode 100644 index 931e8f34..00000000 Binary files a/pype.dev/content/media/ipython-prompt.png and /dev/null differ diff --git a/pype.dev/content/media/plotly-streamlit.gif b/pype.dev/content/media/plotly-streamlit.gif deleted file mode 100644 index 9d4a1948..00000000 Binary files a/pype.dev/content/media/plotly-streamlit.gif and /dev/null differ diff --git a/pype.dev/content/media/py-print-align.png b/pype.dev/content/media/py-print-align.png deleted file mode 100644 index 80a8da71..00000000 Binary files a/pype.dev/content/media/py-print-align.png and /dev/null differ diff --git a/pype.dev/content/media/python-crop.png b/pype.dev/content/media/python-crop.png deleted file mode 100644 index 2a685780..00000000 Binary files a/pype.dev/content/media/python-crop.png and /dev/null differ diff --git a/pype.dev/content/media/python.png b/pype.dev/content/media/python.png deleted file mode 100644 index b951c65b..00000000 Binary files a/pype.dev/content/media/python.png and /dev/null differ diff --git a/pype.dev/content/media/sh-prompt.png b/pype.dev/content/media/sh-prompt.png deleted file mode 100644 index 7efdb880..00000000 Binary files a/pype.dev/content/media/sh-prompt.png and /dev/null differ diff --git a/pype.dev/content/media/skimpy-ipython.png b/pype.dev/content/media/skimpy-ipython.png deleted file mode 100644 index f911847e..00000000 Binary files a/pype.dev/content/media/skimpy-ipython.png and /dev/null differ diff --git a/pype.dev/content/media/skimpy-ipython2.png b/pype.dev/content/media/skimpy-ipython2.png deleted file mode 100644 index b265eb3c..00000000 Binary files a/pype.dev/content/media/skimpy-ipython2.png and /dev/null differ diff --git a/pype.dev/content/media/skimpy-zsh.png b/pype.dev/content/media/skimpy-zsh.png deleted file mode 100644 index 36a33efc..00000000 Binary files a/pype.dev/content/media/skimpy-zsh.png and /dev/null differ diff --git a/pype.dev/content/media/tiddlywiki-example.png b/pype.dev/content/media/tiddlywiki-example.png deleted file mode 100644 index 09d74703..00000000 Binary files a/pype.dev/content/media/tiddlywiki-example.png and /dev/null differ diff --git a/pype.dev/content/media/truenas-wireguard.png b/pype.dev/content/media/truenas-wireguard.png deleted file mode 100644 index 99e66770..00000000 Binary files a/pype.dev/content/media/truenas-wireguard.png and /dev/null differ diff --git a/pype.dev/content/media/typed-dict-warning.png b/pype.dev/content/media/typed-dict-warning.png deleted file mode 100644 index d8579839..00000000 Binary files a/pype.dev/content/media/typed-dict-warning.png and /dev/null differ diff --git a/pype.dev/content/media/typed-dict.png b/pype.dev/content/media/typed-dict.png deleted file mode 100644 index 6170cda3..00000000 Binary files a/pype.dev/content/media/typed-dict.png and /dev/null differ diff --git a/pype.dev/content/media/zsh-oh-my-zsh-prompt.png b/pype.dev/content/media/zsh-oh-my-zsh-prompt.png deleted file mode 100644 index f2ae38d4..00000000 Binary files a/pype.dev/content/media/zsh-oh-my-zsh-prompt.png and /dev/null differ diff --git a/pype.dev/content/media/zsh-prompt.png b/pype.dev/content/media/zsh-prompt.png deleted file mode 100644 index 56a447b5..00000000 Binary files a/pype.dev/content/media/zsh-prompt.png and /dev/null differ diff --git a/pype.dev/content/media/zsh-starship-prompt.png b/pype.dev/content/media/zsh-starship-prompt.png deleted file mode 100644 index a76070b3..00000000 Binary files a/pype.dev/content/media/zsh-starship-prompt.png and /dev/null differ diff --git a/pype.dev/content/til/abstract-base-class.md b/pype.dev/content/til/abstract-base-class.md index 2fb2cee4..999205ce 100644 --- a/pype.dev/content/til/abstract-base-class.md +++ b/pype.dev/content/til/abstract-base-class.md @@ -37,7 +37,7 @@ TypeError: Can't instantiate abstract class MyFamily with abstract methods get_d ``` -![Alt text](/media/py-abc-meta.png "abcmeta") +abcmetadata In order for me to extend `Family` I have to implement the method `get_dad` diff --git a/pype.dev/content/til/d-and-uninterruptable-sleep.md b/pype.dev/content/til/d-and-uninterruptable-sleep.md index 29b0a06f..2f68857d 100644 --- a/pype.dev/content/til/d-and-uninterruptable-sleep.md +++ b/pype.dev/content/til/d-and-uninterruptable-sleep.md @@ -15,7 +15,7 @@ tags: I recently have been having significant home server issues, and that's not the point of this - today I learned what `D` state is when looking at htop. -![Alt Text](/media/d-htop.png "htop-d") +htop-d Apparently this means "uninterruptable sleep" and it's a dev's nightmare... diff --git a/pype.dev/content/til/dataframe-memory-usage.md b/pype.dev/content/til/dataframe-memory-usage.md index e3e2dc5a..843b0bff 100644 --- a/pype.dev/content/til/dataframe-memory-usage.md +++ b/pype.dev/content/til/dataframe-memory-usage.md @@ -26,4 +26,5 @@ df = pd.read_csv("cars.csv") df.info(memory_usage="deep") ``` -![Alt text](/media/df-memory-usage.png "DF memory") + +DataFrame Memory Usage diff --git a/pype.dev/content/til/python-builtin-calendar.md b/pype.dev/content/til/python-builtin-calendar.md index 8e301242..d1213507 100644 --- a/pype.dev/content/til/python-builtin-calendar.md +++ b/pype.dev/content/til/python-builtin-calendar.md @@ -16,8 +16,7 @@ I recently learned of an awesome builtin called `calendar` that has way more th I only needed it because I was too lazy to hard code the 7 weekdays into my module but it turns out there's a lot of useful things like `calendar.isleap()`! -![Alt text](/media/builtin-calendar.png "calendar") - +builtin ## Future use I'm not exactly sure what will come my way where `calendar` will be super relevant but like anything, I'm just glad to know it exists for when the time arises! diff --git a/pype.dev/content/til/python-f-string-align.md b/pype.dev/content/til/python-f-string-align.md index d8060fba..2ba35e28 100644 --- a/pype.dev/content/til/python-f-string-align.md +++ b/pype.dev/content/til/python-f-string-align.md @@ -42,6 +42,4 @@ for varable, score in zip(variables, scores): ``` - - -![Alt text](/media/py-print-align.png "python print") +pyprintalign diff --git a/pype.dev/content/til/skimpy.md b/pype.dev/content/til/skimpy.md index a1c89175..c9fe5e9c 100644 --- a/pype.dev/content/til/skimpy.md +++ b/pype.dev/content/til/skimpy.md @@ -23,7 +23,7 @@ __yes!__ First thing to do is `pip install skimpy` and then it's as easy to get some summary stats with `skimpy ` -![Alt Text](/media/skimpy-zsh.png "skimpy-zsh") +Skimpy ZSH This is super nice for seeing missing values in particular as well as the distribution shape of the data. @@ -35,10 +35,10 @@ So... can I see this table quickly without breaking my iPython workflow? __Of course you can with magic!__ -![Alt Text](/media/skimpy-ipython.png "skimpy-ipython") +Skimpy iPython The above assumes you're looking at a file, like you would in the terminal. `skimpy` works even better in iPython with `from skimpy import skim` then pass any DataFrame to `skim`! -![Alt Text](/media/skimpy-ipython2.png "skimpy-ipython2") +Skimpy iPython2 diff --git a/pype.dev/content/til/typeddict.md b/pype.dev/content/til/typeddict.md index 85dc7c45..17c22ab3 100644 --- a/pype.dev/content/til/typeddict.md +++ b/pype.dev/content/til/typeddict.md @@ -36,7 +36,7 @@ my_dict["key_2"].pop() With the above script you'll get an annoying warning about using `pop` on `key_2`. -![Alt text](/media/typed-dict-warning.png "dict-warning") +typeddict ## The Solution @@ -59,7 +59,7 @@ my_typed_dict: MyDict = { my_typed_dict["key_2"].pop() ``` -![Alt text](/media/typed-dict.png "typeddict") +typeddict > I was able to import TypedDict from typing, mypy_extensions, and typing_extensions