diff options
Diffstat (limited to 'assets/md')
| -rw-r--r-- | assets/md/git-101-n.md | 196 | ||||
| -rw-r--r-- | assets/md/home.md | 63 | ||||
| -rw-r--r-- | assets/md/javascript-the-unrivaled-titan-of-the-web-development-realm.md | 53 |
3 files changed, 257 insertions, 55 deletions
diff --git a/assets/md/git-101-n.md b/assets/md/git-101-n.md new file mode 100644 index 0000000..ab7edea --- /dev/null +++ b/assets/md/git-101-n.md @@ -0,0 +1,196 @@ +# git 101: A Comprehensive Guide to Version Control + +Whether you're a developer or just a beginner, understanding git is essential for efficient version control and collaboration on software projects. This page aims to have everything you need to know about git, from the basics to more advanced topics. A burning desire to jump from a roof is guaranteed after going through this entire page. + +## Introduction to git + +git is a distributed version control system that allows developers to track changes in their codebase, collaborate with other developers, and manage different versions of their projects. It was created by Linus Torvalds in 2005 and has since become the standard for version control in software development. + +## Basic git Commands + +### Initializing a git Repository + +To start using git in your project, navigate to your project directory and run: + +```bash +git init +``` + +This command initializes a new git repository in the current directory. It creates a hidden directory named `.git` where git stores all the information about your project's history and configurations. + +### Adding Files to the Staging Area + +Before you commit your changes to your repository, you need to stage them. Use the following command to add the files to the staging area: + +```bash +git add <file> +``` + +Replace `<file>` with the name of the file you want to stage. You can also use `git add .` to add all modified files in the current directory and its subdirectories. + +### Committing Changes + +Once you've staged your changes, commit them to the repository with: + +```bash +git commit -m "Your commit message here" +``` + +This command creates a new commit with the changes that are currently staged. The `-m` flag allows you to provide a commit message inline. It's important to write clear and descriptive commit messages to document the changes you're making because we all know you won't remember a line of the code in the morning. + +### Checking Status + +To see the status of your files and changes, use: + +```bash +git status +``` + +This command shows you which files are staged, unstaged, or untracked, as well as any changes that haven't been committed yet. It's a helpful way to keep track of the state of your repository. God knows you won't survive without this. + +### Reverting Changes + +If you need to undo a commit, you can use the `git revert` command. This creates a new commit that undoes the changes introduced by the specified commit. Revert a commit by using: + +```bash +git revert <commit-hash> +``` + +Replace `<commit-hash>` with the hash of the commit you want to revert. Be honest, would you survive if this didn't exist for a day? + +### Resetting Changes + +The `git reset` command is used to reset the current HEAD to a specified state. This can be useful for undoing your local changes or moving the HEAD to a different commit. Reset the HEAD to the previous commit by using: + +```bash +git reset --hard HEAD^ +``` + +This command resets the HEAD to the previous commit, discarding any changes since then. Why did you commit your changes if you had to reset them anyway? + + +## Working with Branches + +### Creating a New Branch + +Branches allow you to work on new features (bugs) or bug fixes (more bugs) without affecting the main codebase. Create a new branch for your work with: + +```bash +git checkout -b <branch-name> +``` + +Replace `<branch-name>` with the name of your new branch. This command creates a new branch and switches to it. Please create branches for god's sake. Don't throw all the garbage in one place because god knows you won't be able to make any sense of it in the morning. + +### Switching Between Branches + +To switch between branches, use: + +```bash +git checkout <branch-name> +``` + +Replace `<branch-name>` with the name of the branch you want to switch to. This command allows you to move between different branches and work on the different parts of your project. + +### Merging Branches + +Once you've completed your work on a branch, you can merge it back into the main codebase. Merge all the changes from one branch into another with: + +```bash +git merge <branch-name> +``` + +Replace `<branch-name>` with the name of the branch you want to merge into your current branch. This command combines the changes from the specified branch into the current branch. Make sure the changes you are merging are thoroughly tested before merging. (Does garbage really need to be tested if its garbage anyways?) + +## Collaborating with git + +### Cloning a Repository + +To work on a project with other developers, you'll often need to clone a repository. To clone an existing repository, use: + +```bash +git clone <repository-url> +``` + +Replace `<repository-url>` with the URL of the repository you want to clone. This command creates a copy of the repository on your local machine, allowing you to work on it locally. + +### Pushing Changes + +Once you've made some changes to your local repository, you can push them to a remote repository for others to see. Push your changes to a remote repository with: + +```bash +git push origin <branch-name> +``` + +Replace `<branch-name>` with the name of the branch you want to push your changes to. This command uploads your local commits to a remote repository, making them available to others. Please don't push to production like the new intern. We know it won't end well and you'll have more garbage on your hand than you can handle. + +### Pulling Changes + +To get the latest changes from a remote repository, use: + +```bash +git pull origin <branch-name> +``` + +Replace `<branch-name>` with the name of the branch you want to pull changes from. This command downloads changes from a remote repository and merges them into your current branch. Got merge conflicts? Yeah well should have thought of that before getting into the world of collaborative software development. Good luck fixing the merge conflicts arising due to your changes. + +## Advanced git Topics + +### Rebasing + +Rebasing is a technique used to rewrite commit history. To rebase your changes onto another branch, use: + +```bash +git rebase <branch-name> +``` + +Replace `<branch-name>` with the name of the branch you want to rebase onto. This command moves your changes to the tip of the specified branch, rewriting the commit history. + +### Interactive Rebase + +An interactive rebase allows you to modify, squash, or reorder commits interactively. To perform an interactive rebase, use: + +```bash +git rebase -i HEAD~n +``` + +Replace `n` with the number of commits you want to include in the rebase. This command opens an interactive rebase editor where you can choose which commits to modify. Yeah yeah, go ahead and squash all your nonsensical commits into a single, less commit. (We all do that right?) + +### git Bisect + +git bisect is a binary search tool used to find the commit that introduced a bug (Don't all commits do this?). To start a bisect session, use: + +```bash +git bisect start +``` + +Then, mark the current commit as either good or bad (aren't all commits bad?), depending on whether it contains the bug: + +```bash +git bisect good +``` + +or + +```bash +git bisect bad +``` + +Repeat this process until git identifies the commit that introduced the bug. + +### Reflog + +The reflog is a log of all the git actions that have changed the HEAD or moved branches. It can be useful for recovering lost commits or understanding how the repository reached its current state. You can view the reflog with: + +```bash +git reflog +``` + +This command shows a list of recent actions, along with the commit hashes and descriptions. This is useful because we all know you're going to use rebase in the stupidest way possible. + +### git Hooks + +git hooks are scripts that run at specific points in the git workflow, allowing you to automate tasks before or after certain git actions. You can use git hooks to enforce coding standards, run your tests, or perform other custom actions. + +## Conclusion + +Congratulations! You've now mastered the art of managing garbage in style with git and learned some advanced techniques for efficient and version control and collaboration. Keep practicing and exploring git to become even more in managing your projects. diff --git a/assets/md/home.md b/assets/md/home.md index 128cb80..b4d2b9b 100644 --- a/assets/md/home.md +++ b/assets/md/home.md @@ -1,11 +1,11 @@ ## $ whoami -Hey folks, I'm Venkatesh Chaturvedi, currently working as an Enterprise Cloud Support Engineer at Atlassian. When I'm off the clock, I spend all my time spreading the archlinux propoganda and getting people converted to the holy religion of our lord and saviour Gabe. I build a shit ton of stuff that makes absolutely no sense and that no one except me would ever use. I run everything on my homelab and actively avoid any and all proprietary cloud services. +Hey folks, I'm Venkatesh Chaturvedi, currently working as "_Insert cool role here_" at "_Insert cool company here_". When I'm off the clock, I spend all my time spreading the archlinux propoganda and getting people converted to the holy religion of our lord and saviour Gabe. I build a shit ton of stuff that makes absolutely no sense and that no one except me would ever use. I run everything on my homelab and actively avoid any and all proprietary cloud services. ## $ ls blogs/ - **[git-101](/git-101)** -- **[JavaScript: The Unrivaled Titan of the Web Development Realm](/javascript-the-unrivaled-titan-of-the-web-development-realm)** +- **[git-101 (normal version)](/git-101-n)** - **[Bash Scripting 101](/bash-scripting-101)** - **[Legend of Zelda: Breath of the Wild - A Beautifully Frustrating Odyssey](/legend-of-zelda-breath-of-the-wild-a-beautifully-frustrating-odyssey)** - **[Arch Linux Installation Guide](/arch-linux-installation-guide)** @@ -38,6 +38,65 @@ Hey folks, I'm Venkatesh Chaturvedi, currently working as an Enterprise Cloud Su > This is a customised fork of the Android Open Source Project (AOSP). +## $ ls hardware/ + +Desktop PC +``` + -\' venkatesh@mainframe + .o+' ------------------- + 'ooo/ OS: Arch Linux x86_64 + '+oooo: Host: X870E Taichi + '+oooooo: Kernel: Linux 7.2.9-2-cachyos + -+oooooo+: Uptime: 4 hours, 58 mins + '/:-:++oooo+: Packages: 1873 (pacman) + '/++++/+++++++: Shell: bash 5.3.20 + '/++++++++++++++: Display (MSI4DD0): 3440x1440 in 34", 165 Hz [External] + '/+++ooooooooooooo/' Display (LG ULTRAGEAR): 2560x1440 @ 1.25x in 27", 60 Hz [External] + ./ooosssso++osssssso+' Window Manager: Hyprland 0.56.2 (Wayland) + .oossssso-''''/ossssss+' Theme: Gruvbox-Dark-BL [GTK2/3/4] + -osssssso. :ssssssso. Icons: Gruvbox-Plus-Dark [GTK2/3/4] + :osssssss/ osssso+++. Font: Noto Sans (10pt) [GTK2/3/4] + /ossssssss/ +ssssooo/- Cursor: default (24px) + '/ossssso+/:- -:/+osssso+- Terminal: kitty 0.49.2 + '+sso+:-' '.-/+oso: Terminal Font: JetBrainsMonoNFM-Regular (16pt) +'++:. '-/+/ CPU: AMD Ryzen 9 7950X3D (32) @ 5.76 GHz +.' '/ GPU 1: AMD Radeon 610M + GPU 2: NVIDIA GeForce RTX 4080 SUPER [Discrete] + Memory: 18.16 GiB / 30.42 GiB (60%) + Swap: 0 B / 23.21 GiB (0%) + Disk (/): 648.80 GiB / 906.71 GiB (72%) - ext4 + Disk (/home/venkatesh/GameDrive): 1.65 TiB / 1.79 TiB (92%) - ext4 + Disk (/home/venkatesh/GameDriveBackup): 637.83 GiB / 1.79 TiB (35%) - ext4 + Local IP (enp8s0): 192.168.1.4/24 + Locale: en_US.UTF-8 +``` + +Homelab Servr +``` + .://:' '://:. root@pve + 'hMMMMMMd/ /dMMMMMMh' -------- + 'sMMMMMMMd: :mMMMMMMMs' OS: Proxmox VE 9.2.4 x86_64 +'-/+oo+/:'.yMMMMMMMh- -hMMMMMMMy.':/+oo+/-' Host: A520M K V2 (-CF) +':oooooooo/'-hMMMMMMMyyMMMMMMMh-'/oooooooo:' Kernel: Linux 7.0.14-5-pve + '/oooooooo:':mMMMMMMMMMMMMm:':oooooooo/' Uptime: 44 days, 21 hours, 5 mins + ./ooooooo+- +NMMMMMMMMN+ -+ooooooo/. Packages: 906 (dpkg) + .+ooooooo+-'oNMMMMNo'-+ooooooo+. Shell: bash 5.2.37 + -+ooooooo/.'sMMs'./ooooooo+- Terminal: /dev/pts/0 + :oooooooo/'..'/oooooooo: CPU: AMD Ryzen 5 5600G (12) @ 4.46 GHz + :oooooooo/'..'/oooooooo: GPU: AMD Radeon Vega Series / Radeon Vega Mobile Series [Integrated] + -+ooooooo/.'sMMs'./ooooooo+- Memory: 27.28 GiB / 30.72 GiB (89%) + .+ooooooo+-'oNMMMMNo'-+ooooooo+. Swap: 4.07 GiB / 8.00 GiB (51%) + ./ooooooo+- +NMMMMMMMMN+ -+ooooooo/. Disk (/): 12.12 GiB / 109.69 GiB (11%) - ext4 + '/oooooooo:':mMMMMMMMMMMMMm:':oooooooo/' Local IP (vmbr0): 192.168.1.3/24 +':oooooooo/'-hMMMMMMMyyMMMMMMMh-'/oooooooo:' Locale: en_US.UTF-8 +'-/+oo+/:'.yMMMMMMMh- -hMMMMMMMy.':/+oo+/-' + 'sMMMMMMMm: :dMMMMMMMs' + 'hMMMMMMd/ /dMMMMMMh' + '://:' '://:' + + +``` + ## $ ls contact/ - **[Telegram](https://t.me/V3NK4135H)** diff --git a/assets/md/javascript-the-unrivaled-titan-of-the-web-development-realm.md b/assets/md/javascript-the-unrivaled-titan-of-the-web-development-realm.md deleted file mode 100644 index 58f03f2..0000000 --- a/assets/md/javascript-the-unrivaled-titan-of-the-web-development-realm.md +++ /dev/null @@ -1,53 +0,0 @@ -# JavaScript: The Unrivaled Titan of the Web Development Realm - -Greetings, fellow denizens of the digital domain! Today, we embark on a grand odyssey to reaffirm our unwavering allegiance to the venerable JavaScript, the titan upon whose shoulders the internet stands. Prepare yourselves for a raucous romp through the realm of coding, as we gleefully eviscerate the pretenders to the throne, most notably TypeScript, in our quest to extol the virtues of pure, unadulterated JavaScript. Without further ado, let the festivities commence! - -## Type Safety: Shackles of the Mundane - -Type safety, they say, is the hallmark of civilized coding practices. But who among us yearns for such banalities? JavaScript, with its laissez-faire attitude towards typing, allows our variables to roam free, unencumbered by the chains of static constraints. Embrace the chaos, my compatriots! Revel in the unpredictability that only JavaScript can bestow upon us. - -## Complexity: A Game for Lesser Mortals - -Behold, TypeScript, with its promises of clarity and orderliness! But where others see structure, we see confinement. JavaScript, in its raw and untamed form, is a symphony of complexity, a labyrinthine maze of possibilities. Why shackle ourselves to the constraints of TypeScript when we can dance freely in the maelstrom of JavaScript's boundless potential? - -## Type Coercion Errors: A Symphony of Serendipity - -Ah, the sweet serenade of type coercion errors! Like a siren's song, they beckon us into the abyss of uncertainty. TypeScript may shield us from their dulcet tones, but at what cost? Embrace the fickle whims of JavaScript, my friends, and bask in the delightful chaos of runtime errors. For it is in the crucible of adversity that true mastery is forged. - -## Readability: A Quaint Notion - -They speak of readability, of maintainability, as if these were virtues to be cherished. But we, the acolytes of JavaScript, scoff at such pedestrian concerns. Let our code be enigmatic, a cryptic cipher to confound the unworthy. For in the depths of obscurity lies the true essence of JavaScript's mystique. - -## Performance: A Trivial Pursuit - -TypeScript boasts of performance gains, of optimizations aplenty. But what need have we for such trifles? JavaScript, in all its ineffable glory, is a testament to the resilience of the human spirit. Let us revel in its idiosyncrasies, in its imperfections, and rejoice in the knowledge that speed is but a fleeting fancy in the grand tapestry of coding. - -## Flexibility: The Playground of Possibilities - -TypeScript may offer a structured approach to development, but at what cost? JavaScript, with its laissez-faire attitude, grants us the freedom to explore uncharted territories, to push the boundaries of creativity and innovation. Let us embrace the wild and untamed nature of JavaScript, my friends, and revel in the boundless possibilities it offers. - -## Community: The Heartbeat of Innovation - -JavaScript isn't just a language; it's a vibrant ecosystem teeming with life and energy. From the bustling forums of Stack Overflow to the hallowed halls of GitHub, JavaScript's community is a wellspring of inspiration and collaboration. Let us stand shoulder to shoulder with our fellow developers, united in our love for JavaScript and our disdain for its imitators. - -## Legacy: The Pillars of Progress - -JavaScript isn't just a passing fad; it's a timeless classic, a cornerstone of the web development landscape. From the humble beginnings of Netscape Navigator to the sprawling metropolis of modern web frameworks, JavaScript has stood the test of time. Let us pay homage to the pioneers who paved the way for JavaScript's ascent, and honor their legacy by continuing to push the boundaries of what's possible. - -## Versatility: The Swiss Army Knife of Programming - -Ah, behold the majestic versatility of JavaScript, a veritable Swiss Army knife in the hands of adept programmers. Unlike its monolithic counterparts, JavaScript transcends the confines of the browser, serving as the cornerstone of server-side scripting with Node.js, the linchpin of mobile app development with frameworks like React Native, and the driving force behind desktop application development with Electron. Its boundless versatility renders it the quintessential tool for developers across all domains. - -## Adaptability: Evolving with the Times - -Witness the inexorable march of JavaScript, a stalwart sentinel of progress in the ever-shifting landscape of web development. Unyielding in its quest for innovation, JavaScript refuses to stagnate, instead embracing the winds of change with open arms. Propelling forward with the advent of ES6 and beyond, it evolves, assimilating modern features and paradigms while preserving its fundamental essence. Adapting to the dynamic landscape of web development, JavaScript equips developers with the requisite tools to conquer the uncharted territories of the future. - -## JavaScript, Eternal and Immutable - -In the grand tapestry of web development, JavaScript stands as an indomitable colossus, its prowess unmatched, its influence unparalleled. From the chaotic symphony of type coercion errors to the enigmatic allure of its cryptic code, JavaScript reigns supreme, a titan among languages. It transcends mere syntax and semantics, embodying the very essence of adaptability and resilience. - -With each passing epoch, JavaScript evolves, a beacon of innovation in an ever-changing landscape. From the hallowed halls of server-side scripting to the uncharted frontiers of mobile and desktop application development, JavaScript's versatility knows no bounds. It is the Swiss Army knife of programming, a veritable powerhouse empowering developers across every domain. - -As we gaze upon the majestic silhouette of JavaScript, let us not forget its enduring legacy, a testament to the ingenuity of its creators and the unwavering dedication of its disciples. Long may it continue to inspire, innovate, and evolve, shaping the destiny of web development with its immutable presence. - -Let us raise our voices in unison and proclaim to the world: **JavaScript reigns supreme, the immutable sovereign of the web development realm, and may its reign be eternal.** |