First add the following gems to your Gemfile:
# Gemfile
gem "attachinary"
gem "jquery-fileupload-rails"
gem "coffee-rails"| #!/bin/bash | |
| function search-branches() { | |
| for sha1 in `git log --oneline --all --grep "$1" | cut -d" " -f1` | |
| do | |
| git branch -r --contains $sha1 | |
| done | |
| } | |
| function search-tags() { | |
| for sha1 in `git log --oneline --all --grep "$1" | cut -d" " -f1` | |
| do | 
| import Debug | |
| import Graphics.Input as Input | |
| import Html | |
| import Html (..) | |
| import Html.Attributes (..) | |
| import Html.Events (..) | |
| import Html.Tags (..) | |
| import Http | |
| import Window | 
| let hasBlobConstructor = typeof(Blob) !== 'undefined' && (function () { | |
| try { | |
| return Boolean(new Blob()); | |
| } catch (e) { | |
| return false; | |
| } | |
| }()); | |
| let hasArrayBufferViewSupport = hasBlobConstructor && typeof(Uint8Array) !== 'undefined' && (function () { | |
| try { | 
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
| #!/bin/bash | |
| # | |
| # This version uses September 2017 august stretch image, please use this image | |
| # | |
| if [ "$EUID" -ne 0 ] | |
| then echo "Must be root" | |
| exit | |
| fi | 
| # overwrite master with contents of feature branch (feature > master) | |
| git checkout feature # source name | |
| git merge -s ours master # target name | |
| git checkout master # target name | |
| git merge feature # source name | 
| #!/usr/bin/env python | |
| import flickrapi | |
| import requests | |
| import os | |
| import re | |
| FLICKR_KEY = "your api key" | |
| FLICKR_SECRET = "your api secret" | |
| USER_ID = "your user id" | 
| #!/usr/bin/env python | |
| # import libraries | |
| #import sys | |
| import datetime | |
| import time | |
| import random | |
| import flickrapi | |
| import requests |