Postgres on Digital Ocean Droplet

Digital ocean allows you to just host the postgres database through it’s postgreSQL management tools but this tutorial is for those who wants to setup on their droplet machine. This assumes that you are on Ubuntu Machine Step 1 - Install PostgreSQL sudo apt update sudo apt install postgres postgresql-contrib sudo systemctl start postgresql Step 2 - Posgres Roles and Databases Switch to postgres account and run PSQL prompt sudo -u postgres psql Exit out of the prompt by typing \q postgres=# \q Step 3: Crate new User sudo adduser voidash Step 4 - Create new Role Rolename should be same as user as per convention, same goes for database...

December 30, 2023 · voidash

Introducing Nushell

At it’s core Shells are just interactive user interface that exposes OS tools and services. This blog is a introduction to Nushell , a cross-platform shell written in Rust . We already have had fair share of shells like Bash, Zsh, Fish etc. Why do we need yet another shell? All existing shells have one thing in common, They all treat as if everything is a text. Enter Nushell where Everything is a structured data....

January 29, 2022 · voidash

How to switch between Nepali and English keyboard layouts in Linux

Romanized Nepali has become de-facto standard for typing Nepali. This is going to be a short guide on how to enable romanized nepali on Linux. Keep in mind that there is nothing to download as linux comes with the keyboard layout by default. However some of the linux distribution like Ubuntu make this process even simpler by giving a GUI interface. So This post will link external posts for those distribution and will only contain barebones method to change layout, which will work for any desktop environment running on X11 Server....

January 22, 2022 · voidash

How To Install Rust And The Linker It Requires On Linux

This post discusses how to install rust on linux. Well installation process is pretty simple but sometimes minimal distribution like Arch maynot bundle the linker and rustup (a tool used to install and manage rust installation) also doesn’t include linker Build Essential contains Linker Rust doesn’t include linker (which is required for generating execuatable ) on its installer. To install the linker, first check the type of distro you have...

December 4, 2021 · voidash

Alias Linux Command Explained succintly

Migrated from logicaletter.com Purpose to substitute a String in place of commands used in linux. Note: commands can include paramaters too. If you are familar with CMD then you would certainly know cls clears the screen. but in linux shell there is command called clear to wipe out terminal junk. so if i want to use cls in linux or unix like OS terminals then i would use $ alias cls='clear'...

December 29, 2018 · voidash

Linux Chmod command explained

Migrated from logicaletter.com CHMOD aka Change mode is the command present in linux or unix like systems. Purpose To change the mode of a file for specified user classes according to specified permissions with different function. Making it simpler it is used to change the permission of file . The basic syntax looks like chmod options permissions filename Permissions Permissions are boundary for file access that can be defined for each user classes....

August 29, 2018 · voidash