Skip to content

Instantly share code, notes, and snippets.

View man-of-code's full-sized avatar
🎯
Focusing

Mratyunjay Soni man-of-code

🎯
Focusing
View GitHub Profile
@man-of-code
man-of-code / killport.md
Created May 13, 2026 08:49
Killport - native zsh macOS kill command macro with the listening port as a custom argument

killport — Kill Any Process by Port on macOS

A tiny shell function that kills whatever is running on a given port. No more hunting for PIDs.


Installation

1. Add the function to your shell config

Luffy Trash Icons – Usage & FAQ

This document describes how to use the apply_luffy_trash_icons.sh script from gist: 8adca2e4f777d2ce4099c931f0d832cf, plus common issues and fixes.


Overview

  • What it does:
    • Downloads two Luffy images from Sweezy.
#!/usr/bin/env bash
# =============================================================================
# apply_luffy_trash_icons.sh
# Downloads the One Piece Fat Luffy cursor/pointer PNGs from Sweezy,
# converts them to macOS .icns format, and applies them to Trash icons.
#
# • Cursor image → Empty Trash
# • Pointer image → Full Trash
#
# Strategy (in order):
@man-of-code
man-of-code / gist:cd7d8733cff373bf89a323971ee990a0
Last active March 20, 2018 20:21
Changes to be made in "entities.py"
from critiquebrainz.frontend.external.musicbrainz_db.release_group import fetch_multiple_release_groups, get_release_group_by_id
from critiquebrainz.frontend.external.musicbrainz_db.place import fetch_multiple_places, get_place_by_id
from critiquebrainz.frontend.external.musicbrainz_db.event import fetch_multiple_events, get_event_by_id
from critiquebrainz.frontend.external.musicbrainz_db.artist import fetch_multiple_events, get_artist_by_id
from critiquebrainz.frontend.external.musicbrainz_db.label import fetch_multiple_events, get_label_by_id
from critiquebrainz.frontend.external.musicbrainz_db.work import fetch_multiple_events, get_work_by_id
from critiquebrainz.frontend.external.musicbrainz_db.recording import fetch_multiple_events, get_recording_by_id
def get_multiple_entities(entities):
"""Fetch multiple entities using their MBIDs.
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAoNoX6d36V1G0+mMcIx0hHWKS0N1Kgc3LObe8S++3EXdXWse4mkmtbKsVZKI9RrHH1+Qy6LVdzjEomH7Noo283kVKA1fjhvDkf7IS+w51gBlkfV59jX3b4fr+l9IQyiSS8FDuJ/+s00wRORbasPyToeTLD+8Goyc69ldiil/RZjpokb3zMdw0XyVmOs22A326YGJV0LrCTyDoTtYQmd9f0pcUjyRgPMjkHwgER6LtncsmAXDLGyfpoTJtBTrIxt7r9+e6IlPghXiZlv7y4F8urNyDRWEjPnDjUuiGnGtrgf0BToT9zco3hshL0PcgPQBprvTU7yGabjMgsWRhFaRz manofcode@manofcode-aspirevx15
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAoNoX6d36V1G0+mMcIx0hHWKS0N1Kgc3LObe8S++3EXdXWse4mkmtbKsVZKI9RrHH1+Qy6LVdzjEomH7Noo283kVKA1fjhvDkf7IS+w51gBlkfV59jX3b4fr+l9IQyiSS8FDuJ/+s00wRORbasPyToeTLD+8Goyc69ldiil/RZjpokb3zMdw0XyVmOs22A326YGJV0LrCTyDoTtYQmd9f0pcUjyRgPMjkHwgER6LtncsmAXDLGyfpoTJtBTrIxt7r9+e6IlPghXiZlv7y4F8urNyDRWEjPnDjUuiGnGtrgf0BToT9zco3hshL0PcgPQBprvTU7yGabjMgsWRhFaRz