- You need to have
TUN/TAP
enabled
$ apt-get install -y openvpn easy-rsa
function loadScript(src) { | |
var el = document.createElement('script'); | |
el.setAttribute('src', src); | |
el.async = false; | |
document.body.appendChild(el); | |
} | |
[ | |
'jquery.js', | |
'main.js', |
data Tree = Branch [Tree] | |
deriving Show | |
{- first int is the min cover; second int is the min cover that includes the root -} | |
minVC :: Tree -> (Int, Int) | |
minVC (Branch subtrees) = let | |
costs = map minVC subtrees | |
minWithRoot = 1 + sum (map fst costs) in | |
(min minWithRoot (sum (map snd costs)), minWithRoot) |
# disable sidekiq calls | |
module Sidekiq::Worker::ClassMethods | |
def perform_async(*args) | |
nil | |
end | |
end |
require "active_record" | |
namespace :db do | |
db_config = YAML::load(File.open('config/database.yml')) | |
db_config_admin = db_config.merge({'database' => 'postgres', 'schema_search_path' => 'public'}) | |
desc "Create the database" | |
task :create do | |
ActiveRecord::Base.establish_connection(db_config_admin) |
language: node_js | |
node_js: | |
- 0.6 | |
- 0.7 | |
- 0.8 | |
- 0.9 | |
- 0.10 | |
before_script: | |
- npm install -g grunt-cli | |
- curl -L https://github.com/n1k0/casperjs/archive/1.0.3.tar.gz | tar xz |
If you run in something like this:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = (unset),
LC_MESSAGES = "en_US.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.