Skip to content

Instantly share code, notes, and snippets.

View thibaultleconte's full-sized avatar

Thibault Le Conte thibaultleconte

View GitHub Profile
https://mymo-health.app.link/app?mymo_id=9a0f6ced1722adf56fcf417707773602&mymo_type=provider
Pin Code: 6443
{
AAE: {
Airport Name: "Annaba",
Location: "Annaba",
Country: "Algeria",
Latitude: 36.822225,
Longitude: 7.809167
},
AAL: {
Airport Name: "Aalborg",
#!/bin/sh
#
API_TOKEN=""
TEAM_TOKEN=""
SIGNING_IDENTITY="iPhone Distribution: XXX"
PROVISIONING_PROFILE="${HOME}/Library/MobileDevice/Provisioning Profiles/YYY.mobileprovision"
#LOG="/tmp/testflight.log"
DATE=$( /bin/date +"%Y-%m-%d" )
@thibaultleconte
thibaultleconte / DebugLog.pch
Created June 4, 2013 15:25
Optimized version of NSLog by adding the file name and the line number for Objective-C (iOS, Mac OS X) projects. Add it to the PROJECT-prefix.pch file in the Xcode folder "Supporting Files". Just us as you would use NSLog(...).
#define TLC_DEBUG
#ifdef TLC_DEBUG
# define DebugLog(fmt, ...) NSLog((@"%s:%d - " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
#else
# define DebugLog(...)
#endif
@thibaultleconte
thibaultleconte / xcode_auto_increment_build_version.sh
Last active December 18, 2015 01:49
Every time you compile your project in Xcode (iOS, Mac OS X), the build version is incremented. -- Installation procedure -- Select your "Target", go to "Build Phases", click on "Add Build Phase", select "Add Run Script". Enter "/bin/sh" in the "Shell" field. Check "Show environment variables in build log". Uncheck "Run script only when installi…
#!/bin/bash
if [ $CONFIGURATION == "InHouse" ]; then
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$INFOPLIST_FILE")
buildNumber=$(($buildNumber + 1))
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "$INFOPLIST_FILE"
productVersion=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "$INFOPLIST_FILE")
/usr/libexec/PlistBuddy -c "Set PreferenceSpecifiers:1:DefaultValue $buildNumber" CannonballClient/Settings.bundle/Root.plist
/usr/libexec/PlistBuddy -c "Set PreferenceSpecifiers:2:DefaultValue $productVersion" CannonballClient/Settings.bundle/Root.plist
else