git log --oneline master...rc
This file contains 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
variables: | |
GIT_STRATEGY: fetch | |
DEBUG_SCHEME: Debug | |
PRODUCTION_SCHEME: Production | |
stages: | |
- test | |
- danger | |
- archive |
This file contains 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
// How to: | |
// 1. Go in the Firebase Analytics Dashboard | |
// 2. Filter iOS Platform only | |
// 3. Scroll down, select `Device` under the "What is your audience like?" widget | |
// 4. Export the CSV data (top right of the corner, there's a `...` menu with Download CSV option) | |
// 5. Open the file and select the iOS breakdown raw data | |
// 6. Replace your data with the sample data in this script | |
// 7. Run the script in a Xcode Playground | |
// 8. See the terminal output |
This file contains 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
let maxBeers = 99 | |
var beers = maxBeers | |
while beers >= 0 { | |
switch beers { | |
case 0: | |
print("No more bottles of beer on the wall, no more bottles of beer. ") | |
print("Go to the store and buy some more, \(maxBeers) bottles of beer on the wall.") | |
case 1: | |
print("1 bottle of beer on the wall, 1 bottle of beer.") |
This file contains 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
var data = document.querySelectorAll(".infinite-scroll-component .row"); | |
var csvOutput = "Name, Identifier, Type\n" | |
for (var i = 1; i < data.length; i++) { | |
let name = data[i].childNodes[0].childNodes[0].textContent; | |
let identifier = data[i].childNodes[1].childNodes[0].textContent; | |
let type = data[i].childNodes[2].childNodes[0].textContent; | |
let device = [name, identifier, type].join(", ") + "\n"; | |
csvOutput += device; | |
} |
This file contains 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
Snippets | |
hexdump -C -n128 myfile.ext | |
security find-identity -v -p codesigning | |
codesign -d --entitlements :- Snapp.app | |
cd ~/Library/MobileDevice/Provisioning\ Profiles/ | |
security cms -D -i xxxxxxxx_your_pp_id.mobileprovision |
sudo killall -STOP -c usbd
- Just build (Command+B) your app from Xcode by setting proper code signing identities
- From Xcode's file search at left bottom, search for .app (This will be under product directory)
- Right Click on this .app file and select Show in Finder
- Now, create directory and name it as Payload, copy .app into Payload directory.
- Archive/Compress(.zip) this Payload directory, rename file extension from .zip to .ipa
- Create Archive
- Go to Organizer
- Get location of Archive by Right Click and selecting Show in Finder
This file contains 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
IPA="/path/to/file.ipa" | |
PROVISION="/path/to/file.mobileprovision" | |
CERTIFICATE="Name of certificate: To sign with" # must be in keychain | |
# unzip the ipa | |
unzip -q "$IPA" | |
# remove the signature | |
rm -rf Payload/*.app/_CodeSignature Payload/*.app/CodeResources | |
# replace the provision | |
cp "$PROVISION" Payload/*.app/embedded.mobileprovision | |
# sign with the new certificate |
- Turn off SIP so you can debug Instruments.app
- lldb -n Instruments
- put a breakpoint on - [XRRemoteDevice launchProcess:suspended:error:]
- select target device and apps, perform the task that you are interested in
- when the breakpoint is hit, reg write rcx 0 (override 3rd argument to false)
- continue
NewerOlder