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 {} \; |
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 | |
# 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
# 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
__As a__ ideista | |
__I use a hotmail account__ | |
__I introduce myself__ as a loser | |
__And I want you__ to _work for free in my shitty project_ | |
__to develop__ _my Idea I'm not going to tell you so you can't copy because it's the new Facebook (yeah, for sure...) |
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
import Foundation | |
// Not Optional Operator | |
// Useful to print out Optional values without the "Optional" text | |
prefix operator !? {} | |
prefix func !? (any: Any?) -> Any { | |
if let something = any { | |
return something |
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 | |
# if 1st param empty... | |
if [ -z "$1" ] | |
then | |
echo "Usage: select-xcode {8|9}" | |
exit | |
fi | |
XCODE8_APP=/Applications/Xcode-8.app |
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 | |
# copied from http://blog.pragbits.com/it/2015/02/09/slack-notifications-via-curl/ | |
# format message as a code block ```${msg}``` | |
# SLACK_MESSAGE="\`\`\`$1\`\`\`" | |
SLACK_MESSAGE="$1" | |
SLACK_URL=https://hooks.slack.com/services/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 | |
case "$2" in |
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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/dfreniche/.oh-my-zsh | |
# Set name of the theme to load. Optionally, if you set this to "random" | |
# it'll load a random theme each time that oh-my-zsh is loaded. | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
ZSH_THEME="agnoster" |
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 | |
if [ $CONFIGURATION = "Release" ]; then | |
echo "NOT DOING ICON CHANGE" | |
exit 0 | |
fi | |
echo $CONFIGURATION | |
echo "*** STARTED ICON CHANGE ***" |
OlderNewer