linux
Generating Go docs using gomarkdoc and pandoc
I recently had to distribute the documentation of an internal library to users. Go developers are used to their editor to providing them with auto completion, usually with the help of gopls. A lot of times it is necessary for users to be able to browse a comprehensive list of methods and data types available for reference. For open source projects, we rely on godoc.org and pkg.go.dev. But unfortunately, it is not easy to host one for internal projects.
Streaming audio from Linux to Android using PulseAudio over LAN
Suppose you are in a situation where you want to watch a movie on your TV or monitor but don’t want to use speakers. Maybe you are looking to listen to an audio book stored on your laptop but don’t want to transfer it to your phone. Or you just want to buy an audio jack splitter. Look no further, PulseAudio to the rescue. PulseAudio provides streaming via SimpleProtocol on TCP via a simple command.
Automate fast download of a large files through FTP
lftp -e 'set net:timeout 10; pget -n 10 BigFile.zip; bye' -u UserName,PassWord ftp://BigFiles.com
Reviving an old Samsung N150 Netbook and making it a solid Dev Environment
I had an old Samsung N150 netbook lying around in my parent’s house. It was an amazing netbook and I remember fondly using it when my parents were not using it to browse the internet and sometimes even use it for school work. It came with Windows Vista if I recall correctly but I had installed Windows XP service pack 3 on it because as we know, Vista sucked! Well, the netbook was very solid, it even ran small games such as Fifa Manager etc and came with a solid keyboard, ethernet and VGA as well for connecting to a big screen.
Extract filenames without their extensions…
Extract filenames without their extensions and put it in the clipboard ls -C | awk -F"." '{print $1}' | xclip -selection c
Setting up LaTeX on Spacemacs
I have been using Vim for text editing and even Vim mode even in Sublime Text. Although, I wanted to use Org mode so I switched to Spacemacs with Evil mode that gives the best of both worlds. I had been using TeXworks and TeXstudio for editing and building LaTeX documents but now that I have Emacs, I wanted to try out the pdf-tools layer and latex layers so that all my work can be done from inside Spacemacs itself.
Adding xfce4 Keyboard Shortcuts for Clementine or Spotify
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.
Just discovered Xfce4 has an inbuilt Drop Down…
Just discovered Xfce4 has an inbuilt Drop Down Terminal which you can use by running the command `xfce4-terminal –drop-down` using an Application Shortcut. Applications – Settings – Keyboard. Select the Application Shortcuts tab, click on the Add button, type in the command and give a shortcut key. I used F12.
Working with J2ME on Linux in 2017
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.
SOCKS Proxy
I used to use the `-L` flag in SSH but today I was going through the man page and saw the `-D` flag. It can be used to make a SOCKS5 proxy easily. For eg. `ssh -f -N -D 8080 [email protected]` Also, a big thanks to EliteBNC.org for giving a free ZNC node. Feels great to be back on IRC after so long.