Skip to content

Instantly share code, notes, and snippets.

View ampacs's full-sized avatar

André Santiago ampacs

  • Hilversum, The Netherlands
  • 23:48 (UTC +01:00)
View GitHub Profile
@LunaTheFoxgirl
LunaTheFoxgirl / 0. How to use.md
Last active March 2, 2025 11:06
Shell script to sign and notarize Unity App Bundles.

First get a Developer ID signing key from apple. You can get this through xcode if you're subscribed to their developer service.

Once you have a Developer ID in your keychain; you need to add a per-app password for notarytool. To do so go to your Apple account settings and add a new per-app-password; copy the password.

Run xcrun notarytool store-credentials --password "<INSERT PER-APP-PASSWORD HERE>" "notarytool".

After this you can add sign.sh and entitlements.plist to the outside of your Unity application, first time run chmod +x sign.sh. You can then run ./sign.sh <name of app>.app and wait.

@sug0
sug0 / union.go
Last active March 14, 2024 07:10
Go 1.18 tagged union types!
// no, this is not that useful
package main
import (
"fmt"
"unsafe"
)
type Kind[T any] struct{}
@Tyrael
Tyrael / revert-newline.sh
Created November 14, 2011 14:09
svn revert files in current directory having newline changes only
svn st|grep ^M|awk '{cmd = "svn diff -x --ignore-eol-style "$2;if ((cmd | getline result) <= 0) system("svn revert "$2);}'