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
import os | |
childpid = os.fork() | |
if childpid == 0: | |
os.execl("/usr/bin/vim", "/usr/bin/vim") | |
else: | |
os.waitpid(childpid, 0) | |
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
require 'qmf' | |
# Connects to a broker on localhost with optional username and password | |
# Example usage: | |
# qmfc, broker = qmf_connect | |
# qmfc.objects(:class=>"HelloObject") | |
# ... | |
def qmf_connect(username=nil, password=nil) | |
qmfc = Qmf::Console.new |
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 | |
# resources are stored to memory | |
# example usage: | |
# ADD: curl -L -d "name=some+resource&owner=willb" http://localhost:4567/resources | |
# LIST: curl http://localhost:4567 | |
# UPDATE: curl -X PUT -d "" http://localhost:4567/resources/1/willb | |
# DELETE: curl -X DELETE http://localhost:4567/resources/1/willb | |
require 'rubygems' |
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
irb(main):006:0> qmfc.objects(:class=>"Subsystem") | |
IRB::Abort: abort then interrupt!! | |
from /usr/lib/ruby/1.8/irb.rb:81:in `irb_abort' | |
from /usr/lib/ruby/1.8/irb.rb:243:in `signal_handle' | |
from /usr/lib/ruby/1.8/irb.rb:66:in `start' | |
from /usr/lib/ruby/site_ruby/1.8/qmf.rb:219:in `call' | |
from /usr/lib/ruby/site_ruby/1.8/qmf.rb:219:in `write' | |
from /usr/lib/ruby/site_ruby/1.8/qmf.rb:219:in `kick' | |
from /usr/lib/ruby/site_ruby/1.8/qmf.rb:1249:in `send_query' | |
from /usr/lib/ruby/site_ruby/1.8/qmf.rb:1093:in `objects' |
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
irb(main):001:0> require 'qmf' => true irb(main):002:0> qmfc = Qmf::Console.new => #<Qmf::Console:0x7f962def60a8 @select=[], @handler=nil, @cv=#<MonitorMixin::ConditionVariable:0x7f962def5ec8 @waiters=[], @monitor=#<Qmf::Console:0x7f962def60a8 ...>>, @impl=#<Qmfengine::Console:0x7f962def6030>, @cb_thread=#<Thread:0x7f962def5ea0 run>, @mon_waiting_queue=[], @sync_result=nil, @broker_list=[], @mon_entering_queue=[], @mon_count=1, @cb_cond=#<MonitorMixin::ConditionVariable:0x7f962def5e50 @waiters=[], @monitor=#<Qmf::Console:0x7f962def60a8 ...>>, @sync_count=nil, @mon_owner=#<Thread:0x7f962def5ea0 run>, @bt_count=0, @event=#<Qmfengine::ConsoleEvent:0x7f962def5f68>> irb(main):003:0> conn = Qmf::Connection.new(Qmf::ConnectionSettings.new) => #<Qmf::Connection:0x7f962deec710 @thread=#<Thread:0x7f962deec4b8 sleep>, @connected=nil, @impl=#<Qmfengine::ResilientConnection:0x7f962deec670>, @mon_waiting_queue=[], @conn_handlers=[], @mon_entering_queue=[], @mon_count=0, @sock=#<Socket:0x7f962deec5a8>, @conn_handlers_to_del |
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/sh | |
# Generated by configure. | |
# Run this file to recreate the current configuration. | |
# Compiler output produced by configure, useful for debugging | |
# configure, is in config.log if it exists. | |
debug=false | |
ac_cs_recheck=false | |
ac_cs_silent=false | |
SHELL=${CONFIG_SHELL-/bin/sh} |
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/bash | |
# Run git-spelunk with one or more pathname arguments from within a | |
# directory that contains one or more (non-bare) git repositories. | |
# It will print out all commits in each repository that touch the | |
# given pathname. | |
git-spelunk() { for repo in $( find . -name .git -exec dirname '{}' \; ) ; do (cd $repo ; echo ${repo}: ; git log --all --stat -- $*) ; done } | |
git-spelunk $* |
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/bash | |
# git-mirror.sh takes a source repository (given with -s; this must be | |
# on the local filesystem and defaults to the current directory), a | |
# destination repository (-d), and an optional branch pattern (-p, | |
# defaults to a pattern that will find all condor release branches as | |
# well as the current stable and devel branches). You may also | |
# specify -f to force a push to the destination, or -c to clobber all | |
# destination heads that have corresponding source heads. |