Convert mac-os-el-capitan-pkg-to-iso.sh
from using hdiutil
and asr
to using Linux utilities.
Important: You will need about 30GB of free disk space.
Convert mac-os-el-capitan-pkg-to-iso.sh
from using hdiutil
and asr
to using Linux utilities.
Important: You will need about 30GB of free disk space.
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
$ dpkg --compare-versions "1.0-4.1" gt "1.0-4joe5" && echo "NMU version -4.1 greater than -4joe5"
# Gitlab installation via puppet on Debian/Ubuntu (quick & dirty) | |
# | |
# Based on https://github.com/gitlabhq/gitlabhq/blob/stable/doc/install/installation.md | |
# | |
# Tested on Ubuntu 12.04. | |
# | |
# Run it: | |
# $ apt-get install puppet | |
# $ puppet apply puppet.pp | |
# |
class RailsApp < FPM::Cookery::Recipe | |
description 'A rails app' | |
name 'my-rails-app' | |
version '1.0' | |
source '/tmp/foo', :with => :git | |
def build | |
gemhome = Pathname.pwd.join('.gemhome').to_s |
JSON
require 'thread' | |
require 'thread_safe' | |
require 'benchmark' | |
core = [] | |
ts = ThreadSafe::Array.new | |
mutex = Mutex.new | |
iterations = 5_000 | |
threads = 1000 |
require 'rubygems' | |
require 'rubygems/package' | |
require 'zlib' | |
require 'fileutils' | |
module Util | |
module Tar | |
# Creates a tar file in memory recursively | |
# from the given path. | |
# |
$ jruby -v | |
jruby 1.7.5.dev (1.9.3p392) 2013-09-04 090d5dd on Java HotSpot(TM) 64-Bit Server VM 1.7.0_25-b15 [darwin-x86_64] | |
$ time jruby -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-Xverify:none -e 'require "rails"' | |
jruby -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-Xverify:none -e 5.18s user 0.47s system 136% cpu 4.142 total | |
$ time jruby -e 'require "rails"' | |
jruby -e 'require "rails"' 14.60s user 0.44s system 202% cpu 7.444 total |