Skip to content

Instantly share code, notes, and snippets.

View fousa's full-sized avatar

Jelle Vandebeeck fousa

View GitHub Profile
#!/bin/sh
echo "Testing"
@fousa
fousa / remove_itunes.sh
Last active August 29, 2015 14:01
Stop iTunes from launching when connecting a bluetooth headset
echo
echo "*************************************************************************"
echo "** **"
echo "** Stop iTunes from launching when connecting a bluetooth headset. **"
echo "** **"
echo "*************************************************************************"
echo "** **"
echo "** -> Renaming the iTunes application to iMelodies. **"
sudo mv /Applications/iTunes.app /Applications/iMelodies.app
@fousa
fousa / gist:3092454
Created July 11, 2012 19:08
Suppress Depreciation
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
// depreciated code
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
@fousa
fousa / gist:3092450
Created July 11, 2012 19:07
Core Data Debug
-com.apple.CoreData.SQLDebug 1
@fousa
fousa / gist:3092431
Created July 11, 2012 19:05
Fake Carrier
//
// Copyright (c) 2012 Cédric Luthi / @0xced. All rights reserved.
//
#if TARGET_IPHONE_SIMULATOR
static NSString * const FakeCarrier = @"AT&T";
#import <objc/runtime.h>
@fousa
fousa / gist:3092441
Created July 11, 2012 19:06
Generate .strings
find -E . -iregex '.*\.(m|h|mm)$' -print0 | xargs -0 genstrings -a -o en.lproj
@fousa
fousa / gist:3093206
Created July 11, 2012 20:37
Dump PSQL
psql db_development < dump.sql
@fousa
fousa / gist:3093210
Created July 11, 2012 20:38
Drop PSQL
dropdb db_development
@fousa
fousa / gist:3093251
Created July 11, 2012 20:43
XCode .gitignore
# Xcode
build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
@fousa
fousa / gist:3093256
Created July 11, 2012 20:43
Lion Library
chflags nohidden ~/Library/