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
| { | |
| "repositories": { | |
| "packagist": false, | |
| "phpunit de": { | |
| "pear": { | |
| "url": "http://pear.phpunit.de" | |
| } | |
| }, | |
| "symfony-project com": { | |
| "pear": { |
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
| [package] | |
| name = onion_sample | |
| desc = onion_sample description | |
| version = 1.0.0 | |
| author = Taichiro Yoshida <[email protected]> | |
| [require] | |
| pear.phpunit.de/PHPUnit = '> 3.6.6' |
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" |
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
| #!/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
| 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
| $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
| 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
| 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
| NSURL *url = [NSURL URLWithString:@"http://www.example.com/"]; | |
| [[NSWorkspace sharedWorkspace] openURL:url]; |