This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
ffprobe -v quiet -print_format json -show_format -show_streams "lolwut.mp4" > "lolwut.mp4.json" |
# template includes: | |
# cucumber and devise | |
# gem 'pg' | |
gem 'devise' | |
gem_group :development, :test do | |
gem 'pry-rails' | |
gem 'rspec-rails' |
# Creates am image with node and ffmpeg | |
# run: | |
# $ docker build -t reponame/imagename:version | |
FROM node:0.12 | |
RUN apt-get update \ | |
&& apt-get install yasm \ | |
&& wget http://ffmpeg.org/releases/ffmpeg-2.5.tar.bz2 \ | |
&& tar -xvf ffmpeg-2.5.tar.bz2 \ | |
&& cd ffmpeg-2.5 \ |
I hereby claim:
To claim this, I am signing this object:
/* The API controller | |
Exports 3 methods: | |
* post - Creates a new thread | |
* list - Returns a list of threads | |
* show - Displays a thread and its posts | |
*/ | |
var Thread = require('../models/thread.js'); | |
var Post = require('../models/post.js'); |
This is a hands-on way to pull down a set of MySQL dumps from Amazon S3 and restore your database with it
Sister Document - Backup MySQL to Amazon S3 - read that first
# Set our variables
export mysqlpass="ROOTPASSWORD"
This is a simple way to backup your MySQL tables to Amazon S3 for a nightly backup - this is all to be done on your server :-)
Sister Document - Restore MySQL from Amazon S3 - read that next
this is for Centos 5.6, see http://s3tools.org/repositories for other systems like ubuntu etc
# This is a short collection of tools that are useful for managing your | |
# known_hosts file. In this case, I'm using the '-f' flag to specify the | |
# global known_hosts file because I'll be adding many deploy users on this | |
# system. Simply omit the -f flag to operate on ~/.ssh/known_hosts | |
# Add entry for host | |
ssh-keyscan -H github.com > /etc/ssh/ssh_known_hosts | |
# Scan known hosts | |
ssh-keygen -f /etc/ssh/ssh_known_hosts -H -F github.com |