Skip to content

Instantly share code, notes, and snippets.

View anupkrbid's full-sized avatar
🏠
Working from home

Anup Kumar Bid anupkrbid

🏠
Working from home
View GitHub Profile
@anupkrbid
anupkrbid / poetery-101.md
Last active October 27, 2025 18:01
A quick, no-fluff guide to using Poetry — Python’s all-in-one tool for dependency management, virtual environments, and publishing packages. Includes the most common commands for setup, dependency handling, versioning, and project maintenance — perfect for beginners or anyone switching from pip/venv to Poetry.

Poetry 101

It a all in one tool that:-

  • Manages virtual env for python projects
  • Manages dependencies for python projects
  • Publish python packages to PyPI

Installation

SSH Setup Guide for VirtualBox Ubuntu VMs

This comprehensive guide covers setting up and managing SSH access to Ubuntu virtual machines running in VirtualBox, including detailed explanations of all commands used.

Understanding Linux Commands

Before we dive into the setup, let's understand some fundamental Linux commands we'll be using:

Sudo Command

sudo (Superuser Do) runs commands with administrative privileges:

Install Redis on macOS

Use Homebrew to install and start Redis on macOS

This guide shows you how to install Redis on macOS using Homebrew. Homebrew is the easiest way to install Redis on macOS. If you'd prefer to build Redis from the source files on macOS, see Installing Redis from Source.

Prerequisites

@anupkrbid
anupkrbid / README.md
Last active September 30, 2024 01:44
DSA Notes

DSA Notes

Bit Manipulation

Decimal to Binary Convertion

(13)10 -> (?)2

            ^ -----> (1101)
@anupkrbid
anupkrbid / tickertape-report-exporter.js
Created September 16, 2023 04:45
This is a script to export the tickertape screener results in a CSV format.
const scrapeData = () => {
const sections = document.querySelectorAll("#screener-table > section");
const headingElements = sections[0].querySelectorAll("div[id]");
const scrapedData = Array.from(headingElements).map(elm => {
const selector = elm.getAttribute("id") === "name" ? "stock-name-col" : elm.getAttribute("id") + "-col";
const rowElements = sections[1].querySelectorAll("." + selector + " .desktop--only")
return {
column: elm.querySelector(".data-cell .desktop--only").textContent,
#!/bin/bash
ssh-keygen
ls ~/.ssh
eval `ssh-agent`
ssh-add ~/.ssh/id_rsa
cat ~/.ssh/id_rsa.pub
# ssh -T [email protected]
@anupkrbid
anupkrbid / menlo.html
Created August 31, 2018 18:05 — forked from bear454/menlo.html
'Menlo' font not triggering non-monospaced render on Chrome/Android.
<!doctype html>
<html>
<head>
<style>
.monospace {
font-family: Menlo, Monaco, "Droid Sans Mono", Consolas, "Lucida Console", "Courier New", monospace;
}
.monospace_without_menlo {
font-family: Monaco, "Droid Sans Mono", Consolas, "Lucida Console", "Courier New", monospace;
@anupkrbid
anupkrbid / gh-pages-deploy.bash
Last active July 6, 2018 05:42
Deploying ignored dist folder to GitHub Pages. Commit this script and call it after having built your dist.
#!/bin/sh
git commit -am "Save uncommited changes (WIP)"
git branch --delete --force gh-pages
git checkout --orphan gh-pages
git add -f dist
git commit -m "Rebuild GitHub pages"
git filter-branch -f --prune-empty --subdirectory-filter dist && git push -f origin gh-pages && git checkout -
@anupkrbid
anupkrbid / README.md
Created July 6, 2018 04:57 — forked from hofmannsven/README.md
My simply Git Cheatsheet