sudo apt install -y build-essential libssl-dev zlib1g-dev
wget "http://mirrors.evowise.com/pub/OpenBSD/OpenSSH/portable/openssh-7.4p1.tar.gz"
tar xfz openssh-7.4p1.tar.gz
cd openssh-7.4p1
./configure
make
sudo make install
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
module Developer | |
extend self | |
delegate :establish_connection, :clear_all_connections!, :to => ActiveRecord::Base | |
def delayed_debug(scope) | |
detach_process do | |
close_io_objects | |
establish_connection | |
setup_process_name | |
notify_developers |
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
patch_url=https://raw.github.com/gist/1658360/afd06eec533ad0140011bdaf652e6cd82eedf7ec/cumulative_performance.patch | |
yaml_url=http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz | |
ruby_url=http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz | |
build_package_falcon_patch() { | |
echo 'applying falcon patch' | |
curl $patch_url | patch -p1 | |
build_package_standard $1 | |
} |
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
require 'delegate' | |
class Task | |
extend Forwardable | |
def_delegators 'self.class', :collection, :indication | |
class << self | |
def queues | |
[OrgRepos, Members, Orgs, Projects, Users, Stars, Contributions] | |
end |
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
require 'yaml' | |
require 'json' | |
require 'bundler/inline' | |
gemfile _install=true do | |
source 'https://rubygems.org' | |
gem 'pry' | |
gem 'puma' | |
gem 'sinatra', require: 'sinatra/base' |
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
require 'benchmark' | |
require 'sidekiq/limit_fetch' | |
require 'sidekiq/cli' | |
total = ARGV.shift || 50 | |
concurrency = ARGV.shift || 1 | |
limit = ARGV.shift | |
total = total.to_i | |
limit &&= limit.to_i |
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
def method(variable=((default=true);nil)) | |
puts "Value: #{variable.inspect}, default argument - #{!!default}" | |
end | |
method nil # => Value: nil, default argument - false | |
method # => Value: nil, default argument - true |
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
$:.unshift '.' | |
require 'rake' | |
load 'Rakefile' | |
load 'rakelib/kernel.rake' | |
require 'lib/mri_bridge.rb' | |
require 'lib/melbourne.rb' | |
require 'lib/compiler' | |
File.to_ast 'kernel/bootstrap/basicobject.rb' |
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
Gem::Specification.new do |s| | |
s.name = 'cassandra-schema_dsl' | |
s.version = '0.1' | |
s.author = 'brainopia' | |
s.summary = 'Cassandra schema dsl' | |
s.files = ['cassandra-schema_dsl.rb'] | |
s.require_path = '.' | |
s.add_dependency 'cassandra' |
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
class Octokit::Mirror | |
attr_reader :remaining, :reserved | |
def initialize(options={}) | |
@client = Octokit::Client.new options | |
@remaining = Atomic.new Float::INFINITY | |
@reserved = Atomic.new 0 | |
@monitor = Atomic.new 0 | |
end | |
NewerOlder