Copy & paste the following to your Gemfile
def bitbucket repo; {git: 'ssh://[email protected]/'+repo} ;end
Usage
gem 'xxx', github('user/repo')
source 'https://rubygems.org' | |
# We are not loading Active Record, nor Active Resources etc. | |
# We can do this in any app by simply replacing the rails gem | |
# by the parts we want to use. | |
gem "actionpack" | |
gem "railties" | |
gem "tzinfo" | |
# Let's use thin |
#!/usr/bin/ruby | |
if ARGV.length != 1 | |
print "[Exit] need 1 argument (now #{ARGV.length})\n" | |
exit | |
end | |
pattern = ARGV[0] | |
cmd = "grep '#{pattern}' . -R" |
#!/bin/sh | |
if [ $# -ne 1 ]; then | |
echo "usage: $(basename $0) command" | |
exit 1 | |
fi | |
set -e |
desc "DESC" | |
task TASK: ['deploy:set_rails_env'] do | |
on roles :app do | |
within release_path do | |
# within current_path do | |
with rails_env: fetch(:rails_env) do | |
execute "rake", "another:task" | |
end | |
end | |
end |
Copy & paste the following to your Gemfile
def bitbucket repo; {git: 'ssh://[email protected]/'+repo} ;end
Usage
gem 'xxx', github('user/repo')
Run bundle cache
# bundler specific
set :bundle_flags, '--deployment' # from --deployment --quiet
Loading Rails is too slow, services are here to rescue. |
#include <Servo.h> | |
#define SHIFT 7 | |
#define R 0 // Red LED | |
#define G 1 // Green LED | |
#define B 2 // Blue LED | |
#define TIME 15 // Column of Time | |
#define MAXSN 12 // Max Number of Servos | |
#define MAXMN 10 // Max Number of Motions | |
#define MAXFN 8 // Max Number of Frames |
sudo apt-get update && sudo apt-get upgrade openssl | |
openssl version -b | |
1:27 |