A tiny shell function that kills whatever is running on a given port. No more hunting for PIDs.
This document describes how to use the apply_luffy_trash_icons.sh script from gist: 8adca2e4f777d2ce4099c931f0d832cf, plus common issues and fixes.
- What it does:
- Downloads two Luffy images from Sweezy.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAoNoX6d36V1G0+mMcIx0hHWKS0N1Kgc3LObe8S++3EXdXWse4mkmtbKsVZKI9RrHH1+Qy6LVdzjEomH7Noo283kVKA1fjhvDkf7IS+w51gBlkfV59jX3b4fr+l9IQyiSS8FDuJ/+s00wRORbasPyToeTLD+8Goyc69ldiil/RZjpokb3zMdw0XyVmOs22A326YGJV0LrCTyDoTtYQmd9f0pcUjyRgPMjkHwgER6LtncsmAXDLGyfpoTJtBTrIxt7r9+e6IlPghXiZlv7y4F8urNyDRWEjPnDjUuiGnGtrgf0BToT9zco3hshL0PcgPQBprvTU7yGabjMgsWRhFaRz manofcode@manofcode-aspirevx15 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAoNoX6d36V1G0+mMcIx0hHWKS0N1Kgc3LObe8S++3EXdXWse4mkmtbKsVZKI9RrHH1+Qy6LVdzjEomH7Noo283kVKA1fjhvDkf7IS+w51gBlkfV59jX3b4fr+l9IQyiSS8FDuJ/+s00wRORbasPyToeTLD+8Goyc69ldiil/RZjpokb3zMdw0XyVmOs22A326YGJV0LrCTyDoTtYQmd9f0pcUjyRgPMjkHwgER6LtncsmAXDLGyfpoTJtBTrIxt7r9+e6IlPghXiZlv7y4F8urNyDRWEjPnDjUuiGnGtrgf0BToT9zco3hshL0PcgPQBprvTU7yGabjMgsWRhFaRz |