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
NAME="Diego" | |
docker run -i -w /service -v $PWD:/service orchestra/builder:latest bash -s <<EOF | |
cd /service | |
echo "HELLO ${NAME}" >> file.log | |
EOF |
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
#!/usr/bin/env bash | |
default='\033[0;m' | |
green='\033[0;32m' | |
magenta='\033[0;35m' | |
cyan='\033[0;36m' | |
yellow='\033[33m' | |
containerDetails(){ | |
echo -e " ${yellow}${IMAGE_NAME}:${BUILD_VERSION}${default}" | |
} | |
export PS1="${cyan}\h ${magenta}\u ${green}\w\$(containerDetails)${default} \n\\$ \[$(tput sgr0)\]" |
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
#!/usr/bin/env bash | |
# Cleanup | |
rm -rf ./build | |
rm -rf ./dist/src | |
# Create directory structure | |
mkdir -p ./build | |
mkdir -p ./dist | |
# Set correct node version |
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
######################################################################## | |
# BASH TOOLS | |
# _ | |
# ./ | _________________ | |
# / / / __________ //\_ | |
# /' / | (__________) ||.' `-.________________________ | |
# / / | __________ ||`._.-'~~~~~~~~~~~~~~~~~~~~~~~~` | |
# / \ \__(__________)__\\/ | |
# | `\ | |
# | | ___________________ |
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 | |
abstract class Event | |
{ | |
public $name, $code; | |
public function __toString() | |
{ | |
return $this->name . ' ' . $this->code; | |
} |
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
John | Busha | developer | |
---|---|---|---|
Mark | Boiler | graphic designer | |
Mario | Rossi | developer |
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 | |
$xml = <<<EOF | |
<results> | |
<user> | |
<name>Diego</name> | |
<surname>Anniballo</surname> | |
</user> | |
<user> | |
<name>Mari</name> | |
<surname>Monti</surname> |
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 | |
$filePath = '/vagrant/data/anniballo.com'; | |
/** | |
* Class FolderFilter | |
*/ | |
class DotFilter extends RecursiveFilterIterator | |
{ | |
/** |
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 | |
$filePath = '/vagrant/data/anniballo.com'; | |
/** | |
* Class FolderFilter | |
*/ | |
class FolderFilter extends FilterIterator | |
{ | |
/** |
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 | |
// RecursiveRegexIterator | |
$data = array( | |
array( | |
'EC2-CHOPIN01', | |
'EC2-CHOPIN02', | |
'EC2-CHOPIN03', | |
), | |
array( | |
'EC2-CHOPIN04', |
NewerOlder