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 . -name ".svn" -exec rm -rf {} \; |
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
svn status |grep '\?' |awk '{print $2}'| xargs svn add |
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
mount --bind {source} {dest} |
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
alias composer='php /usr/bin/composer.phar' | |
alias c='php /usr/bin/composer.phar' | |
alias cda='php /usr/bin/composer.phar dump-autoload' | |
alias a='php artisan' | |
alias ad='php artisan dump-autoload' | |
alias art='php artisan' | |
alias artisan='php artisan' | |
alias gm="php artisan generate:model" | |
alias gc="php artisan generate:controller" | |
alias gv="php artisan generate:view" |
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
$textmaster = new \Adapter\Textmaster\Textmaster(['key' => 'xxxx', 'secret' => 'xxxx']); | |
# Create a project | |
$project = ($textmaster->call('clients/projects', [ | |
'project' => [ | |
'name' => 'Text 2 paragraph', | |
'ctype' => 'translation', | |
'options' => [ | |
'language_level' => 'regular' | |
], |
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
<?php namespace Adapter\Textmaster; | |
/** | |
* Class TextMasterApi | |
* | |
* Textmaster Api | |
* | |
* @package Adapter\Textmaster | |
*/ | |
class Textmaster |
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
rsync -azP root@{host}:/{source}/ /{dest}/ |
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
curl -O https://raw.githubusercontent.com/thephpleague/skeleton/master/\{.editorconfig,.gitattributes,.scrutinizer.yml,.travis.yml,CHANGELOG.md,CONTRIBUTING.md,LICENSE.md} |
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 | |
USER="xxxx" | |
PASSWORD="xxxx" | |
databases=`mysql -u $USER -p$PASSWORD -e "SHOW DATABASES;" | tr -d "| " | grep -v Database` | |
for db in $databases; do | |
if [[ "$db" != "information_schema" ]] && [[ "$db" != "performance_schema" ]] && [[ "$db" != "mysql" ]] && [[ "$db" != _* ]] ; then | |
echo "Dumping database: $db" |
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
curl -O https://raw.githubusercontent.com/cherrylabs/arx-project/master/\{.bowerrc,bower.json,gulp-config.js,gulpfile.js,package.json} |