From c9ef7426ae6e88aef2e5c9efc0d845da045f891e Mon Sep 17 00:00:00 2001 From: Niklas Heer Date: Mon, 12 Aug 2019 22:49:27 +0200 Subject: [PATCH] Fix old posts --- ...lo-welt.md => 2011-11-08-hallo-welt.de.md} | 0 ...lkorb-10-mit-moom-fenster-verwalten.de.md} | 4 +- ...al-was-neues-heute-sounds-just-like.de.md} | 0 ...3-04-30-thinklight-script-fur-linux.de.md} | 0 ...ntu-13-04-ein-besserer-file-browser.de.md} | 0 ...13-10-26-lets-learn-programmieren-1.de.md} | 2 +- ...ammieren-2-netbeans-java-in-windows.de.md} | 2 +- ...grammieren-3-netbeans-java-in-linux.de.md} | 3 +- ...mieren-4-netbeans-java-auf-dem-mac-.de.md} | 2 +- .../posts/2014/2014-11-30-hello-jekyll.en.md | 53 +++++++++-------- .../2014-12-01-vtop-an-unknown-beauty.en.md | 18 +++--- .../posts/2015/2015-08-18-hallo-hugo.en.md | 2 +- content/posts/2019/2019-08-12_relaunch.en.md | 2 +- content/posts/9999-99-99-summary.md | 58 ------------------- 14 files changed, 45 insertions(+), 101 deletions(-) rename content/posts/2011/{2011-11-08-hallo-welt.md => 2011-11-08-hallo-welt.de.md} (100%) rename content/posts/2013/{2013-01-08-apfelkorb-10-mit-moom-fenster-verwalten.md => 2013-01-08-apfelkorb-10-mit-moom-fenster-verwalten.de.md} (77%) rename content/posts/2013/{2013-01-14-ofter-mal-was-neues-heute-sounds-just-like.md => 2013-01-14-ofter-mal-was-neues-heute-sounds-just-like.de.md} (100%) rename content/posts/2013/{2013-04-30-thinklight-script-fur-linux.md => 2013-04-30-thinklight-script-fur-linux.de.md} (100%) rename content/posts/2013/{2013-04-30-ubuntu-13-04-ein-besserer-file-browser.md => 2013-04-30-ubuntu-13-04-ein-besserer-file-browser.de.md} (100%) rename content/posts/2013/{2013-10-26-lets-learn-programmieren-1.md => 2013-10-26-lets-learn-programmieren-1.de.md} (85%) rename content/posts/2013/{2013-10-26-lets-learn-programmieren-2-netbeans-java-in-windows.md => 2013-10-26-lets-learn-programmieren-2-netbeans-java-in-windows.de.md} (80%) rename content/posts/2013/{2013-10-27-lets-learn-programmieren-3-netbeans-java-in-linux.md => 2013-10-27-lets-learn-programmieren-3-netbeans-java-in-linux.de.md} (82%) rename content/posts/2013/{2013-12-03-lets-learn-programmieren-4-netbeans-java-auf-dem-mac-.md => 2013-12-03-lets-learn-programmieren-4-netbeans-java-auf-dem-mac-.de.md} (80%) delete mode 100644 content/posts/9999-99-99-summary.md diff --git a/content/posts/2011/2011-11-08-hallo-welt.md b/content/posts/2011/2011-11-08-hallo-welt.de.md similarity index 100% rename from content/posts/2011/2011-11-08-hallo-welt.md rename to content/posts/2011/2011-11-08-hallo-welt.de.md diff --git a/content/posts/2013/2013-01-08-apfelkorb-10-mit-moom-fenster-verwalten.md b/content/posts/2013/2013-01-08-apfelkorb-10-mit-moom-fenster-verwalten.de.md similarity index 77% rename from content/posts/2013/2013-01-08-apfelkorb-10-mit-moom-fenster-verwalten.md rename to content/posts/2013/2013-01-08-apfelkorb-10-mit-moom-fenster-verwalten.de.md index 6bcb639..c305c81 100644 --- a/content/posts/2013/2013-01-08-apfelkorb-10-mit-moom-fenster-verwalten.md +++ b/content/posts/2013/2013-01-08-apfelkorb-10-mit-moom-fenster-verwalten.de.md @@ -1,8 +1,8 @@ --- -title: 'Apfelkorb #10 - mit Moom Fenster verwalten' +title: "Apfelkorb 10 - mit Moom Fenster verwalten" eyecatch: fa-youtube-play slug: apfelkorb-10_Moom -description: 'Apfelkorb #10 - mit Moom Fenster verwalten' +description: "Apfelkorb #10 - mit Moom Fenster verwalten" date: 2013-01-08 tags: [youtube, apfelkorb] --- diff --git a/content/posts/2013/2013-01-14-ofter-mal-was-neues-heute-sounds-just-like.md b/content/posts/2013/2013-01-14-ofter-mal-was-neues-heute-sounds-just-like.de.md similarity index 100% rename from content/posts/2013/2013-01-14-ofter-mal-was-neues-heute-sounds-just-like.md rename to content/posts/2013/2013-01-14-ofter-mal-was-neues-heute-sounds-just-like.de.md diff --git a/content/posts/2013/2013-04-30-thinklight-script-fur-linux.md b/content/posts/2013/2013-04-30-thinklight-script-fur-linux.de.md similarity index 100% rename from content/posts/2013/2013-04-30-thinklight-script-fur-linux.md rename to content/posts/2013/2013-04-30-thinklight-script-fur-linux.de.md diff --git a/content/posts/2013/2013-04-30-ubuntu-13-04-ein-besserer-file-browser.md b/content/posts/2013/2013-04-30-ubuntu-13-04-ein-besserer-file-browser.de.md similarity index 100% rename from content/posts/2013/2013-04-30-ubuntu-13-04-ein-besserer-file-browser.md rename to content/posts/2013/2013-04-30-ubuntu-13-04-ein-besserer-file-browser.de.md diff --git a/content/posts/2013/2013-10-26-lets-learn-programmieren-1.md b/content/posts/2013/2013-10-26-lets-learn-programmieren-1.de.md similarity index 85% rename from content/posts/2013/2013-10-26-lets-learn-programmieren-1.md rename to content/posts/2013/2013-10-26-lets-learn-programmieren-1.de.md index cbdd5cb..a63ee7d 100644 --- a/content/posts/2013/2013-10-26-lets-learn-programmieren-1.md +++ b/content/posts/2013/2013-10-26-lets-learn-programmieren-1.de.md @@ -1,5 +1,5 @@ --- -title: "Let's Learn - Programmieren #1 - Teaser" +title: "Let's Learn - Programmieren 1 - Teaser" eyecatch: fa-youtube-play slug: "lets-learn_programmieren-1" description: "Let's Learn - Programmieren #1" diff --git a/content/posts/2013/2013-10-26-lets-learn-programmieren-2-netbeans-java-in-windows.md b/content/posts/2013/2013-10-26-lets-learn-programmieren-2-netbeans-java-in-windows.de.md similarity index 80% rename from content/posts/2013/2013-10-26-lets-learn-programmieren-2-netbeans-java-in-windows.md rename to content/posts/2013/2013-10-26-lets-learn-programmieren-2-netbeans-java-in-windows.de.md index f55e158..5cd8260 100644 --- a/content/posts/2013/2013-10-26-lets-learn-programmieren-2-netbeans-java-in-windows.md +++ b/content/posts/2013/2013-10-26-lets-learn-programmieren-2-netbeans-java-in-windows.de.md @@ -1,5 +1,5 @@ --- -title: "Let's Learn - Programmieren #2 - Windows" +title: "Let's Learn - Programmieren 2 - Windows" eyecatch: fa-youtube-play description: "Let's Learn - Programmieren #2" date: 2013-10-26 diff --git a/content/posts/2013/2013-10-27-lets-learn-programmieren-3-netbeans-java-in-linux.md b/content/posts/2013/2013-10-27-lets-learn-programmieren-3-netbeans-java-in-linux.de.md similarity index 82% rename from content/posts/2013/2013-10-27-lets-learn-programmieren-3-netbeans-java-in-linux.md rename to content/posts/2013/2013-10-27-lets-learn-programmieren-3-netbeans-java-in-linux.de.md index 23ab59d..6bfc658 100644 --- a/content/posts/2013/2013-10-27-lets-learn-programmieren-3-netbeans-java-in-linux.md +++ b/content/posts/2013/2013-10-27-lets-learn-programmieren-3-netbeans-java-in-linux.de.md @@ -1,11 +1,10 @@ --- -title: "Let's Learn - Programmieren #3 - Linux" +title: "Let's Learn - Programmieren 3 - Linux" eyecatch: fa-youtube-play description: "Let's Learn - Programmieren #3 - Netbeans & Java in Linux" slug: "lets-learn_programmieren-3" date: 2013-10-27 tags: [code, youtube, let's learn, linux] - --- {{< youtube 4WahwewBgDs >}} diff --git a/content/posts/2013/2013-12-03-lets-learn-programmieren-4-netbeans-java-auf-dem-mac-.md b/content/posts/2013/2013-12-03-lets-learn-programmieren-4-netbeans-java-auf-dem-mac-.de.md similarity index 80% rename from content/posts/2013/2013-12-03-lets-learn-programmieren-4-netbeans-java-auf-dem-mac-.md rename to content/posts/2013/2013-12-03-lets-learn-programmieren-4-netbeans-java-auf-dem-mac-.de.md index afbe9f6..3f1da6b 100644 --- a/content/posts/2013/2013-12-03-lets-learn-programmieren-4-netbeans-java-auf-dem-mac-.md +++ b/content/posts/2013/2013-12-03-lets-learn-programmieren-4-netbeans-java-auf-dem-mac-.de.md @@ -1,5 +1,5 @@ --- -title: "Let's Learn - Programmieren #4 - Mac" +title: "Let's Learn - Programmieren 4 - Mac" eyecatch: fa-youtube-play slug: "lets-learn_programmieren-4" date: 2013-12-03 diff --git a/content/posts/2014/2014-11-30-hello-jekyll.en.md b/content/posts/2014/2014-11-30-hello-jekyll.en.md index 42b3c31..463736d 100644 --- a/content/posts/2014/2014-11-30-hello-jekyll.en.md +++ b/content/posts/2014/2014-11-30-hello-jekyll.en.md @@ -1,12 +1,15 @@ --- -title: "Hello Jekyll!" -eyecatch: "fa-code" -date: 2014-11-30 -categories: jekyll update +title: Hello Jekyll! +date: 2014-11-30 +tag: + - jekyll + - blog --- -I changed my blog from [Wordpress][wordpress] to [Jekyll][jekyll]! + +I changed my blog from [Wordpress][wordpress] to [Jekyll][jekyll]! :tada: ## Why i switched to Jekyll + I was thinking about switching from [Wordpress][wordpress] to something else for quite a while, but I didn't find anything I really liked. First I thought about switching my blog to a self made [Laravel][laravel] site, but it's kind of reinventing the wheel. @@ -22,7 +25,7 @@ I search a while and read a little bit more about static site generation and the Static site generation was the key to the cons I had previously had against other solution. No security risks, because it is "only" HTML and no code is compiled on the server at runtime. No overhead - there are a lot of great static site generators out here and it would be - once set up - really fast to write articles and publish them. -*Okay, so where to start?*
+_Okay, so where to start?_
There is [Pelican][pelican], [Pico][pico], [Nikola][nikola] and of course [Jekyll][jekyll]. So I looked at them all with the following requirements: @@ -33,45 +36,47 @@ So I looked at them all with the following requirements: - actively maintained - easy way to preview my work before uploading it to any server - ### **[Nikola][nikola]**
-I started with [Nikola][nikola] because it seemed like the perfect fit to me. It met all my requirements and also was very easy to install on [ArchLinux][arch] (```yaourt -S python-nikola-git```). -So I headed right into it made a new git repo and ```nikola init``` to start a new [Nikola][nikola] instance. + +I started with [Nikola][nikola] because it seemed like the perfect fit to me. It met all my requirements and also was very easy to install on [ArchLinux][arch] (`yaourt -S python-nikola-git`). +So I headed right into it made a new git repo and `nikola init` to start a new [Nikola][nikola] instance. Okay now let's import my [Wordpress][wordpress] posts.
-I made exported my posts from within [Wordpress][wordpress] thought a XML file and executed [Nikolas][nikola] built-in import method ```nikola import_wordpress posts.xml```. Wow, that was easy. +I made exported my posts from within [Wordpress][wordpress] thought a XML file and executed [Nikolas][nikola] built-in import method `nikola import_wordpress posts.xml`. Wow, that was easy. Nope. Error. Damn it! [DuckDuckGo][duckduck] to the rescue! Okay installed [Nikola][nikola] from source on Github. Still that Error. After a few hours of fumbling around I admitted defeat and moved on the the next generator on my list. ### **[Pelican][pelican]**
+ Aswell as [Nikola][nikola], [Pelican][pelican] checked off everything on my list so i also installed it. This time through [pip][pip]. Just for funsies. -``` bash +```bash pip install pelican markdown pelican-quickstart ``` Okay so now let's import it. -``` bash +```bash pelican-import --wpfile --dir-page -o content -m markdown posts.xml ``` Cool, so far so good let's look at my files. -``` bash +```bash python -m SimpleHTTPServer ``` Doesn't work. Mhmmm... let's try Python2. -``` bash +```bash python2 -m SimpleHTTPServer ``` Eureka! Long story short I really didn't like the way theming works in [Pelican][pelican]. Although I thought I could live with that, there where still some alternatives on my list and I thought: "Better make sure you like it, because you'll be using it for quite a while!" ### **[Pico][pico]**
+ Okay so I started on [Picos][pico] website. Oh my.. PHP? Why? Oh boy, now I have to set up a complete web developing environment for a "simple" static site generator? Nah!
So I searched for lightweight Web-Servers for in-place use.
I discovered [node-sng](http://code.ravelsoft.com/node-sng) and thanks to [Arch][arch] it was also easy to install. @@ -79,16 +84,17 @@ I discovered [node-sng](http://code.ravelsoft.com/node-sng) and thanks to [Arch] But at this point I thought I just drop [Pico][pico] because it is not practical for me and thus I wouldn't use it for long. ### **[Jekyll][jekyll]**
+ Let's try the clear mainstream option. Nice checks off everything on my list. -``` bash +```bash gem update gem install jekyll ``` Nice! So let's import everything. [Awesome Doc](http://import.jekyllrb.com/docs/wordpressdotcom/) is awesome! -``` bash +```bash ruby -rubygems -e 'require "jekyll-import"; JekyllImport::Importers::WordpressDotCom.run({ "source" => "wordpress.xml", @@ -97,9 +103,9 @@ ruby -rubygems -e 'require "jekyll-import"; })' ``` -Mhm.. now my posts are still in HTML - I want them in ```.md``` format. Okay Bash-Script to the rescue! (you need [pandoc](http://johnmacfarlane.net/pandoc/installing.html) to use this script) +Mhm.. now my posts are still in HTML - I want them in `.md` format. Okay Bash-Script to the rescue! (you need [pandoc](http://johnmacfarlane.net/pandoc/installing.html) to use this script) -``` bash +```bash #!/bin/bash FILES=/home/nh/Desktop/posts/* MDFOLDER=/home/nh/Desktop/mdfiles/ @@ -119,7 +125,7 @@ done Awesome! Let's compile them and look at what I've got so far. -``` bash +```bash jekyll serve -w ``` @@ -127,20 +133,17 @@ Oh it looks kind of messy. The file header it not right. Okay I will go through Nice auto-compile function! While we're at it let's also install a [nice theme](https://mademistakes.com/articles/hpstr-jekyll-theme/). Here are some useful code-blocks: -{{< gist 25336b9b6758a35b720b >}} +{{< gist niklas-heer 25336b9b6758a35b720b >}} ## Conclusion + Although it was quite some time editing 60+ posts I really like the result and you may like it too! I'm really glad I took the journey to discover [Jekyll][jekyll]. This very article is my first one completely written in [Jekyll][jekyll] on my beloved [SublimeText-Editor][sublime] with some Plugins. ([Jekyll](https://sublime.wbond.net/packages/Jekyll), [Markdown Preview](https://sublime.wbond.net/packages/Markdown%20Preview) and [Markdown​Editing](https://sublime.wbond.net/packages/MarkdownEditing)) I hope I gave you some insights in my journey and maybe you can save yourself some trouble and fist try [Jekyll][jekyll] before you end up digging through the entire internet to find a static site generator you like. -Good luck! ;) - - - - +Good luck! :wink: [jekyll]: http://jekyllrb.com [wordpress]: https://wordpress.org/ diff --git a/content/posts/2014/2014-12-01-vtop-an-unknown-beauty.en.md b/content/posts/2014/2014-12-01-vtop-an-unknown-beauty.en.md index b623a4d..3f1136a 100644 --- a/content/posts/2014/2014-12-01-vtop-an-unknown-beauty.en.md +++ b/content/posts/2014/2014-12-01-vtop-an-unknown-beauty.en.md @@ -1,6 +1,5 @@ --- title: vtop an unknown terminal beauty -eyecatch: "fa-terminal" date: 2014-12-01 published: True tags: [code, terminal, linux] @@ -11,15 +10,16 @@ Wow such top. So stats. More better than regular top. Written in node.js vtop -I've been using ```top``` since I started maintaining a server in 2010.
-It's a really powerful tool to glance at it and see if your system is alright, but since I discovered ```htop```, ```top``` was made obsolete for me. +I've been using `top` since I started maintaining a server in 2010.
+It's a really powerful tool to glance at it and see if your system is alright, but since I discovered `htop`, `top` was made obsolete for me. -Although I really liked ```htop``` I always felt that it sometimes had a too clunky representation of the data, so that I couldn't quickly enough see if my system was acting out of the common workload. +Although I really liked `htop` I always felt that it sometimes had a too clunky representation of the data, so that I couldn't quickly enough see if my system was acting out of the common workload. Than I discovered `vtop`!
But let's start at the beginning of my journey. ### Why not simple old `top`? +
@@ -28,9 +28,10 @@ But let's start at the beginning of my journey.
-As you can guess from the pictures above ```htop``` does really exactly the same as ```top```, but in a much nicer way so in my opinion there is no discussion about why you would choose ```top``` over ```htop```! +As you can guess from the pictures above `htop` does really exactly the same as `top`, but in a much nicer way so in my opinion there is no discussion about why you would choose `top` over `htop`! + +### vtop the unknown beauty -### **[vtop][vtop]** the unknown beauty
@@ -42,7 +43,7 @@ As you can guess from the pictures above ```htop``` does really exactly the same You can install it also very easily through `npm` (you need to install [node.js](http://nodejs.org/) on your system)! -``` bash +```bash sudo npm install -g vtop ``` @@ -50,7 +51,6 @@ After that you can execute it by typing `vtop` I really love it! Maybe there are some use-cases where I still need `htop` e.g. when I want to find a PID and don't need it to kill the process, but `vtop` is now a part of my daily used tool! -***Try it out yourself!*** - +**_Try it out yourself!_** [vtop]: https://github.com/MrRio/vtop diff --git a/content/posts/2015/2015-08-18-hallo-hugo.en.md b/content/posts/2015/2015-08-18-hallo-hugo.en.md index d0a942f..2d4527f 100644 --- a/content/posts/2015/2015-08-18-hallo-hugo.en.md +++ b/content/posts/2015/2015-08-18-hallo-hugo.en.md @@ -13,7 +13,7 @@ toc: false
-## Why I switched to [Hugo][hugo] +## Why I switched to Hugo [Jekyll][jekyll] was my first real static site generator. I loved it! There was only one problem: I really dislike ruby and the gem system. It is simply too slow! diff --git a/content/posts/2019/2019-08-12_relaunch.en.md b/content/posts/2019/2019-08-12_relaunch.en.md index ca3b835..6baa6ff 100644 --- a/content/posts/2019/2019-08-12_relaunch.en.md +++ b/content/posts/2019/2019-08-12_relaunch.en.md @@ -1,5 +1,5 @@ --- -title: blog relaunched +title: Hello relaunch! date: 2019-08-12 22:13:06 +0200 author: Niklas Heer draft: false diff --git a/content/posts/9999-99-99-summary.md b/content/posts/9999-99-99-summary.md deleted file mode 100644 index c95b664..0000000 --- a/content/posts/9999-99-99-summary.md +++ /dev/null @@ -1,58 +0,0 @@ ---- -title: Test -eyecatch: "fa-code" -date: 2015-12-14T16:00:00 -categories: [] -tags: [] -draft: true ---- - -# Shortcodes - -## Gist -{{< gist f1392572c9f0469f2133 >}} - -## Youtube -{{< youtube DCxbtJMlkuk >}} - - -# Code -``` bash -CODEBLOCK -``` -# Images -## Display an image -
-
- -
text
-
-
- - -## 2 Images side by side -
-
- - -
top vs htop
-
-
- -# Quote -
-Text to quote -from whom -
- - -# Buttons - -## Normal Button (Bootstrap) -
TEXT
- -## Github Button -
Fork me!
- -## Download Button -
Download