Skip to content

Instantly share code, notes, and snippets.

@digiter
digiter / ios_code_signing_examples.sh
Last active September 20, 2023 15:41 — forked from chance909/iOS Codesigning command line commands
iOS code signing commands
//Tutorial https://www.objc.io/issues/17-security/inside-code-signing/
//Print which signing certificates are on computer
security find-identity -v -p codesigning
//Print what was used to codesign an app
codesign -vv -d Example.app
//Print what entitlements are enabled for app
codesign -d --entitlements - Example.app

This is an investigation on issue flutter/flutter#48818.

The benchmark post_backdrop_filter_perf_ios__timeline_summary was executed 5 times against the commit fa190a8685b1638f44624fb0693b2488629135af on mac10. There are 3 successful runs with similar results and 2 failed runs.

@digiter
digiter / gist:fc70afe166e3af3ff997bc76b854e200
Created November 27, 2019 21:23
flutter build ios error
[ +21 ms] executing: [/Users/flutter/.cocoon/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +32 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] b39949ff09992fb9d67500f7148f18b26906e868
[ ] executing: [/Users/flutter/.cocoon/flutter/] git describe --match v*.*.* --first-parent --long --tags
[ +16 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[ ] v1.12.15-21-gb39949ff0
[ +6 ms] executing: [/Users/flutter/.cocoon/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +8 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/master
[ ] executing: [/Users/flutter/.cocoon/flutter/] git ls-remote --get-url origin
@digiter
digiter / from-catalina.txt
Last active September 3, 2019 21:29
Debug Catalina Gatekeeper
flutter@mac9 Downloads % spctl --assess -vvvvvv Google\ Chrome.app
Google Chrome.app: accepted
source=Notarized Developer ID
origin=Developer ID Application: Google, Inc. (EQHXZ8M8AV)
flutter@mac9 Downloads % spctl --assess -vvvvvv /bin/zsh
/bin/zsh: rejected (the code is valid but does not seem to be an app)
origin=Software Signing
flutter@mac9 Downloads % spctl --assess -vvv /usr/local/bin/dart
@digiter
digiter / FixCommandForMacKeyboard.md
Last active December 2, 2022 19:48
Map Command Key to Control For ubuntu + mac keyboard

For each machine running xmodmap will give you the mapping and keycode, take a look first then write the script. I use ubuntu and mac keyboard. The below maps both left and right control and super.

Create an .Xmodmap file in your Linux home directory, with the following contents, then execute xmodmap .Xmodmap

clear control
clear mod4

keycode 37 = Super_L
keycode 105 = Super_R