Whether you installed Golang from Ubuntu official repositories or the Golang backports PPA and you simultaneously installed multiple versions (eg. golang-1.20, golang-1.21, ...), it can be a bit difficult to use them since, technically,…
Let's suppose that you bought a new computer and you want to move/copy your GnuPG key and you Pass repository to your new machine. That's how I did it: Copy the GPG key from…
As a Linux user I'm used to reading man(1) pages or (on|off)line documentation and knowing withing seconds what a piece of software is doing and how it's working. The technology now is…
I was really surprised that a rather large amount of online tutorials or comments post code similar to this: dir=$(dirname $0) or dir=$(dirname $(readlink -f $0)). On the surface, this code looks good,…
There are a some functions in C that you should never use. Functions that make your program vulnerable to attacks (such as buffer overflow attacks) or that might crash your program or that might corrupt…
If you want to change the directory that the MySQL server uses to create and store temporary files (usually the default directory is /tmp), you must set the tmpdir option, either by by putting a…
Sometimes you may need to know your public IPv4 address. If you have an open browser window you may go to https://www.whatismyip.com/ or to http://canihazip.com/. However, I prefer the latter…
Yes, the Internet is full of trolls, 87% of people on the internet are assholes and many people (especially women) suffer from online harassment. And, yes, getting information off the Internet is like taking a…
In the context of a command line interpreter, clobbering means overwriting the contents of a file using shell redirection (using the > and >> operators). This is sometimes useful, sometimes catastrophic. By default, the…
If you run into this on Ubuntu when trying to execute iptables on your DigitalOcean Ubuntu droplet: modprobe: ERROR: ../libkmod/libkmod.c:556 kmod_search_moddep() could not open moddep file '/lib/modules/3.…
I like to consider myself a good programmer (not the best, but definitely above the average, and yes, this may be the Dunning-Kruger effect). I'm (very) good in a number of fields, but watching movies…
As you know, you may not declare functions in C before using them. That's because (in the c89 standard) if your function was not declared before it's being used (i.e. called), the function is…
Correctly configuring a SSL certificate is very important for two reasons: A wrong configuration may compromise the security and defeat the very purpose of a SSL certificate. A wrong configuration may break the normal functioning…
Am alergie la această expresie. O aud zilnic, toată lumea se plânge de câte ceva, dar nu asta este cel mai enervant, ci că, de obicei, lumea se limitează doar la blestematul "nu merge" atunci…
I was trying a few days back to deploy a node.js application on a virtual machine with only 512MB of RAM and no swap partition. And a neccessary step is to install the dependencies…
Sunt încă în căutare de idei și de identitate și nu m-am hotărât în ce limbă să scriu aici. De fapt, nu m-am hotărât nici măcar ce să scriu. Dar cred că postările pe teme…