Not ideal, but works.
- Copy
.app
,.dSYM
and.crash
file into a temp folder - Copy the relevant crash symbols into a txt file name 'symbols.txt'. Format should look like:
0x00110176 0xb8000
0x0011003a 0xb8000
0x001d2d44 0xb8000
#!/bin/bash | |
# In ubuntu / ubuntu VM | |
sudo apt-get update && sudo apt-get upgrade -y | |
sudo apt-get update && sudo apt-get install nodejs -y | |
sudo apt-get install npm -y | |
sudo apt-get remove docker docker-engine docker.io -y | |
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common -y | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
#!/bin/bash | |
# To make this file executable from the command line, enter: `chmod +x hot-reload.sh` | |
nodemon -x "./reload.sh" --ext py |
#!/bin/bash | |
# To make this file executable from the command line, enter: `chmod +x reload.sh` | |
aai app exec sudo killall python -9 --no-container | |
aai app deploy --yes | |
aai app start |
import Foundation | |
extension String { | |
// Example usage: "My Text".localized() | |
func localized() -> String { | |
return Bundle.main.localizedString(forKey: self, | |
value: nil, | |
table: nil) | |
} |
extension UIView { | |
func reveal() { | |
if self.alpha == 1.0 { | |
return | |
} | |
UIView.animate(withDuration: 0.5) { | |
self.alpha = 1.0 | |
self.isUserInteractionEnabled = true | |
} | |
} |
// Requirements: info.plist: 'Privacy - Camera Usage Description' | |
import UIKit | |
import AVFoundation | |
import QRCodeReader //pod 'QRCodeReader.swift', '~> 8.2.0' | |
typealias QRManagerErrorBlock = (_ error: Error)->() | |
typealias QRManagerResultBlock = (_ valueScanned: String)->() | |
enum QRManagerError : Error { |
git config --global alias.st status | |
git config --global alias.br branch | |
git config --global alias.lo 'log --oneline --decorate=full' |
// Add this to a new run script in a target:Build Phases tab | |
TAGS="TODO:|FIXME:|WARNING:" | |
echo "searching ${SRCROOT} for ${TAGS}" | |
find "${SRCROOT}" \( -name "*.swift" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$" | perl -p -e "s/($TAGS)/ warning: \$1/" |
# Add this to the bottom of existing or new `~/.bash_profile` | |
# Git branch in prompt. | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ " |