Skip to content

Instantly share code, notes, and snippets.

View Sv443's full-sized avatar
πŸ³οΈβ€πŸŒˆ

Sv443

πŸ³οΈβ€πŸŒˆ
View GitHub Profile
@Sv443
Sv443 / fetch iTunes album info and high res artwork URL.ts
Created May 5, 2025 11:47
TypeScript function and types for fetching the info of an album given its name and the artist's name. Also allows to fetch the artwork in its highest available resolution (generally around 1500x1500).
type ITunesAlbumObj = {
wrapperType: "collection" | (string & {});
collectionType: "Album" | (string & {});
artistId: number;
collectionId: number;
artistName: string;
collectionName: string;
collectionCensoredName: string;
artistViewUrl: `https://music.apple.com/us/artist/${string}/${number}?uo=${number}`;
collectionViewUrl: `https://music.apple.com/us/album/${string}/${number}?uo=${number}`;
@Sv443
Sv443 / download_private_latest_github_release_asset.sh
Created September 27, 2025 16:45
Bash script to download an asset from the latest GitHub release of a private repo
#!/bin/bash
set -e
OWNER=""
REPO=""
FILE_PATTERN="" # example: "build-*.zip"
TOKEN="" # personal access token with permissions to read "Content"
# INCLUDE_PRERELEASE="true" # whether to include prereleases - remove the # to enable