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
CONFIG="sudo /opt/elasticbeanstalk/bin/get-config container" | |
DEPLOY_IMAGE_FILE=`$CONFIG -k deploy_image_file` | |
DEPLOY_IMAGE=`cat "$DEPLOY_IMAGE_FILE" 2>/dev/null || $CONFIG -k deploy_image` | |
E=`sudo /opt/elasticbeanstalk/bin/get-config environment | \ | |
jq -r 'to_entries | map([.key, .value] ) | map(join("=")) | map("--env " + .) | join(" ")'` | |
sudo docker run --rm -it $E $DEPLOY_IMAGE bash |
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
Global: | |
- CF templates | |
- CloudTrail | |
- docker authentication keys | |
- application versions | |
Stack: | |
- UGC |
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
https://forum.sublimetext.com/t/make-saving-newline-at-eof-the-installation-default/9842 |
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
transform-react-constant-elements | |
transform-react-inline-elements |
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
/** | |
* Wrap gulp streams into fail-safe function for better error reporting | |
* Usage: | |
* gulp.task('less', wrapPipe(function(success, error) { | |
* return gulp.src('less/*.less') | |
* .pipe(less().on('error', error)) | |
* .pipe(gulp.dest('app/css')); | |
* })); | |
*/ |
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
BASH=/bin/bash | |
CHROME_HOME=/var/lib/chrome | |
JAVA=/usr/bin/java | |
JAVA_ARGS="-jar /usr/local/bin/<%= node['selenium']['jar'] %> -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -Dwebdriver.chrome.logfile=/var/log/selenium/chromedriver.log -browser browserName=chrome,binary=/usr/bin/chromium-browser" | |
PIDFILE=/var/run/selenium.pid | |
case "$1" in | |
start) | |
echo -n "Starting selenium service" | |
HOME=$CHROME_HOME DISPLAY=:99 /sbin/start-stop-daemon \ |
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
iptables -A INPUT -p tcp --dport 22 -j ACCEPT | |
iptables -A INPUT -p tcp --dport 80 -j ACCEPT | |
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT | |
iptables -A INPUT -p tcp -s localhost -j ACCEPT | |
iptables -A INPUT -j DROP |