This file contains hidden or 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/ruby | |
| require 'rubygems' | |
| gem 'escape' | |
| require 'escape' | |
| require 'test/unit' | |
| Dir.chdir(File.dirname(__FILE__) + "/moxi") | |
| system 'make -j2' || exit(1) |
This file contains hidden or 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/ruby | |
| require 'set' | |
| infos = IO.read('/var/lib/dpkg/available').split("\n\n") | |
| to_delete = IO.popen("dpkg -l '*'") {|f| f.readlines.grep(/^un/).map {|l| l.split(/\s+/)[1]}} | |
| to_delete = to_delete.map {|n| "Package: #{n}"}.to_set | |
| new_infos = infos.reject do |entry| | |
| first_line = entry.split("\n", 2)[0] | |
| to_delete.include? first_line |
This file contains hidden or 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
| lxc-run: fast-rebuild | |
| ./cloning-networking.rb make do-lxc-run-tail | |
| lxc-cluster: fast-rebuild | |
| gnome-terminal --profile=remote --active $(foreach i,1 2 3, $(if $(subst 1,,$(i)), --tab) -e "./cloning-networking.rb make do-lxc-run-tail") | |
| do-lxc-run-tail: | |
| rm -rf /var/tmp/$(LXC_IP) | |
| cp -rl . /var/tmp/$(LXC_IP) | |
| $(MAKE) -C /var/tmp/$(LXC_IP) conf-clean |
This file contains hidden or 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/ruby | |
| require 'tempfile' | |
| require 'optparse' | |
| require 'pp' | |
| module Kernel | |
| def poll_for_condition(timeout = 10, fail_unless_ok = true) | |
| start = Time.now.to_f |
This file contains hidden or 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
| #!/bin/env ruby | |
| # ALK: this was ripped from http://github.com/fauna/memcached/blob/master/test/profile/benchmark.rb | |
| # HERE = File.dirname(__FILE__) | |
| # $LOAD_PATH << "#{HERE}/../../lib/" | |
| # UNIX_SOCKET_NAME = File.join(ENV['TMPDIR']||'/tmp','memcached') | |
| require 'rubygems' | |
| require 'memcached' |
This file contains hidden or 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
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # If not running interactively, don't do anything | |
| [ -z "$PS1" ] && return | |
| export PATH=$PATH:/var/lib/gems/1.8/bin:/usr/games | |
| # don't put duplicate lines in the history. See bash(1) for more options |
This file contains hidden or 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 | |
| # this script builds applicationLibraries.xml for IDEA from java | |
| # packages on your debian/ubuntu system | |
| # | |
| # This is public domain | |
| require 'rubygems' | |
| require 'activesupport' | |
| require 'erb' |
NewerOlder