Skip to content

Instantly share code, notes, and snippets.

View txtyash's full-sized avatar
🍀
Aw man! [hums happily]

textYash txtyash

🍀
Aw man! [hums happily]
View GitHub Profile
@txtyash
txtyash / backend-pre-requisites.md
Last active June 7, 2025 14:32
Backend development pre-requisites

Backend development pre-requisites

Introduction

This is a gist for backend development for web platforms. Let's take a website for example Google https://google.com. When we visit Google in our browser, we see their landing page with their logo and an input box where we can search whatever we want. The things we see on our screen is the user interface or the frontend. Now when we enter anything in the input box and hit enter, how do we get search results? That's where the backend comes in, it understands our requests and gives us results. That's exactly like communication between two people.

Networking

Although networking is a big topic and hard to understand, we only need to understand one thing to get started: IP addresses. If I had to visit a friend, I would need their address, similarly all electronic devices connected to the Internet have a unique IP address. There are enough IP addresses for all of us. Let's say the IP address 2001:0db8:85a3:0000:0000:8a2e:0370:7334 belongs to a computer

@txtyash
txtyash / default.nix
Last active November 4, 2023 19:56
submodules
{
lib,
config,
...
}: {
imports = [./options.nix ./yash];
config.profiles.yash.editor = "nvim";
# Generate this: users.users.yash.description = "Yash Shinde";
{
imports = [ ./users.nix ];
x.users.alice.editor = "hx";
x.users.bob.editor = "vi";
x.users.clive.editor = "code";
boot.loader.grub.enable = false;
fileSystems."/" = { device = "/dev/sda1"; };
}
@txtyash
txtyash / vimiumC.search
Last active January 7, 2024 10:37
Custom search engines vimiumC
@txtyash
txtyash / loader.conf
Created August 29, 2022 06:35
loader.conf for gummiboot placed under /boot/loader/loader.conf
default arch.conf
timeout 0
console-mode max
editor no
@txtyash
txtyash / slock.service
Last active August 27, 2022 16:43
Lock screen on sleep/hibernate with slock. Place this file under /etc/systemd/system/slock.service
[Unit]
Description=Lock X session using slock for user %i
Before=sleep.target
[Service]
User=zim
Environment=DISPLAY=:0
ExecStartPre=/usr/bin/xset dpms force suspend
ExecStart=/usr/bin/slock
@txtyash
txtyash / vimiumC.keys
Last active July 4, 2023 10:43
vimiumC keybindings
map s LinkHints.activate
map S LinkHints.activateOpenInNewTab
map D closeTabsOnRight
map [ moveTabLeft
map ] moveTabRight
map r reload hard
map ( previousTab
map ) nextTab
map H previousTab
map L nextTab
@txtyash
txtyash / kmon.service
Last active August 13, 2022 18:46
My kmonad service file at /etc/systemd/system/kmon.service
[Unit]
Description=Kmonad keyboard utility
[Service]
Type=simple
ExecStart=/usr/bin/kmonad /home/zim/.kmonad.kbd
[Install]
WantedBy=multi-user.target
@txtyash
txtyash / .xinitrc
Last active August 6, 2022 17:40
setxkbmap swap alt with super and caps with esc
setxkbmap -option altwin:swap_lalt_lwin
setxkbmap -option caps:swapescape
# add these lines to your .xinitrc
@txtyash
txtyash / xmonad.hs
Last active October 9, 2023 11:40
My xmonad config
-- Yash's Xmonad config
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances #-} -- Hightlight Bar
-- ================================ IMPORT ==============================================
import XMonad
import XMonad.Util.EZConfig
import XMonad.Util.Ungrab
import qualified XMonad.StackSet as W
import qualified Data.Map as M