Requirements:
- aws-sdk:
~> 1.20.0
Two files are required: ~/.aws/config and a file containing instances ids, one per line, eg:
~/.aws/config
| run "sed --in-place '/turbolinks/d' Gemfile" | |
| run "sed --in-place '/turbolinks/d' app/assets/javascripts/application.js" | |
| run "sed --in-place '/coffee/d' Gemfile" | |
| run "sed --in-place '/jbuilder/d' Gemfile" | |
| run "sed --in-place 's/, \"data-turbolinks-track\" => true//' app/views/layouts/application.html.erb" | |
| gem 'active_model_serializers' |
Requirements:
~> 1.20.0Two files are required: ~/.aws/config and a file containing instances ids, one per line, eg:
~/.aws/config
| #!/bin/bash | |
| set -e # Exit script immediately on first error. | |
| #set -x # Print commands and their arguments as they are executed. | |
| # generate war file with ant or gradle or whatever you want | |
| ant war | |
| # upload the generated war file to the web server | |
| scp -P 5122 target/war/MyApp-SNAPSHOT.war [email protected]:~/MyApp.war |
| class Class1(): | |
| pass | |
| class Class2(): | |
| pass | |
| class Class3(object): | |
| pass | |
| a = Class1() |
| var empty_list = function(selector) { | |
| return selector(undefined, undefined, true); | |
| }; | |
| var prepend = function(el, list) { | |
| return function(selector) { | |
| return selector(el, list, false); | |
| }; | |
| }; | |
| var head = function(list) { |
| gifify() { | |
| if [[ -n "$1" ]]; then | |
| if [[ $2 == '--good' ]]; then | |
| ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png | |
| time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif | |
| rm out-static*.png | |
| else | |
| ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif | |
| fi | |
| else |
| import re, sys, json | |
| TOKENS = { | |
| 'NUMBER': '[0-9]+', | |
| 'IDENTIFIER': '[a-zA-Z][a-zA-Z0-9]*', | |
| 'ADD': '\+', | |
| 'SUB': '-', | |
| 'POW': '\^', | |
| 'MUL': '\*', | |
| 'DIV': '/', |
| /* | |
| * Tested on node 0.6, Ubuntu | |
| */ | |
| #!/usr/bin/node | |
| COLOR_GREEN="\033[01;32m" | |
| COLOR_RED="\033[01;31m" | |
| COLOR_YELLOW="\033[01;33m" | |
| COLOR_BLUE="\033[01;34m" | |
| COLOR_NORMAL="\033[00m" |