$ gem install kontena-cli
$ kontena login {ip}
$ kontena grid use staging
$ kontena vpn config > kontena.ovpn
$ sudo openvpn --config kontena.ovpn --script-security 2 --daemon
This file contains 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
# see http://stackoverflow.com/questions/5880962/how-to-destroy-jobs-enqueued-by-resque-workers - old version | |
# see https://github.com/defunkt/resque/issues/49 | |
# see http://redis.io/commands - new commands | |
namespace :resque do | |
desc "Clear pending tasks" | |
task :clear => :environment do | |
queues = Resque.queues | |
queues.each do |queue_name| | |
puts "Clearing #{queue_name}..." |
This file contains 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
#!/usr/bin/env ruby | |
# coding: utf-8 | |
gem "activesupport" | |
gem "optparse-range" | |
gem "tty-table" | |
gem "ascii_charts" | |
require "optparse" | |
require "optparse/time" | |
require "optparse/range" |
This file contains 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
FROM ruby:1.9.3-slim | |
RUN apt-get update -qq && \ | |
DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \ | |
locales \ | |
make \ | |
gcc \ | |
g++ \ | |
libxml2-dev \ | |
libxslt-dev \ |
This file contains 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
docker run -rm -t -i -v $(dirname $SSH_AUTH_SOCK) -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK ubuntu /bin/bash |
This file contains 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
#!/usr/bin/env ruby | |
require 'optparse' | |
options = {} | |
opt_parser = OptionParser.new do |opt| | |
opt.banner = 'Usage: tgnotify [OPTIONS] text' | |
opt.separator '' | |
opt.separator 'CLI tool for sending notifications to Telegram' |
$ time bundler --version
^C/home/merkushin/.rvm/gems/ruby-1.9.3-p551/gems/bundler-1.10.5/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb:237:in `shallow_eql?': Interrupt
from /home/merkushin/.rvm/gems/ruby-1.9.3-p551/gems/bundler-1.10.5/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb:193:in `block in outgoing_edges'
from /home/merkushin/.rvm/gems/ruby-1.9.3-p551/gems/bundler-1.10.5/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb:193:in `select'
from /home/merkushin/.rvm/gems/ruby-1.9.3-p551/gems/bundler-1.10.5/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb:193:in `outgoing_edges'
from /home/merkushin/.rvm/gems/ruby-1.9.3-p551/gems/bundler-1.10.5/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb:211:in `successors'
from /home/merkushin/.rvm/gems/ruby-1.9.3-p551/gems/bundler-1.10.5/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb:251:in `path_to?'
from /home/merkushin/.rvm/gems/ruby-1.9.3-p551/gems/bundler-1.10.5/l
$ time bundler --version
Bundler version 1.10.5
real 0m42.770s
user 0m42.459s
sys 0m0.273s
This file contains 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
language: ruby | |
rvm: | |
- '1.9.3' | |
env: | |
- DEPLOY=shippable PROJECT=ci VERBOSE=1 JOBS=8 RUBY_GC_MALLOC_LIMIT=990000000 | |
services: | |
- memcached |