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:
upstream mostor_backend { | |
server unix:/tmp/unicorn.mostor-website.sock fail_timeout=0; | |
} | |
server { | |
listen 80; | |
root /home/work/www/mostor/current/public/; | |
client_max_body_size 1000m; | |
location ^~ /assets/ { |
require 'celluloid' | |
WORKERS_COUNT = (ARGV[0] || 1).to_i | |
class Output | |
include Celluloid | |
def puts(msg) | |
Kernel.puts(msg) | |
end |
#!/bin/sh | |
remove_dangling() { | |
echo "Removing dangling images ..." | |
docker rmi $(docker images -f dangling=true -q) | |
} | |
remove_stopped_containers() { | |
echo "Removing stopped containers ..." | |
docker rm $(docker ps -qa) |
# Description: | |
# Submit time query to www.timeapi.org | |
# | |
# Commands: | |
# hubot time - Current time in local timezone | |
# hubot time <timezone> - Current time in timezone | |
# hubot time <timezone> <query> - Time in timezone based on query | |
module.exports = (robot) -> |
namespace :db do | |
namespace :enable do | |
desc "enable hstore extension" | |
task :hstore => [:environment, :load_config] do | |
ActiveRecord::Base.connection.execute('CREATE EXTENSION IF NOT EXISTS hstore;') | |
end | |
end | |
Rake::Task['db:schema:load'].enhance ['db:enable:hstore'] | |
end |
var http = require("http"); | |
var url = require("url"); | |
var fs = require("fs"); | |
var sys = require('sys'); | |
var config = require('./config'); | |
var emailer = require('./emailer').emailer; | |
var appLogger = require('./logger').appLogger; | |
var downloadDirSuffix = config.downloadDirSuffix; | |
var downloadDir = config.downloadDir; |
First install the required gems:
gem install octokit awesomeprint rainbow
Then run it to extract all of your open GitHub issues into files (with comments).
ruby my-gh-issues.rb
# Run with: rake environment elasticsearch:reindex | |
# Begins by creating the index using tire:import command. This will create the "official" index name, e.g. "person" each time. | |
# Then we rename it to, e.g. "person20121001" and alias "person" to it. | |
namespace :elasticsearch do | |
desc "re-index elasticsearch" | |
task :reindex => :environment do | |
klasses = [Place, Person, Caption] |
.DS_Store | |
Gemfile.lock | |
*.pem | |
node.json | |
tmp/* | |
!tmp/.gitignore |