Skip to content

Instantly share code, notes, and snippets.

View theamanbhargava's full-sized avatar

Aman Bhargava theamanbhargava

View GitHub Profile
name description license
ui-designer-v2
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
Complete terms in LICENSE.txt

Frontend Design Skill

This skill guides creation of distinctive, production-grade frontend interfaces that avoid generic "AI slop" aesthetics. Implement real working code with exceptional attention to aesthetic details and creative choices.

@theamanbhargava
theamanbhargava / mac_zsh_confg.md
Created June 16, 2025 21:47
Ultimate Mac ZSH config

Ultimate Mac Zsh Configuration Guide

Prerequisites

  1. Install Homebrew (if not already installed):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  1. Install required tools:
@theamanbhargava
theamanbhargava / reddit.js
Created May 16, 2025 21:07
Reddit Comments Add Absolute Datetime
// ==UserScript==
// @name Reddit Comment Timestamp Enhancer
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Enhances Reddit comment timestamps to show both relative and exact time
// @author You
// @match https://*.reddit.com/*
// @grant none
// ==/UserScript==
@theamanbhargava
theamanbhargava / pdf_merge.py
Last active January 21, 2025 10:11
Merge PDFs
from PyPDF2 import PdfMerger
import os
def merge_pdfs(input_folder, output_filename):
"""
Recursively merge all PDFs in the specified folder and its subfolders into a single PDF file.
Args:
input_folder (str): Path to the folder containing PDF files
@theamanbhargava
theamanbhargava / rules.yaml
Created November 6, 2024 07:36
Solaar MX Master 3s Configuration
# This replicates windows functionality of copy/paste using front and back buttons and using side scroll to turn volume up or down
%YAML 1.3
---
- Rule:
- Test: [thumb_wheel_up, 10]
- KeyPress:
- XF86_AudioRaiseVolume
- click
- Rule:
- Test: [thumb_wheel_down, 10]
@theamanbhargava
theamanbhargava / commands.txt
Last active January 23, 2023 14:46
Running commands on Elastic Beanstalk
sudo su -
source <(/opt/elasticbeanstalk/bin/get-config environment | jq -r 'to_entries | .[] | "export \(.key)=\"\(.value)\""')
source $PYTHONPATH/activate
cd /var/app/current
> command
source <(/opt/elasticbeanstalk/bin/get-config environment | jq -r 'to_entries | .[] | "export \(.key)=\"\(.value)\""')
source $PYTHONPATH/activate
cd /var/app/current
@theamanbhargava
theamanbhargava / a.sh
Created June 2, 2021 19:21
get into non running docker container as root
docker exec -u 0 -it {imageId} bash
try {
if(Boolean(childProcess
.execSync("git rev-parse --is-inside-work-tree 2>/dev/null")
.toString())
) {
branchName = childProcess
.execSync('git ls-remote --heads origin | grep $(git rev-parse HEAD) | cut -d / -f 3 | head -1')
.toString();
} else {
branchName = null
@theamanbhargava
theamanbhargava / convert.sh
Created December 7, 2020 21:08
ffmpeg batch convert mp4 to mov
for i in *.mp4; do ffmpeg -i "$i" -acodec copy -vcodec copy -f mov "${i%.*}.mov"; done