Skip to content

Instantly share code, notes, and snippets.

View sankalpmukim's full-sized avatar
👋
Always learning!

Sankalp Mukim sankalpmukim

👋
Always learning!
View GitHub Profile
@sankalpmukim
sankalpmukim / ecr-cleanup.sh
Created June 29, 2025 05:17
script to clean up non-latest images in aws ecr. made to be run inside ci/cd
#!/bin/bash
# ECR Image Cleanup Script
# This script identifies and removes old Docker images from an ECR repository
# while preserving the latest backend-* and frontend-* tagged images
set -e
# Configuration - can be overridden by environment variables or command line
ACCOUNT_ID="${ACCOUNT_ID:-012345678901}"
@sankalpmukim
sankalpmukim / stage-selective.ps1
Created February 2, 2025 16:16
A simple script to stage sections of your code, and not have to stage your entire file.
<#
.SYNOPSIS
Stages Git changes within a specified line range for a given file.
.DESCRIPTION
This script takes a file path and a line range (start and end lines) as input.
It identifies all Git changes within that line range and stages them for commit.
.PARAMETER FilePath
The path to the target file.
@sankalpmukim
sankalpmukim / configure_git_aliases.sh
Last active April 13, 2024 10:25
configure_git_aliases.sh
#!/bin/bash
# Configure Git aliases
git config --global alias.co commit
git config --global alias.br branch
git config --global alias.st status
git config --global alias.ps push
git config --global alias.pl pull
git config --global alias.dc 'checkout -- .'
@sankalpmukim
sankalpmukim / .profile
Created October 21, 2023 16:19
profile script with simple features
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
@sankalpmukim
sankalpmukim / config.fish
Last active June 24, 2025 13:47
simple tmux friendly fish config
if status is-interactive
# Commands to run in interactive sessions can go here
end
# pnpm
set -gx PNPM_HOME "/Users/sankalpmukim/.local/share/pnpm"
fish_add_path /Users/sankalpmukim/.local/share/pnpm; # this one doesn't work for some reason. but let's try
# set --export PATH '$/Users/sankalpmukim/.local/share/pnpm/' $PATH
# pnpm end
@sankalpmukim
sankalpmukim / vscode-settings.json
Created August 4, 2022 14:14
My minimalist but still complete VS Code settings good for any Javascript or Typescript or React developer
{
"workbench.iconTheme": "material-icon-theme",
"glassit.alpha": 255,
"security.workspace.trust.untrustedFiles": "open",
"editor.inlineSuggest.enabled": true,
"bracket-pair-colorizer-2.depreciation-notice": false,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.formatOnSave": true,