Skip to content

Instantly share code, notes, and snippets.

View tangoabcdelta's full-sized avatar

tangoabcdelta

View GitHub Profile
@tangoabcdelta
tangoabcdelta / SimpleHTTPServer.md
Created October 20, 2025 15:05
Create SimpleHTTPServer using Python

SimpleHTTPServer

The command python -m simplehttpserver starts a simple HTTP server in Python 2 that serves files from the current directory.

However, this module was removed in Python 3.

For modern Python, you should use the http.server module instead.

How to use http.server in Python 3

@tangoabcdelta
tangoabcdelta / .markdownlint.master.reference.jsonc
Last active September 7, 2025 12:11
A single JSON configuration file that contains all possible settings available in markdownlint with their default values
{
"default": true,
"extends": null,
"MD001": true,
"MD003": {
"style": "consistent"
},
"MD004": {
"style": "consistent"
},
@tangoabcdelta
tangoabcdelta / clear.node.modules.sh
Created July 17, 2025 19:55
Clear all Node Modules and .git directories recursively
#!/bin/bash
# Set permission for this file: chmod +x file-name.sh
# Function to perform the required actions in each directory
function process_directory() {
local target_dir="$1"
if [[ ! -d "$target_dir" ]]; then
echo "Error: Directory $target_dir does not exist."
@tangoabcdelta
tangoabcdelta / Audit Trail, WAA, Secure Authenticated Persistent ID.md
Created June 23, 2025 03:25
Audit Trail and WAA and SAPISID - Secure Authenticated Persistent ID

Audit Trail and Secure Authenticated Persistent ID

curl 'https://waa-pa.xx.google.com/$rpc/xx.xx.v1.Waa/Create' \
  -H 'Accept: */*' \
  -H 'Accept-Language: en-GB-oxendict,en-US;q=0.9,en;q=0.8' \
  -H 'Authorization: SAPISIDHASH 1750645628_xx SAPISID1PHASH 1750645628_xxx SAPISID3PHASH 1750645628_xxx' \
  --data-raw '["/<app-name-hased>"]'
@tangoabcdelta
tangoabcdelta / capabilities.md
Created June 23, 2025 03:05
system design for sample notes application

The capabilities Array

In the request payload, we would want to send a list of feature flags These faeature flags are abbreviated to minimize payload size and tampering. We determine the supported functionalities in the client - The client could be a Mobile App, A web view, or web app running inside a browser. We send these to the backend API - Each type code represents a specific capability that the client can handle or is requesting to use.

"capabilities": [{
 "type": "EC"
@tangoabcdelta
tangoabcdelta / local-settings.md
Created June 16, 2025 10:23
Nexus - Sonatype - All about local nexus

Set Path

export PATH=$HOME/Downloads/nexus-3.58.1-02-unix/nexus-3.58.1-02/bin:$PATH

Default Settings

@tangoabcdelta
tangoabcdelta / shape-shifter.css
Last active October 9, 2024 11:57
Uneven Border Designs
div {
width: 100%;
margin-top: 5%;
text-align: center;
}
p {
display: inline-block;
width: 20%;
margin: 5% auto;
@tangoabcdelta
tangoabcdelta / 80s-settings.json
Last active September 19, 2024 17:52
Funky VS Code Workbench Colour Customizations
{
"workbench.colorCustomizations": {
"activityBar.activeBackground": "#ff00ff",
"activityBar.background": "#0000ff",
"activityBar.foreground": "#00ff00",
"activityBar.inactiveForeground": "#00ff0099",
"activityBarBadge.background": "#ff00ff",
"activityBarBadge.foreground": "#000000",
"commandCenter.border": "#00ff0099",
"sash.hoverBorder": "#ff00ff",
@tangoabcdelta
tangoabcdelta / Flow_of_Ideas.md
Last active July 7, 2024 06:05
Flow of Ideas

C.U.R.E CodeUnravelReadEasy

  • A utility that opens an open source JS repo and flattens the content into the main file so that a developer doesn't have to navigate the hoops and loops of dependencies.
    • It should be like the Bundling tool which doesn't obfuscate or minimize or add any additional code
    • It just bundles everything into a single codebase to get a better readability
    • Also, the rabbit holes of nested dependencies can be avoided completely
    • This will also make it easier for the maintainers to fix vulnerabilities
    • Although, it can be hard to garner enough interest from security researchers if the codebase isn't popular
  • There are a few similar utilities in the public domain that flatten or bundle JavaScript files, although they might not function exactly as described:
  • Webpack: Module bundler that can also create a dependency graph and bundles up all the modules into a single file.
  • Truffle Flattener: npm utility to flatten or combines Solidity files developed un
@tangoabcdelta
tangoabcdelta / git_hist_command.md
Last active October 31, 2023 05:10
Adding `git hist` alias that shows you the history of a directory or a file

To create a git hist alias in your Bash profile that:

  1. prints the history of the whole directory if no arguments are specified, and
  2. if a file or directory is specified, it shows the history of that,

you can add the following lines to your ~/.bash_profile or ~/.bashrc file:

# define a Bash function called git hist
git hist() {