Skip to content

Instantly share code, notes, and snippets.

View mredig's full-sized avatar
🤓
1s and 0s aren't going to put themselves in the right order.

Michael mredig

🤓
1s and 0s aren't going to put themselves in the right order.
View GitHub Profile

This guide will help you create new releases on GitHub for your Swift Packages that host binary executable assets. This is a multistep process that consists of:

  • Staging a draft release on Github
  • Uploading your binary artifacts to the draft release
  • Updating the Package.swift to point to the uploaded assets in a staging branch
  • Finalizing the Github release

Setup

  • Install the GitHub CLI
@nielsvanvelzen
nielsvanvelzen / jf-dev-auth.md
Last active September 16, 2026 00:07
Jellyfin API Authorization

Jellyfin API Authorization

To start using the Jellyfin API, authorization is probably the first thing you'll need to do. Jellyfin's authorization options can be a bit confusing because there are a lot of deprecated options.

Generally there are three ways to authenticate: no authorization, user authorization with an access token or authorization with an API key. The first way is easy, just do nothing. But most often you'll need to use either the access token or API key.

Sending authorization values

There are two methods to send authorization values to the server. The preferred method is by using the Authorization header with the custom MediaBrowser scheme. When a header value is not possible (e.g. URLs send to external applications or due to other constraints) the ApiKey query parameter can be used. The query parameter just takes an access token or API key. We strongly recommend to always use the Authorization hea

@mikeyh
mikeyh / SMJobBlessUtil-python3.py
Last active July 12, 2025 03:18
SMJobBlessUtil.py for Python3 / Xcode 13.3 / macOS Monterey 12.3 (with workaround for otool arm64 weirdness)
#! /usr/bin/python3
#
# File: SMJobBlessUtil.py
#
# Contains: Tool for checking and correcting apps that use SMJobBless.
#
# Written by: DTS
#
# Copyright: Copyright (c) 2012 Apple Inc. All Rights Reserved.
#
import UIKit
final class ContentSizedTableView: UITableView {
override var contentSize:CGSize {
didSet {
invalidateIntrinsicContentSize()
}
}
@rob-brown
rob-brown / amiibo_ssbu.tcl
Last active January 17, 2025 23:27
HexFiend Amiibo Binary Templates
little_endian
# HexFiend Reference: https://github.com/HexFiend/HexFiend/blob/master/templates/Reference.md
proc parse_system {} {
goto 0
section "System" {
hex 1 "BCC1 (UID3 ^ UID4 ^ UID5 ^ UID6)"
hex 1 "Internal (Always 0x48)"
@marlonjames71
marlonjames71 / NSobjectProtocolConformance.swift
Last active July 17, 2020 15:55
NSObject Protocol Conformance
import Foundation
protocol NextObject: AnyObject, Hashable {
func isEqual(_ object: Any?) -> Bool
var hash: Int { get }
var superclass: AnyClass? { get }
func `self`() -> Self