From 5924e263893ac8c47a22a78c88b46c585fc9e82b Mon Sep 17 00:00:00 2001 From: Akshay Date: Sat, 25 Jan 2020 23:14:36 +0530 Subject: update styles, minify links --- docs/index.html | 63 ++++++++++----- docs/posts/WPA_woes.html | 70 ----------------- docs/posts/WPA_woes/index.html | 78 +++++++++++++++++++ docs/posts/bash_harder_with_vim.html | 86 --------------------- docs/posts/bash_harder_with_vim/index.html | 90 ++++++++++++++++++++++ docs/posts/bye_bye_BDFs.html | 53 ------------- docs/posts/bye_bye_BDFs/index.html | 61 +++++++++++++++ docs/posts/color_conundrum.html | 64 --------------- docs/posts/color_conundrum/index.html | 72 +++++++++++++++++ .../get_better_at_yanking_and_putting_in_vim.html | 50 ------------ .../index.html | 58 ++++++++++++++ docs/posts/hold_position!.html | 49 ------------ docs/posts/hold_position!/index.html | 57 ++++++++++++++ docs/posts/my_setup.html | 54 ------------- docs/posts/my_setup/index.html | 62 +++++++++++++++ docs/posts/onivim_sucks.html | 55 ------------- docs/posts/onivim_sucks/index.html | 63 +++++++++++++++ docs/posts/static_sites_with_bash.html | 76 ------------------ docs/posts/static_sites_with_bash/index.html | 84 ++++++++++++++++++++ docs/style.css | 20 ++++- 20 files changed, 687 insertions(+), 578 deletions(-) delete mode 100644 docs/posts/WPA_woes.html create mode 100644 docs/posts/WPA_woes/index.html delete mode 100644 docs/posts/bash_harder_with_vim.html create mode 100644 docs/posts/bash_harder_with_vim/index.html delete mode 100644 docs/posts/bye_bye_BDFs.html create mode 100644 docs/posts/bye_bye_BDFs/index.html delete mode 100644 docs/posts/color_conundrum.html create mode 100644 docs/posts/color_conundrum/index.html delete mode 100644 docs/posts/get_better_at_yanking_and_putting_in_vim.html create mode 100644 docs/posts/get_better_at_yanking_and_putting_in_vim/index.html delete mode 100644 docs/posts/hold_position!.html create mode 100644 docs/posts/hold_position!/index.html delete mode 100644 docs/posts/my_setup.html create mode 100644 docs/posts/my_setup/index.html delete mode 100644 docs/posts/onivim_sucks.html create mode 100644 docs/posts/onivim_sucks/index.html delete mode 100644 docs/posts/static_sites_with_bash.html create mode 100644 docs/posts/static_sites_with_bash/index.html diff --git a/docs/index.html b/docs/index.html index 883a3a5..5d478b0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -22,64 +22,91 @@
-
31/12 2019
- +
+ 31/12 2019 + e991ba5 +
+
Color Conundrum
-
23/11 2019
- +
+ 23/11 2019 + d1faa7e +
+
Static Sites With Bash
-
07/11 2019
- +
+ 07/11 2019 + 6bf0319 +
+
My Setup
-
12/10 2019
- +
+ 12/10 2019 + 9367110 +
+
WPA Woes
-
07/08 2019
- +
+ 07/08 2019 + 7f39c8d +
+
Bye Bye BDFs
-
02/08 2019
- +
+ 02/08 2019 + 681a65f +
+
Onivim Sucks
-
31/07 2019
- +
+ 31/07 2019 + 05bdbd0 +
+
Bash Harder With Vim
-
30/07 2019
- +
+ 30/07 2019 + 487b33f +
+
Hold Position!
-
29/07 2019
- +
+ 29/07 2019 + 4e9883d +
+
Get Better At Yanking And Putting In Vim
diff --git a/docs/posts/WPA_woes.html b/docs/posts/WPA_woes.html deleted file mode 100644 index dbf1b82..0000000 --- a/docs/posts/WPA_woes.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - -
-
-
12/10 2019
- - WPA Woes - -
-

I finally got around to installing Void GNU/Linux on my main -computer. Rolling release, non-systemd, need I say more?

- -

As with all GNU/Linux distributions, wireless networks had -me in a fix. If you can see this post, it means I’ve managed -to get online. It turns out, wpa_supplicant was detecting the -wrong interface by default (does it ever select the right -one?). Let us fix that:

- -
$ sudo rm -r /var/service/wpa_supplicant
-$ sudo killall dhcpcd
-
- -

What is the right interface though?

- -
$ iw dev
-   ...
-   Interface wlp2s0
-   ...
-
- -

Aha! Let us run wpa_supplicant on that interface, as a -background process:

- -
$ sudo wpa_supplicant -B -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant.conf
-$ sudo dhcpcd -B wlp2s0
-$ ping google.com
-PING ...
-
- -

Yay! Make those changes perpetual by enabling the service:

- -
------------------------------------------------------
-# Add these to /etc/wpa_supplicant/wpa_supplicant.conf
-OPTS="-B"
-WPA_INTERFACE="wlp2s0"
-------------------------------------------------------
-$ sudo ln -s /etc/sv/wpa_supplicant /var/service/
-$ sudo ln -s /etc/sv/dhcpcd /var/service/
-$ sudo sv restart wpa_supplicant
-$ sudo sv restart dhcpcd
-
- -
- ← Back -
-
-
- - diff --git a/docs/posts/WPA_woes/index.html b/docs/posts/WPA_woes/index.html new file mode 100644 index 0000000..ab92cab --- /dev/null +++ b/docs/posts/WPA_woes/index.html @@ -0,0 +1,78 @@ + + + + + + + + + + + + + +
+
+
+ 12/10 2019 + + + 9367110 + + +
+ + WPA Woes + +
+

I finally got around to installing Void GNU/Linux on my main +computer. Rolling release, non-systemd, need I say more?

+ +

As with all GNU/Linux distributions, wireless networks had +me in a fix. If you can see this post, it means I’ve managed +to get online. It turns out, wpa_supplicant was detecting the +wrong interface by default (does it ever select the right +one?). Let us fix that:

+ +
$ sudo rm -r /var/service/wpa_supplicant
+$ sudo killall dhcpcd
+
+ +

What is the right interface though?

+ +
$ iw dev
+   ...
+   Interface wlp2s0
+   ...
+
+ +

Aha! Let us run wpa_supplicant on that interface, as a +background process:

+ +
$ sudo wpa_supplicant -B -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant.conf
+$ sudo dhcpcd -B wlp2s0
+$ ping google.com
+PING ...
+
+ +

Yay! Make those changes perpetual by enabling the service:

+ +
------------------------------------------------------
+# Add these to /etc/wpa_supplicant/wpa_supplicant.conf
+OPTS="-B"
+WPA_INTERFACE="wlp2s0"
+------------------------------------------------------
+$ sudo ln -s /etc/sv/wpa_supplicant /var/service/
+$ sudo ln -s /etc/sv/dhcpcd /var/service/
+$ sudo sv restart wpa_supplicant
+$ sudo sv restart dhcpcd
+
+ +
+ ⟵ Back +
+
+
+ + diff --git a/docs/posts/bash_harder_with_vim.html b/docs/posts/bash_harder_with_vim.html deleted file mode 100644 index 54ab982..0000000 --- a/docs/posts/bash_harder_with_vim.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - - - - -
-
-
31/07 2019
- - Bash Harder With Vim - -
-

Bash is tricky, don’t let your editor get in your way. Here’s a couple of neat -additions you could make to your vimrc for a better shell programming -experience.

- -
- -

Man pages inside vim

- -

Source this script to get started:

- -
runtime ftplugin/man.vim
-
- -

Now, you can open manpages inside vim with :Man! It adds nicer syntax highlighting -and the ability to jump around with Ctrl-] and Ctrl-T.

- -

By default, the manpage is opened in a horizontal split, I prefer using a new tab:

- -
let g:ft_man_open_mode = 'tab'
-
- -
- -

Scratchpad to test your commands

- -

I often test my sed substitutions, here is -a sample from the script used to generate this site:

- -
# a substitution to convert snake_case to Title Case With Spaces
-echo "$1" | sed -E -e "s/\..+$//g"  -e "s/_(.)/ \u\1/g" -e "s/^(.)/\u\1/g"
-
- -

Instead of dropping into a new shell, just test it out directly from vim!

- -
    -
  • Yank the line into a register:

    - -
    yy
    -
  • -
  • Paste it into the command-line window:

    - -
    q:p
    -
  • -
  • Make edits as required:

    - -
    syntax off            # previously run commands
    -edit index.html       # in a buffer!
    -w | so %
    -!echo "new_post.md" | sed -E -e "s/\..+$//g"  --snip--
    -^--- note the use of '!'
    -
  • -
  • Hit enter with the cursor on the line containing your command!

    - -
    $ vim
    -New Post         # output
    -Press ENTER or type command to continue
    -
  • -
- -
- ← Back -
-
-
- - diff --git a/docs/posts/bash_harder_with_vim/index.html b/docs/posts/bash_harder_with_vim/index.html new file mode 100644 index 0000000..48e018f --- /dev/null +++ b/docs/posts/bash_harder_with_vim/index.html @@ -0,0 +1,90 @@ + + + + + + + + + + + + + +
+
+
+ 31/07 2019 + + + 05bdbd0 + + +
+ + Bash Harder With Vim + +
+

Bash is tricky, don’t let your editor get in your way. Here’s a couple of neat +additions you could make to your vimrc for a better shell programming +experience.

+ +

Man pages inside vim

+ +

Source this script to get started:

+ +
runtime ftplugin/man.vim
+
+ +

Now, you can open manpages inside vim with :Man! It adds nicer syntax highlighting +and the ability to jump around with Ctrl-] and Ctrl-T.

+ +

By default, the manpage is opened in a horizontal split, I prefer using a new tab:

+ +
let g:ft_man_open_mode = 'tab'
+
+ +

Scratchpad to test your commands

+ +

I often test my sed substitutions, here is +a sample from the script used to generate this site:

+ +
# a substitution to convert snake_case to Title Case With Spaces
+echo "$1" | sed -E -e "s/\..+$//g"  -e "s/_(.)/ \u\1/g" -e "s/^(.)/\u\1/g"
+
+ +

Instead of dropping into a new shell, just test it out directly from vim!

+ +
    +
  • Yank the line into a register:

    + +
    yy
    +
  • +
  • Paste it into the command-line window:

    + +
    q:p
    +
  • +
  • Make edits as required:

    + +
    syntax off            # previously run commands
    +edit index.html       # in a buffer!
    +w | so %
    +!echo "new_post.md" | sed -E -e "s/\..+$//g"  --snip--
    +^--- note the use of '!'
    +
  • +
  • Hit enter with the cursor on the line containing your command!

    + +
    $ vim
    +New Post         # output
    +Press ENTER or type command to continue
    +
  • +
+ +
+ ⟵ Back +
+
+
+ + diff --git a/docs/posts/bye_bye_BDFs.html b/docs/posts/bye_bye_BDFs.html deleted file mode 100644 index 3b20814..0000000 --- a/docs/posts/bye_bye_BDFs.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - -
-
-
07/08 2019
- - Bye Bye BDFs - -
-

Glyph Bitmap Distribution Format is no more, as the creators of -Pango, one of the most widely used text rendering -libraries, -announced -their plans for Pango 1.44.

- -

Until recently, Pango used FreeType to draw fonts. They will be moving over -to Harfbuzz, an evolution of FreeType.

- -

Why?

- -

In short, FreeType was hard to work with. It required complex logic, and -provided no advantage over Harfbuzz (other than being able to fetch -opentype metrics with ease).

- -

Upgrading to Pango v1.44 will break your GTK applications (if you use a -bdf/pcf bitmap font). Harfbuzz does support bitmap-only OpenType fonts, -otbs. Convert your existing fonts over to otbs using -FontForge. It is to be noted that applications -such as xterm and rxvt use xft (X FreeType) to render fonts, and will -remain unaffected by the update.

- -

Both scientifica and -curie will soon ship with bitmap-only -OpenType font formats.

- -
- ← Back -
-
-
- - diff --git a/docs/posts/bye_bye_BDFs/index.html b/docs/posts/bye_bye_BDFs/index.html new file mode 100644 index 0000000..b191615 --- /dev/null +++ b/docs/posts/bye_bye_BDFs/index.html @@ -0,0 +1,61 @@ + + + + + + + + + + + + + +
+
+
+ 07/08 2019 + + + 7f39c8d + + +
+ + Bye Bye BDFs + +
+

Glyph Bitmap Distribution Format is no more, as the creators of +Pango, one of the most widely used text rendering +libraries, +announced +their plans for Pango 1.44.

+ +

Until recently, Pango used FreeType to draw fonts. They will be moving over +to Harfbuzz, an evolution of FreeType.

+ +

Why?

+ +

In short, FreeType was hard to work with. It required complex logic, and +provided no advantage over Harfbuzz (other than being able to fetch +opentype metrics with ease).

+ +

Upgrading to Pango v1.44 will break your GTK applications (if you use a +bdf/pcf bitmap font). Harfbuzz does support bitmap-only OpenType fonts, +otbs. Convert your existing fonts over to otbs using +FontForge. It is to be noted that applications +such as xterm and rxvt use xft (X FreeType) to render fonts, and will +remain unaffected by the update.

+ +

Both scientifica and +curie will soon ship with bitmap-only +OpenType font formats.

+ +
+ ⟵ Back +
+
+
+ + diff --git a/docs/posts/color_conundrum.html b/docs/posts/color_conundrum.html deleted file mode 100644 index 113fd25..0000000 --- a/docs/posts/color_conundrum.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - - -
-
-
31/12 2019
- - Color Conundrum - -
-

This piece aims to highlight (pun intended) some of the -reasons behind my color -free editor setup.

- -

Imagine highlighting an entire book because all of it is -important. That is exactly what (most) syntax highlighting -does. It is difficult for the human eye to filter out noise -in rainbow barf. Use color to draw attention, not diverge -it.

- -

At the same time, a book devoid of color is boring! What -is the takeaway from this 10 line paragraph? What are the -technical terms used?

- -

Prose and code are certainly different, but the fickle -minded human eye is the same. The eye constantly looks for a -frame of reference, a focal point. It grows tired when it -can’t find one.

- -

The following comparison does a better job of explaining -(none, ample and over-the-top highlighting, from left to -right):

- -

hi.png

- -

Without highlighting (far left), it is hard to differentiate -between comments and code! The florid color scheme (far -right) is no good either, it contains too many attention -grabbers. The center sample is a healthy balance of both. -Function calls and constants stand out, and repetitive -keywords and other noise (let, as) are mildly dimmed -out. Comments and non-code text (sign column, status text) -are dimmed further.

- -

I’ll stop myself before I rant about color contrast and -combinations.

- -
- ← Back -
-
-
- - diff --git a/docs/posts/color_conundrum/index.html b/docs/posts/color_conundrum/index.html new file mode 100644 index 0000000..f504918 --- /dev/null +++ b/docs/posts/color_conundrum/index.html @@ -0,0 +1,72 @@ + + + + + + + + + + + + + +
+
+
+ 31/12 2019 + + + e991ba5 + + +
+ + Color Conundrum + +
+

This piece aims to highlight (pun intended) some of the +reasons behind my color +free editor setup.

+ +

Imagine highlighting an entire book because all of it is +important. That is exactly what (most) syntax highlighting +does. It is difficult for the human eye to filter out noise +in rainbow barf. Use color to draw attention, not diverge +it.

+ +

At the same time, a book devoid of color is boring! What +is the takeaway from this 10 line paragraph? What are the +technical terms used?

+ +

Prose and code are certainly different, but the fickle +minded human eye is the same. The eye constantly looks for a +frame of reference, a focal point. It grows tired when it +can’t find one.

+ +

The following comparison does a better job of explaining +(none, ample and over-the-top highlighting, from left to +right):

+ +

hi.png

+ +

Without highlighting (far left), it is hard to differentiate +between comments and code! The florid color scheme (far +right) is no good either, it contains too many attention +grabbers. The center sample is a healthy balance of both. +Function calls and constants stand out, and repetitive +keywords and other noise (let, as) are mildly dimmed +out. Comments and non-code text (sign column, status text) +are dimmed further.

+ +

I’ll stop myself before I rant about color contrast and +combinations.

+ +
+ ⟵ Back +
+
+
+ + diff --git a/docs/posts/get_better_at_yanking_and_putting_in_vim.html b/docs/posts/get_better_at_yanking_and_putting_in_vim.html deleted file mode 100644 index f6ff300..0000000 --- a/docs/posts/get_better_at_yanking_and_putting_in_vim.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - -
-
-
29/07 2019
- - Get Better At Yanking And Putting In Vim - -
-
    -
  1. reselecting previously selected text (i use this to fix botched selections):

    - -
    gv  " :h gv for more
    -    " you can use `o` in visual mode to go to the `Other` end of the selection
    -    " use a motion to fix the selection
    -
  2. -
  3. reselecting previously yanked text:

    - -
    `[v`]
    -`[         " marks the beginning of the previously yanked text   :h `[
    -`]         " marks the end                                       :h `]
    - v         " visual select everything in between
    -
    -nnoremap gb `[v`]    " "a quick map to perform the above
    -
  4. -
  5. pasting and indenting text (in one go):

    - -
    ]p   " put (p) and adjust indent to current line
    -]P   " put the text before the cursor (P) and adjust indent to current line
    -
  6. -
- -
- ← Back -
-
-
- - diff --git a/docs/posts/get_better_at_yanking_and_putting_in_vim/index.html b/docs/posts/get_better_at_yanking_and_putting_in_vim/index.html new file mode 100644 index 0000000..926526c --- /dev/null +++ b/docs/posts/get_better_at_yanking_and_putting_in_vim/index.html @@ -0,0 +1,58 @@ + + + + + + + + + + + + + +
+
+
+ 29/07 2019 + + + 4e9883d + + +
+ + Get Better At Yanking And Putting In Vim + +
+
    +
  1. reselecting previously selected text (i use this to fix botched selections):

    + +
    gv  " :h gv for more
    +    " you can use `o` in visual mode to go to the `Other` end of the selection
    +    " use a motion to fix the selection
    +
  2. +
  3. reselecting previously yanked text:

    + +
    `[v`]
    +`[         " marks the beginning of the previously yanked text   :h `[
    +`]         " marks the end                                       :h `]
    + v         " visual select everything in between
    +
    +nnoremap gb `[v`]    " "a quick map to perform the above
    +
  4. +
  5. pasting and indenting text (in one go):

    + +
    ]p   " put (p) and adjust indent to current line
    +]P   " put the text before the cursor (P) and adjust indent to current line
    +
  6. +
+ +
+ ⟵ Back +
+
+
+ + diff --git a/docs/posts/hold_position!.html b/docs/posts/hold_position!.html deleted file mode 100644 index 8879955..0000000 --- a/docs/posts/hold_position!.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - -
-
-
30/07 2019
- - Hold Position! - -
-

Often times, when I run a vim command that makes “big” changes to a file (a -macro or a :vimgrep command) I lose my original position and feel disoriented.

- -

Save position with winsaveview()!

- -

The winsaveview() command returns a Dictionary that contains information -about the view of the current window. This includes the cursor line number, -cursor coloumn, the top most line in the window and a couple of other values, -none of which concern us.

- -

Before running our command (one that jumps around the buffer, a lot), we save -our view, and restore it once its done, with winrestview.

- -
let view = winsaveview()
-s/\s\+$//gc              " find and (confirm) replace trailing blanks
-winrestview(view)        " restore our original view!
-
- -

It might seem a little overkill in the above example, just use “ (double -backticks) instead, but it comes in handy when you run your file through -heavier filtering.

- -
- ← Back -
-
-
- - diff --git a/docs/posts/hold_position!/index.html b/docs/posts/hold_position!/index.html new file mode 100644 index 0000000..8d441cf --- /dev/null +++ b/docs/posts/hold_position!/index.html @@ -0,0 +1,57 @@ + + + + + + + + + + + + + +
+
+
+ 30/07 2019 + + + 487b33f + + +
+ + Hold Position! + +
+

Often times, when I run a vim command that makes “big” changes to a file (a +macro or a :vimgrep command) I lose my original position and feel disoriented.

+ +

Save position with winsaveview()!

+ +

The winsaveview() command returns a Dictionary that contains information +about the view of the current window. This includes the cursor line number, +cursor coloumn, the top most line in the window and a couple of other values, +none of which concern us.

+ +

Before running our command (one that jumps around the buffer, a lot), we save +our view, and restore it once its done, with winrestview.

+ +
let view = winsaveview()
+s/\s\+$//gc              " find and (confirm) replace trailing blanks
+winrestview(view)        " restore our original view!
+
+ +

It might seem a little overkill in the above example, just use “ (double +backticks) instead, but it comes in handy when you run your file through +heavier filtering.

+ +
+ ⟵ Back +
+
+
+ + diff --git a/docs/posts/my_setup.html b/docs/posts/my_setup.html deleted file mode 100644 index 0175275..0000000 --- a/docs/posts/my_setup.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - -
-
-
07/11 2019
- - My Setup - -
-

Decided to do one of these because everyone does one of -these.

- -

scrot

- -

My entire setup is managed with GNU stow, making it easier -to replicate on fresh installations. You can find my -configuration files on GitHub.

- -

I run Void Linux (glibc) on my -HP Envy 13" (2018). -To keep things simple, I run a raw X session with 2bwm as my -window manager, along with dunst (notification daemon) and -Sam’s compton -(compositor) fork.

- -

I am a fan of GNU tools, so I use bash as my shell, and -coreutils to manage files, archives, strings, paths etc. I -edit files with vim, chat with weechat, listen to music -with cmus, monitor processes with htop, manage sessions -with tmux, read pdfs in zathura. I rarely ever leave -the comfort of my terminal emulator, urxvt.

- -

Most of my academic typesetting is done with TeX, and -compiled with xelatex. Other fun documents are made with -GIMP :).

- -
- ← Back -
-
-
- - diff --git a/docs/posts/my_setup/index.html b/docs/posts/my_setup/index.html new file mode 100644 index 0000000..9091b8f --- /dev/null +++ b/docs/posts/my_setup/index.html @@ -0,0 +1,62 @@ + + + + + + + + + + + + + +
+
+
+ 07/11 2019 + + + 6bf0319 + + +
+ + My Setup + +
+

Decided to do one of these because everyone does one of +these.

+ +

scrot

+ +

My entire setup is managed with GNU stow, making it easier +to replicate on fresh installations. You can find my +configuration files on GitHub.

+ +

I run Void Linux (glibc) on my +HP Envy 13" (2018). +To keep things simple, I run a raw X session with 2bwm as my +window manager, along with dunst (notification daemon) and +Sam’s compton +(compositor) fork.

+ +

I am a fan of GNU tools, so I use bash as my shell, and +coreutils to manage files, archives, strings, paths etc. I +edit files with vim, chat with weechat, listen to music +with cmus, monitor processes with htop, manage sessions +with tmux, read pdfs in zathura. I rarely ever leave +the comfort of my terminal emulator, urxvt.

+ +

Most of my academic typesetting is done with TeX, and +compiled with xelatex. Other fun documents are made with +GIMP :).

+ +
+ ⟵ Back +
+
+
+ + diff --git a/docs/posts/onivim_sucks.html b/docs/posts/onivim_sucks.html deleted file mode 100644 index 1b4b835..0000000 --- a/docs/posts/onivim_sucks.html +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - -
-
-
02/08 2019
- - Onivim Sucks - -
-

Onivim is a ‘modern modal editor’, combining fancy -interface and language features with vim-style modal editing. What’s wrong you -ask?

- -

Apart from buggy syntax highlighting, -broken scrolling and -others, -Onivim is proprietary software. It is licensed under a commercial -end user agreement license, -which prohibits redistribution in both object code and source code formats.

- -

Onivim’s core editor logic (bits that belong to vim), have been separated from -the interface, into libvim. libvim is -licensed under MIT, which means, this ‘extension’ of vim is perfectly in -adherence to vim’s license text! -Outrun Labs are exploiting this loophole (distributing vim as a library) to -commercialize Onivim.

- -

Onivim’s source code is available on GitHub. -They do mention that the source code trickles down to the -oni2-mit repository, which (not yet) contains -MIT-licensed code, 18 months after each commit to the original repository.

- -

Want to contribute to Onivim? Don’t. They make a profit out of your contributions. -Currently, Onivim is priced at $19.99, ‘pre-alpha’ pricing which is 80% off the -final price! If you are on the lookout for an editor, I would suggest using -Vim, charity ware that actually works, and costs $100 lesser.

- -
- ← Back -
-
-
- - diff --git a/docs/posts/onivim_sucks/index.html b/docs/posts/onivim_sucks/index.html new file mode 100644 index 0000000..d28b20d --- /dev/null +++ b/docs/posts/onivim_sucks/index.html @@ -0,0 +1,63 @@ + + + + + + + + + + + + + +
+
+
+ 02/08 2019 + + + 681a65f + + +
+ + Onivim Sucks + +
+

Onivim is a ‘modern modal editor’, combining fancy +interface and language features with vim-style modal editing. What’s wrong you +ask?

+ +

Apart from buggy syntax highlighting, +broken scrolling and +others, +Onivim is proprietary software. It is licensed under a commercial +end user agreement license, +which prohibits redistribution in both object code and source code formats.

+ +

Onivim’s core editor logic (bits that belong to vim), have been separated from +the interface, into libvim. libvim is +licensed under MIT, which means, this ‘extension’ of vim is perfectly in +adherence to vim’s license text! +Outrun Labs are exploiting this loophole (distributing vim as a library) to +commercialize Onivim.

+ +

Onivim’s source code is available on GitHub. +They do mention that the source code trickles down to the +oni2-mit repository, which (not yet) contains +MIT-licensed code, 18 months after each commit to the original repository.

+ +

Want to contribute to Onivim? Don’t. They make a profit out of your contributions. +Currently, Onivim is priced at $19.99, ‘pre-alpha’ pricing which is 80% off the +final price! If you are on the lookout for an editor, I would suggest using +Vim, charity ware that actually works, and costs $100 lesser.

+ +
+ ⟵ Back +
+
+
+ + diff --git a/docs/posts/static_sites_with_bash.html b/docs/posts/static_sites_with_bash.html deleted file mode 100644 index 5fdfcfe..0000000 --- a/docs/posts/static_sites_with_bash.html +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - - -
-
-
23/11 2019
- - Static Sites With Bash - -
-

After going through a bunch of static site generators -(pelican, -hugo, -vite), I decided to roll -my own. If you are more of the ‘show me the code’ kinda guy, -here you go.

- -

Text formatting: I chose to write in markdown, and convert -to html with lowdown.

- -

Directory structure: I host my site on GitHub pages, so -docs/ has to be the entry point. Markdown formatted posts -go into posts/, get converted into html, and end up in -docs/index.html, something like this:

- -
posts=$(ls -t ./posts)     # chronological order!
-for f in $posts; do
-    file="./posts/"$f      # `ls` mangled our file paths
-    echo "generating post $file"
-
-    html=$(lowdown "$file")
-    echo -e "html" >> docs/index.html
-done
-
- -

Assets: Most static site generators recommend dropping image -assets into the site source itself. That does have it’s -merits, but I prefer hosting images separately:

- -
# strip file extension
-ext="${1##*.}"
-
-# generate a random file name
-id=$( cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 2 | head -n 1 )
-id="$id.$ext"
-
-# copy to my file host
-scp -P 443 "$1" emerald:files/"$id" 
-echo "https://files.nerdypepper.tech/$id"
-
- -

Templating: -generate.sh -brings the above bits and pieces together (with some extra -cruft to avoid javascript). It uses sed to produce nice -titles from the file names (removes underscores, -title-case), and date(1) to add the date to each post -listing!

- -
- ← Back -
-
-
- - diff --git a/docs/posts/static_sites_with_bash/index.html b/docs/posts/static_sites_with_bash/index.html new file mode 100644 index 0000000..0605147 --- /dev/null +++ b/docs/posts/static_sites_with_bash/index.html @@ -0,0 +1,84 @@ + + + + + + + + + + + + + +
+
+
+ 23/11 2019 + + + d1faa7e + + +
+ + Static Sites With Bash + +
+

After going through a bunch of static site generators +(pelican, +hugo, +vite), I decided to roll +my own. If you are more of the ‘show me the code’ kinda guy, +here you go.

+ +

Text formatting: I chose to write in markdown, and convert +to html with lowdown.

+ +

Directory structure: I host my site on GitHub pages, so +docs/ has to be the entry point. Markdown formatted posts +go into posts/, get converted into html, and end up in +docs/index.html, something like this:

+ +
posts=$(ls -t ./posts)     # chronological order!
+for f in $posts; do
+    file="./posts/"$f      # `ls` mangled our file paths
+    echo "generating post $file"
+
+    html=$(lowdown "$file")
+    echo -e "html" >> docs/index.html
+done
+
+ +

Assets: Most static site generators recommend dropping image +assets into the site source itself. That does have it’s +merits, but I prefer hosting images separately:

+ +
# strip file extension
+ext="${1##*.}"
+
+# generate a random file name
+id=$( cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 2 | head -n 1 )
+id="$id.$ext"
+
+# copy to my file host
+scp -P 443 "$1" emerald:files/"$id" 
+echo "https://files.nerdypepper.tech/$id"
+
+ +

Templating: +generate.sh +brings the above bits and pieces together (with some extra +cruft to avoid javascript). It uses sed to produce nice +titles from the file names (removes underscores, +title-case), and date(1) to add the date to each post +listing!

+ +
+ ⟵ Back +
+
+
+ + diff --git a/docs/style.css b/docs/style.css index 45e69eb..fab6779 100644 --- a/docs/style.css +++ b/docs/style.css @@ -12,7 +12,7 @@ --black: #212121; --light-black: #535353; --white: #ffffff; - --dark-white: #d4d4d4; + --dark-white: #eeeeee; } body { @@ -114,8 +114,8 @@ a, a:hover, a:visited, a:active { .post-link, .post-link:hover, .post-link:visited, .post-link:active { color: var(--black); !important font-family: 'Inter', sans-serif; - font-weight: 600; - font-size: 1rem; + font-weight: 700; + font-size: 1.1rem; text-decoration: none; } @@ -127,6 +127,14 @@ a, a:hover, a:visited, a:active { font-size: 0.8rem; } +.post-title { + text-decoration: none; + color: var(--light-black); + text-shadow: none; + font-weight: 800; + font-size: 1.5rem; +} + .post-text { font-size: 0.9rem; } @@ -156,3 +164,9 @@ pre > code { ::-moz-selection, ::selection { background: var(--cyan); } + +.commit-hash { + float: right; + text-decoration: none; + font-family: Monospace; +} -- cgit v1.2.3