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
{ sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null |
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
#XCodebuild | |
xcodebuild -scheme SCHEME_NAME -workspace WORKSPACE_NAME.xcworkspace | tee xcodebuild.log | |
#Database generator | |
oclint-xcodebuild xcodebuild.log | |
#Reporter | |
oclint-json-compilation-database -e exclude_this_folder* -e Pods* -- -report-type html -o report.html -max-priority-2=15 -max-priority-3=30 -rc CYCLOMATIC_COMPLEXITY=4 -rc LONG_CLASS=200 -rc LONG_LINE=120 -rc LONG_METHOD=60 -rc NPATH_COMPLEXITY=20 -rc NESTED_BLOCK_DEPTH=3 -rc TOO_MANY_PARAMETERS=5 -rc LONG_VARIABLE_NAME=30 |
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
# | |
# Create Sonar database and user. | |
# | |
# Command: mysql -u root -p < create_sonar_database.sql | |
# | |
CREATE DATABASE sonar CHARACTER SET utf8 COLLATE utf8_general_ci; | |
CREATE USER 'sonar' IDENTIFIED BY 'sonar'; | |
GRANT ALL ON sonar.* TO 'sonar'@'%' IDENTIFIED BY 'sonar'; |
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
echo 'export PATH=/usr/local/bin:$PATH' >>~/.bash_profile |
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
# Build Environment | |
# Importing local variables | |
PATH=$PATH:/usr/local/bin | |
source /etc/profile | |
# Generate the changelog file | |
mkdir -p ${WORKSPACE}/MobileInitiative2014/iOS/Doozy/Changelog/ | curl -s "http://localhost:8080/job/Hyntly/$BUILD_NUMBER/api/xml?wrapper=changes&xpath=//changeSet//comment" | sed -e "s/<\/comment>//g; s/<comment>//g; s/<\/*changes\/*>//g" | sed '/^$/d;G'> ${WORKSPACE}/MobileInitiative2014/iOS/Doozy/Changelog/changelog.txt |
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
########################## | |
# Required configuration # | |
########################## | |
sonar.projectKey=<Your project key> | |
sonar.projectName=<Your project name> | |
sonar.projectVersion=<Your project version> | |
sonar.language=objc | |
# Project description |
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 | |
## INSTALLATION: script to copy in your Xcode project in the same directory as the .xcodeproj file | |
## USAGE: ./run-sonar.sh | |
## DEBUG: ./run-sonar.sh -v | |
## WARNING: edit your project parameters in sonar-project.properties rather than modifying this script | |
# | |
trap "echo 'Script interrupted by Ctrl+C'; stopProgress; exit 1" SIGHUP SIGINT SIGTERM | |
function startProgress() { |
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
// Add to AppDelegate.h | |
#ifdef DEBUG | |
FILE *fopen$UNIX2003(const char *filename, const char *mode); | |
size_t fwrite$UNIX2003(const void *ptr, size_t size, size_t nitems, FILE *stream); | |
#endif | |
// Add to AppDelegate.m |
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
find . -type f -name "*-100*" -exec sh -c 'mv "$0" "${0/-100/@3x}"' '{}' \; |
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
<?xml version="1.0" encoding="utf-8"?> | |
<Client name="Samsung SmartTV"> | |
<!-- Author: holzi --> | |
<!-- http://www.samsungdforum.com/Guide/View/Developer_Documentation/Technical_Notes/Player/Detailed_player_specification --> | |
<Identification> | |
<DeviceDescription> | |
<ModelUrl substring="samsung.com" /> | |
</DeviceDescription> | |
</Identification> | |
<TranscodeTargets> |
OlderNewer