Building Go Plugins inside Docker

24 Nov 2019 - 2 minute read
categories: tutorials tags: golang docker

Using Go plugins in your projects comes with a lot of caveats. As of writing, there hasn’t been much development on the feature recently. The commit history shows us that the last commit happened nearly 2 years ago. On the gopher slack, the sentiment, more or less, is that this is not a priority anymore. Along with this, there are multiple issues that come up with maintaining projects that use it:

Creating archive pages grouped by year in Hugo

15 Nov 2019 - 2 minute read
categories: tutorials tags: hugo blog golang

I was on the hunt to find out how to organize my blog and project archive pages by year in Hugo. After being unable to find any easy solutions I decided I would sit down and write the go template to render these pages myself. The idea was simple, iterate over the list divided by year into sub lists and render tables, but it turned out to be a bit tricky.

Extract filenames without their extensions…

18 Mar 2018 - 1 minute read
categories: tutorials tags: linux

Extract filenames without their extensions and put it in the clipboard ls -C | awk -F"." '{print $1}' | xclip -selection c

Adding xfce4 Keyboard Shortcuts for Clementine or Spotify

20 May 2017 - 1 minute read

xfce4 has default media key settings for Pragha music player. Although, if you use clementine music player you can use keyboard shortcuts to control it with DBus and MPRIS. Clementine is known as org.mpris.clementine and you can add the following entries to your Keyboard Settings > Application Shortcuts If you use spotify, it is registered as org.mpris.MediaPlayer2.spotify on qdbus. qdbus org.mpris.clementine /Player org.freedesktop.MediaPlayer.Next qdbus org.mpris.clementine /Player org.freedesktop.MediaPlayer.Pause qdbus org.mpris.clementine /Player org.

Working with J2ME on Linux in 2017

07 Feb 2017 - 2 minute read

I recently had to work on the J2ME platform for a course at my university. It is an old technology and does not have many recent articles about using or installing J2ME on Linux. J2ME SDK has had no support for Linux for a long time. The SDK 3.x only has support for Mac and Windows. The last version available was by Sun which is called the Sun Java Wireless Toolkit 2.

You can get a free BNC account on EliteBNC…

05 Feb 2017 - 1 minute read
categories: foss tutorials tags: foss irc tutorial

You can get a free BNC account on EliteBNC. It runs ZNC which you can run yourself if you have a spare VPS. All you need to do is login on FreeNode (you can use their webchat if you don’t have a client handy) and join #EliteBNC channel and issue the following command command: !request <username> freenode <your email id> and you will get the settings in your email if your request is approved.