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
extension UIViewController { | |
func adjustTableViewInsects(tableView: UITableView?) { | |
guard let tableView = tableView, let navigationController = navigationController else { | |
return | |
} | |
automaticallyAdjustsScrollViewInsets = false | |
let statusBarHeight = UIApplication.sharedApplication().statusBarFrame.size.height | |
let navigationBarHeight = navigationController.navigationBar.bounds.size.height |
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
#!/bin/sh | |
rm -rf ~/Library/Developer/CoreSimulator/Devices | |
killall -9 com.apple.CoreSimulator.CoreSimulatorService |
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
#!/bin/sh | |
for i in $(find . -name "*.p12"); do | |
IN=$i | |
OUT=$(echo $i | sed 's/\.p12/.pem/g') | |
openssl pkcs12 -in $IN -out $OUT -nodes -clcerts | |
done |
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
#!/bin/sh | |
# gclient can be found here: | |
# git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git | |
# don't forget modify .bashrc: | |
# export PATH="$PATH":`pwd`/depot_tools | |
function fetch() { | |
echo "-- fetching webrtc" |
NewerOlder