Skip to content

Instantly share code, notes, and snippets.

View melon-husk's full-sized avatar
🌴
On vacation

Ujwal Bhagat melon-husk

🌴
On vacation
  • India
  • 15:38 (UTC +05:30)
View GitHub Profile
@melon-husk
melon-husk / get-test-command.sh
Created July 16, 2026 09:06
Script used to build the jest test command from git uncommitted changes
#!/bin/bash
# This script is used to build the jest test command from git uncommitted changes
#
# Usage:
# get-test-command # directory-based command (default)
# get-test-command -e # explicit file-based command
# get-test-command --explicit # explicit file-based command
# get-test-command -r # run the command instead of just printing it
# get-test-command --run # run the command instead of just printing it
@melon-husk
melon-husk / setup_zsh_ubuntu.sh
Created March 27, 2026 05:28
A bash script that automates the installation of Zsh, Oh My Zsh, and the zsh-autosuggestions plugin for Ubuntu
#!/bin/bash
# Exit immediately if a command exits with a non-zero status
set -e
echo "Updating package list and installing prerequisites..."
sudo apt update
sudo apt install -y zsh git curl
echo "Changing default shell to Zsh for user $USER..."
@melon-husk
melon-husk / around_the_world.py
Last active November 29, 2021 08:31
calculator_python
from math import *
from kandinsky import *
from random import *
from time import *
font_x=300
font_clock=0
text="Around the world"
rects_clock=0
rects_x=0
rects_y=222