This file contains hidden or 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
| set -ex | |
| [ "$ACTION" = build ] || exit 0 | |
| [ "$BUILD_VARIANTS" = "normal" ] || exit 0 | |
| [ "$CONFIGURATION" = "Release" ] || exit 0 | |
| dir="$TEMP_FILES_DIR/disk" | |
| dmg="$HOME/Desktop/$PROJECT_NAME.dmg" | |
| rm -rf "$dir" |
This file contains hidden or 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
| NSArray *identifiers = (NSArray*)LSCopyAllHandlersForURLScheme((CFStringRef)@"http"); |
This file contains hidden or 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
| NSURL *url = [NSURL URLWithString:@"http://www.example.com/"]; | |
| [[NSWorkspace sharedWorkspace] openURL:url]; |
This file contains hidden or 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
| NSURL *url = [NSURL URLWithString:@"http://www.example.com/"]; | |
| [[NSWorkspace sharedWorkspace] openURLs:[NSArray arrayWithObject:url] | |
| withAppBundleIdentifier:@"com.apple.Safari" //取得したidentifierを渡してやる | |
| options:NSWorkspaceLaunchDefault | |
| additionalEventParamDescriptor:nil | |
| launchIdentifiers:nil]; |
This file contains hidden or 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
| www: | |
| type: php | |
| approot: www | |
| data: | |
| type: mysql |
This file contains hidden or 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
| $envfilepath = '/home/dotcloud/environment.json'; | |
| $environment = json_decode(file_get_contents($envfilepath),true); | |
| define('DB_NAME', 'wordpress'); | |
| define('DB_USER', $environment['DOTCLOUD_DATA_MYSQL_LOGIN']); | |
| define('DB_PASSWORD', $environment['DOTCLOUD_DATA_MYSQL_PASSWORD']); | |
| define('DB_HOST', $environment['DOTCLOUD_DATA_MYSQL_HOST'] . ':' . $environment['DOTCLOUD_DATA_MYSQL_PORT']); |
This file contains hidden or 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
| try_files $uri $uri/ /index.php; |
This file contains hidden or 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 [ -d ~/data/wp-content ] | |
| then | |
| rm -rf ~/current/wp-content | |
| else | |
| mkdir -p ~/data | |
| mv ~/current/wp-content ~/data/wp-content | |
| fi | |
| ln -s ~/data/wp-content ~/current/wp-content |
This file contains hidden or 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
| # On WordPress root directory | |
| php -a | |
| php > require('./wp-blog-header.php'); | |
| php > ob_end_clean(); |
This file contains hidden or 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
| require 'formula' | |
| class Onion < Formula | |
| head 'https://github.com/c9s/Onion/raw/master/onion' | |
| homepage 'https://github.com/c9s/Onion' | |
| def install | |
| system "chmod a+x onion" | |
| system "mkdir -p #{prefix}/bin" | |
| system "cp onion #{prefix}/bin" |