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
FILENAME=/var/www/gitorious/app/snapshots/gitorious-$(date +%Y%m%d%H%M%S).tar.gz | |
cd /var/www/gitorious/app/ | |
bin/snapshot $FILENAME |
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
{ | |
"minimum-stability" : "dev", | |
"name": "landing.example.com", | |
"require": { | |
"php" : ">=5.3.3", | |
"zendframework/zendframework" : "2.2.5", | |
"example/Customer" : "dev-master" | |
}, |
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
# strip comments | |
cat package.xml | sed '/<!--.*-->/d' | sed '/<!--/,/-->/d' > package.tmp.xml | |
# clean XML file | |
xmllint package.tmp.xml --format --encode utf-8 | unexpand -t2 | expand -t4 > package.clean.xml | |
# replace original file |
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
<?php | |
use TxTextControl\ReportingCloud\ReportingCloud; | |
$reportingCloud = new ReportingCloud([ | |
'api_key' => Helper::apiKey(), | |
]); | |
var_dump($reportingCloud->getTemplateList()); |
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
array(2) { | |
[0] => | |
array(3) { | |
'template_name' => | |
string(17) "sample_invoice.tx" | |
'modified' => | |
int(1464691594) | |
'size' => | |
int(34859) | |
} |
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
<?php | |
use TxTextControl\ReportingCloud\ReportingCloud; | |
$reportingCloud = new ReportingCloud([ | |
'api_key' => Helper::apiKey(), | |
]); | |
var_dump($reportingCloud->deleteTemplate('sample_invoice.tx')); |
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
bool(true) |
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
<?php | |
use TxTextControl\ReportingCloud\ReportingCloud; | |
$reportingCloud = new ReportingCloud([ | |
'api_key' => Helper::apiKey(), | |
]); | |
$templateName = 'sample_invoice.tx'; |
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
string(59) "sample_invoice.tx was written to /tmp/sample_invoice_p0.png" |
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
<?php | |
use TxTextControl\ReportingCloud\ReportingCloud; | |
$reportingCloud = new ReportingCloud([ | |
'api_key' => Helper::apiKey(), | |
]); | |
var_dump($reportingCloud->getTemplateCount()); |