diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2021-05-23 14:26:47 +0000 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2021-05-23 14:26:47 +0000 |
commit | 4af67e2bbbda9a882c815246097059badd86c6ce (patch) | |
tree | 902a94c567150db4ff89fc4b73db252912cb33f6 | |
parent | 1b81b479ec8c60d376098bb4f0af40a83ce2747e (diff) | |
download | boymoder.blog-4af67e2bbbda9a882c815246097059badd86c6ce.tar.gz boymoder.blog-4af67e2bbbda9a882c815246097059badd86c6ce.zip |
added list parser option
-rwxr-xr-x | hardware.md | 21 | ||||
-rwxr-xr-x | parser.py | 9 | ||||
-rwxr-xr-x | static/images/random.jpg | bin | 366140 -> 291339 bytes | |||
-rw-r--r-- | static/index.md | 2 |
4 files changed, 29 insertions, 3 deletions
diff --git a/hardware.md b/hardware.md new file mode 100755 index 0000000..b5f1d0d --- /dev/null +++ b/hardware.md @@ -0,0 +1,21 @@ +# general computing +- my main computer that i do most of my work on is a thinkpad x260. it has a 6300U cpu and 8Gb of ram. it runs debian unstable, manjaro and windows for when i need to use shitty proprietary software +- i also use a thinkpad x200. it has an amazing keyboard so its great for writing latex documents. it's librebooted and has no proprietary software at all on it. its running devuan currently since parabola is shit + + + +# games etc +i have a small form factor dell optiplex 3060 with an 8500T cpu +with 16Gb of memory. its useful to have a windows computer laying +about that i can play games with my friends on + +# server +- my nas has a i5-9400t cpu. i went with the t version since it has a lower tdp and therefore it is cheaper to run. it runs truenas (formerly called freenas). it also runs all of my docker containers on a ubuntu server VM. it has 32gb of memory for a nice big zfs cache (ideal for when i upgrade to 10 gigabit later)! and is potentially upgradeable to 64gb. it has a passive cooler for quietness. +- i also have a raspberry pi 3b+ running pihole and some torrent clients in docker it should be connected to a vpn all the time +- docker is shit, using systemd services is better, but docker is used a lot so i wanted to teach myself how to use it + + + +(old pic from when i still had the dvd drive attached) + +all my computers and servers are connected to my periferals with an expensive startech kvm switch. kvm switches are insanely expensive for some reason, especially dual monitor ones @@ -80,6 +80,7 @@ def main(): echo_parser = subparse.add_parser("echo", help = "Print markdown render to stdout") update_parser = subparse.add_parser("update", help = "Replace a markdown file") export_parser = subparse.add_parser("export", help = "Export a database markdown file to disk") + list_parser = subparse.add_parser("list", help = "List all the markdowns in the database") for s in [save_parser, preview_parser, echo_parser, update_parser]: s.add_argument( @@ -103,7 +104,7 @@ def main(): required = True ) - for s in [save_parser, update_parser, export_parser]: + for s in [save_parser, update_parser, export_parser, list_parser]: s.add_argument( "-u", "--username", help = "Username to use for the database", @@ -137,7 +138,7 @@ def main(): print("No verb specified... Nothing to do... Exiting...") exit() - if verb in ["save", "export", "update"]: + if verb in ["save", "export", "update", "list"]: with database.Database( safeLogin = False, user = args["username"], @@ -159,6 +160,10 @@ def main(): with open(args["markdown"], "r") as f: db.update_thought_markdown(args["id"], f.read()) + elif verb == "list": + for id_, title, dt, category_name in db.get_all_thoughts(): + print("%d\t%s\t%s\t%s" % (id_, title, dt, category_name)) + if verb == "preview": preview_markdown(args["markdown"], args["title"], args["category"]) diff --git a/static/images/random.jpg b/static/images/random.jpg Binary files differindex 148c957..3bedb1a 100755 --- a/static/images/random.jpg +++ b/static/images/random.jpg diff --git a/static/index.md b/static/index.md index 1c7e3e9..c781cb2 100644 --- a/static/index.md +++ b/static/index.md @@ -8,5 +8,5 @@ i'll post my thoughts on here sometimes, and use this site to link to other stuf - [nextcloud - dropbox (+ much more!) alternative](https://nc.eda.gay) - [invidious - youtube alternative](https://invidious.eda.gay) - [nitter - alternative twitter frontend](https://nitter.eda.gay) -- [gitea - github alternative](https://git.eda.gay/) +- [gitea - github alternative](https://git.eda.gay/) (currently down while i migrate to gitlab docker) - [bibliogram - less annoying instagram front end](https://bibliogram.eda.gay/applysettings/c8009ec7533d542a90bb1d41563435c1) |