Skip to content

Instantly share code, notes, and snippets.

View mikr13's full-sized avatar
🐶
I want a pet doggo❗

Mihir Kumar mikr13

🐶
I want a pet doggo❗
View GitHub Profile
@mikr13
mikr13 / brew-cleanup.sh
Created June 28, 2025 13:51
brew-cleanup
#!/bin/bash
# List of potentially safe-to-remove packages
CANDIDATES=(
# run brew ls
)
REMOVABLE=()
echo "Checking reverse dependencies of candidate formulas..."
const colorMap = {
red: "#f00",
green: "#0f0",
blue: "#00f",
} as const;
type Color = keyof typeof colorMap;
type LooseAutocomplete<T extends string> = T | (string & {});
type User = {
id: string;
username: string;
email: string;
password: string;
isActive: boolean;
roles: ("admin" | "user" | "guest")[];
};
type Profile = {
@mikr13
mikr13 / hls.sh
Created November 10, 2024 04:56 — forked from stenuto/hls.sh
HLS ffmpeg script
#!/bin/bash
# Function to display usage information
usage() {
echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]"
exit 1
}
# Check if at least one argument (input file) is provided
if [ $# -lt 1 ]; then
@mikr13
mikr13 / movie-data-json-pastecode_io.json
Last active October 18, 2024 09:43
movie_data.json
[
{
"id": 1,
"title": "The Galactic Journey",
"release_year": 2023,
"genre": ["Sci-Fi", "Adventure"],
"director": "Jane Doe",
"cast": [
{"name": "John Smith", "role": "Captain Stellar"},
{"name": "Emma Johnson", "role": "Lieutenant Nova"}
@mikr13
mikr13 / docker-help.md
Created May 17, 2020 14:30 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@mikr13
mikr13 / filltheword.py
Last active April 15, 2018 10:08
This is a program in python language for a game of Fill the whole word.
from random import randint
choice= 1
v= []
indices= []
val= 0
j= 0
datadict= {1:('beer', 'wine', 'spirit', 'cider'), 2:('eggs', 'beef', 'chicken', 'honey'), 3:('lion', 'tiger', 'dog', 'cat'), 4:('eminem', 'mohit', 'sunjay', 'amitabh'), 5:('lamborghini', 'porche', 'bmw', 'audi')}
@mikr13
mikr13 / StonePaperScissor.py
Last active July 3, 2018 06:21
A simple stone, paper and scissor program.
from random import randint
l = ['stone', 'paper', 'scissor']
choice=""
print("\nWelcome to Stone, Paper, Scissor\n");
print("\nInstructions:\nEnter 'stone', 'paper', 'scissor' pr 'exit' only(Without quotes)\n")
def play(c):
v= randint(0, 2)
print("\nComputer's Choice: "+l[v])