aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2021-05-23 14:26:47 +0000
committerjwansek <eddie.atten.ea29@gmail.com>2021-05-23 14:26:47 +0000
commit4af67e2bbbda9a882c815246097059badd86c6ce (patch)
tree902a94c567150db4ff89fc4b73db252912cb33f6
parent1b81b479ec8c60d376098bb4f0af40a83ce2747e (diff)
downloadeda.gay-4af67e2bbbda9a882c815246097059badd86c6ce.tar.gz
eda.gay-4af67e2bbbda9a882c815246097059badd86c6ce.zip
added list parser option
-rwxr-xr-xhardware.md21
-rwxr-xr-xparser.py9
-rwxr-xr-xstatic/images/random.jpgbin366140 -> 291339 bytes
-rw-r--r--static/index.md2
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
+
+![x200 with hand for scale](https://eda.gay/img/x200.jpg?h=400&w=200)
+
+# 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
+
+![please disregard the dust](https://eda.gay/img/server.jpg?w=400&h=200)
+
+(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
diff --git a/parser.py b/parser.py
index 9071a11..e550d53 100755
--- a/parser.py
+++ b/parser.py
@@ -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
index 148c957..3bedb1a 100755
--- a/static/images/random.jpg
+++ b/static/images/random.jpg
Binary files differ
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)