about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-06-10 17:03:18 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-06-10 17:03:18 +0200
commitf1a8f66e9083858005078b1cc427910b32c56a50 (patch)
tree5810b26574cfb240194be2c6035b5ede24b62ee9
parenta6f785efc2fae04f83b5b1533535986e7ef2fa52 (diff)
downloadniedzwiedzinski.cyou-f1a8f66e9083858005078b1cc427910b32c56a50.tar.gz
niedzwiedzinski.cyou-f1a8f66e9083858005078b1cc427910b32c56a50.zip
Add newpost
-rwxr-xr-xnewpost10
-rw-r--r--src/blog/2021-06-08.gmi13
-rw-r--r--src/blog/index.gmi1
3 files changed, 24 insertions, 0 deletions
diff --git a/newpost b/newpost
new file mode 100755
index 0000000..4460ae3
--- /dev/null
+++ b/newpost
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+DIR=$(dirname $(readlink -f $0))/src/blog
+
+curDate=$(date +%Y-%m-%d)
+
+[ ! -f $DIR/$curDate.gmi ] && create=1 && echo "# $curDate |" > $DIR/$curDate.gmi
+vim $DIR/$curDate.gmi
+[ $create = 1 ] && sed -i "15i\\
+=> $curDate.gmi $(head -n1 $DIR/$curDate.gmi | cut -c 3-)" $DIR/index.gmi
diff --git a/src/blog/2021-06-08.gmi b/src/blog/2021-06-08.gmi
new file mode 100644
index 0000000..1c0f7b4
--- /dev/null
+++ b/src/blog/2021-06-08.gmi
@@ -0,0 +1,13 @@
+# 2021-06-08 | IPFS
+
+IPFS is a cool tech for creating distributed file storages. It's very similiar to torrents, yet very different.
+
+There's a false belief that torrents are made for vicious activities like porn and pirating movies. And while it's a sad truth that immoral content is being shared over the torrent network, there are a lot of great applications of torrents. During the NixCon 2020 there was a talk by a guy from some university, where he described how they were able to netboot whole campus of PC labs from a single server using the torrent protocol.
+
+Regardless, IPFS will not replace torrents. The cause of IPFS is to fight with centralization of information. To create a medium for sharing content for free and without any jurisdiction or censorship.
+
+I'm still hacking around it, trying to understand how it works, but it's a quite impressive idea.
+
+Futhermore the creators of IPFS now try to monetize the platform to gain interest of server owners. If they will be able to share their spare disk space, the whole community will gain, and the owner will be rewarded with a cryptocoin - filecoin.
+
+The only issue is with the minimum hardware specs. In filecoin's docs they require to have 8-core CPU and 128GB of RAM! Maybe the specs are so high to ensure the quality of the network, but that makes it almost imposible to join the network without spending too much money on the equipment.
diff --git a/src/blog/index.gmi b/src/blog/index.gmi
index 617278a..c4589c6 100644
--- a/src/blog/index.gmi
+++ b/src/blog/index.gmi
@@ -12,6 +12,7 @@ I don't write much. But when I do, I put it here.
 
 => ../feed.xml Feed
 
+=> 2021-06-08.gmi 2021-06-08 | IPFS
 => 2021-06-05.gmi 2021-06-05 | Kindle is my new reader
 => 2021-05-26.gmi 2021-05-26 | Back in space
 => 2020-11-19.gmi 2020-11-19 | Thinking about future