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
# print human-readable names from iOS provisioning profiles | |
get_provisioning_profile_name() { | |
strings $1 | grep -A 1 "<key>Name</key>" | sed 's/<key>//' | sed 's/<string>//' | |
} | |
alias namepp=get_provisioning_profile_name | |
get_all_provisioning_profile_names() { |
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/bash | |
# swift.sh: Bash script to launch swift from command line | |
# it works even with Xcode5 and several Xcode-Beta installed | |
NEW_XCODE=$(ls -m1 -d /Applications/Xcode6* | tail -r -n 1)/Contents/Developer | |
echo using $NEW_XCODE | |
$NEW_XCODE/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -sdk $NEW_XCODE |
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
alias ls="ls -alFGh" |
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/bash | |
#update-date.sh: a small script to find all files with wrong date (1 Jan 1970) and set to current date | |
COMP_FILE=$HOME/comp_file_delete_me | |
touch -t 197001020101 $COMP_FILE | |
echo Comparing with $COMP_FILE | |
echo Obtaining list of files with wrong date. Will take some time… | |
find ./ -depth -type f -not -newer $COMP_FILE -print -exec touch {} \; |
NewerOlder