Bookmarks - October 2018
Links on: How to protect GitHub repos, some good crypto blogs, programming languages for graphic designers and more …
Bookmarks - September 2018
Links on: parallel programming with Python, top 10 Android terminal commands, cyber security topics and more …
Bookmarks - August 2018
Links on: The Orange Juice Test, database scaling techniques, and the flux design pattern.
Two Sum Problem
My solution to this classic interview question.
How to encrypt a file with a password using OpenSSL
Reference of commands to encrypt a file with a password using OpenSSL.
How to create a self signed RSA certificate with OpenSSL
Reference of commands to create a self signed RSA certificate with OpenSSL
Repeat a SQL command multiple times
How to repeat a SQL command multiple times
How to configure DNS nameservers on Ubuntu 18.04
On most Linux distributions you configure DNS nameservers in /etc/resolv.conf. However in recent versions of Ubuntu that changed with the introduction of Netplan.
Netplan is configured by editing YAML files located in /etc/netplan/. The precise name of this file will depend on your system configuration. I’m using an Ubuntu droplet on Digital Ocean, and the file is called 50-cloud-init.yaml.
Configure DNS nameservers Open the .yaml configuration file in /etc/netplan using your favourite text editor.
Windows Shell Aliases
Shell Aliases Shell aliases allow you to navigate to special folders on Windows. They can be used in the Windows explorer, the start menu, and the Run dialog. For example, open the run dialog (Win+R) and type shell:personal and hit enter. Windows explorer will open in your Documents directory.
A complete list of these folders can be found in the following registry key:
1 HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions To enumerate their names and the relative path you can run the following PowerShell script:
Aliases in bash
How to set and unset an alias in bash