This file contains hidden or 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 | |
instruments -s devices \ | |
| grep "(\d[.0-9]\+) \[[0-9A-F]\{8\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{12\}\]" \ | |
| grep -o "[0-9A-F]\{8\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{12\}" \ | |
| while read -r line ; do | |
echo "Reseting Simulator with UDID: $line" | |
xcrun simctl erase $line | |
done |
This file contains hidden or 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
[$]> find . ! -name . ! -name .DS_Store | cut -c 3- | rev | cut -f2- -d'.' | rev > ~/Dropbox/Misc/Other/All\ Roms\ Full\ List.txt | |
[$]> paste -d':' <( du -h -- "." | \grep -v 'Automatically Import\|unsorted' | cut -f1 ) <(( \ls -fo -- "." | \grep -v 'total\|\.\|Automatically Import\|unsorted' | awk '{ print $2 }' & \ls -fo -- "." | \grep -v 'total\|\.\|Automatically Import\|unsorted' | awk '{ print $2 }' | paste -sd+ - | bc )) <( \ls -f -- "." | \grep -v 'total\|\.\|Automatically Import\|unsorted' ) | column -t -s':' | |
Stats | |
11M 1763 Atari 2600 | |
1.3M 81 Atari 5200 | |
14M 185 Atari 7800 | |
43M 302 Atari Lynx |
This file contains hidden or 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
import Foundation | |
import UIKit | |
class DeviceInfo { | |
class func getRawSystemInfoString() -> String { | |
var systemInfo = utsname() | |
uname(&systemInfo) | |
return withUnsafeMutablePointer(&systemInfo.machine) { ptr in String.fromCString(UnsafePointer<CChar>(ptr))! } | |
} |
This file contains hidden or 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
<!-- /storage/.kodi/userdata/advancedsettings.xml --> | |
<!-- http://androidpcreview.com/fix-kodi-buffering-problems-heres-how-to-modify-the-kodi-cache/2611/ --> | |
<advancedsettings> | |
<network> | |
<buffermode>1</buffermode> | |
<cachemembuffersize>104857600</cachemembuffersize> | |
<readbufferfactor>1.5</readbufferfactor> | |
</network> | |
</advancedsettings> |
This file contains hidden or 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
org.gradle.daemon=true | |
org.gradle.jvmargs=-Xmx5120M | |
org.gradle.parallel=true |
This file contains hidden or 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/bash | |
DIR="$1" | |
APPNAME="$2" | |
APP="$DIR/$APPNAME.ipa" | |
FRAMEWORKS_DIR="$DIR/Payload/$APPNAME.app/Frameworks" | |
PACKAGED_IPA="$DIR/Packaged$APPNAME.ipa" | |
TEMP_IPA_BUILT='/tmp/ipabuild' | |
DEVELOPER_DIR=`xcode-select --print-path` |
This file contains hidden or 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/bash | |
echo '' | |
################################# PROMPT ################################# | |
itunesconnect_user='[email protected]' | |
printf "itunesconnect password for email '$itunesconnect_user': " | |
read -s itunesconnect_pass | |
########################################################################## |
This file contains hidden or 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/bash | |
echo '' | |
################################# PROMPT ################################# | |
itunesconnect_user='[email protected]' | |
printf "itunesconnect password for email '$itunesconnect_user': " | |
read -s itunesconnect_pass | |
########################################################################## |
This file contains hidden or 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
export PATH=/usr/local/bin:$PATH | |
which -s brew | |
if [[ $? != 0 ]]; then | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
else | |
brew update | |
fi | |
which ios-sim || brew install ios-sim |
This file contains hidden or 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/bash | |
DESTINATION_DIR="$HOME/Desktop" | |
APP_PATH=$(find ~/Library/Developer/CoreSimulator/Devices/*/data/Containers/Bundle/Application/*/*.app -type d -maxdepth 0 -print0 | xargs -0 ls -td | head -n1) | |
APP_DIRNAME=$(dirname "$APP_PATH") | |
APP_BASENAME=$(basename "$APP_PATH") | |
FILE_EXTENSION="${APP_BASENAME##*.}" | |
FILE_NAME="${APP_BASENAME%.*}" | |
cd "$APP_DIRNAME" |