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...
Hacking Casio Calculator
Let’s hack the fx-991es calculator. Precisely we are exploiting the Buffer Overflow technique and doing some stuff {TODO}.Let me be clear that the calculator is a computer anyways. Buckle up as weare going to dive deep into some Computer Architecture. Basics of fx-991es Don’t get afraid of fancy words or fancy figures. After all they are the simple chain of concepts hidden behind some characters. Chip: nX-u8 Series chip. Manual Here Architecture: Super Harvard CPU Resources and Programming Model : In Gajju We Trust General Architecture Most modern computer architecture follow the Vonn Neumann Architecture....
Pragmatic way to create a Rust based Web application | From Start to Deployment
A straightforward tutorial on how to setup a Rust based web app with actix and basic templating functionalities. A useless endeavour in post GPT era. I assure you all of this is thought out and planned by a human who wasted some human hours on this. The tools for the trade Actix : Web framework for Rust Tera : Templating engine that is one to one copy of Jinja Templating engine Nginx : HTTP Server Cargo....
Approaching Rest API Design
The Richardson Maturity Model outlines three levels of REST API maturity that make it RESTful. Level 1 is characterized by the use of URI resources and HTTP methods. Level 2 adds the use of HTTP response codes and HATEOAS. Level 3 adds additional hypermedia controls to further enable discoverability and self-description of the API. CRUD functions HTTP Verb CRUD POST Create GET Read PUT Update/Replace PATCH Update/Modify DELETE Delete Roy Fielding, co-found of HTTP-server project recognized that the web’s scalability was goverened by a set of key constraints....
Tor Is Beautiful
Looking through the Google Summer of Code 2023 organizations, I came across the Tor Project. The entry to the dark web, the infamous tor where red rooms are hosted, where secret organizations are working on New world order. At least that’s the viewpoint of the man who gets his half the knowledge from youtube. let me clear the distinction between deep web and dark web first. Deep web is indirectly accesible part of the internet....
Pokhara Memories
Memories: Tour to Mustang A written memoir of the trip from my side. You are a child of universe No less than the trees and the stars you have the right to be here And whether or not it is clear to you no doubt the universe is unfolding as it should – Max Ehrmann Cycling in pokhara: all the eons before me and the time my life conjured...
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....
Uninstall System Apps in Android With ADB
Computer is required Android is modified by manufacturers where they add some applications and games that can’t be uninstalled through application manager. Some of them are straight for promotion and advertisement; I guess that makes the phone a little bit affordable. But wheb users don’t have option to remove the bloatware, is simply unacceptable. Well through ADB(Android Debug Bridge), those bloatwares can be uninstalled for a user level....
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....
Scripting with Rust: A basic Guide
Was Rust built to be a scripting language? the types which you can use for crawling web, extracting links, sending mails etc. Generally stuff that serve single functionality with limited scope. Python fits into that domain perfectly and it is pleasant to write scripts in python. But what about Rust? The language doesn’t even come with a garbage collector, and you might as well fight its borrow checker until it deems your code is memory safe....