Skip to content

Instantly share code, notes, and snippets.

[mundilfari:trunk]% mgar package 2
[===== NOW BUILDING: puppet-2.7.14 =====]
[prerequisite] complete for puppet.
[fetch] complete for puppet.
[checksum] complete for puppet.
[checksum-global] complete for puppet.
[checksum-modulated] complete for puppet.
[===== NOW BUILDING: puppet-2.7.14 MODULATION global: ISA= =====]
[extract-modulated] complete for puppet.
[===== Building modulation 'isa-sparcv8plus' on host '' =====]
ody@orihime:[dist]% which git-subtree git-subtree () {
( cd $(git rev-parse --show-toplevel) && HOME/local/bin/git-subtree $* )
}
#!/usr/bin/ruby
#
require 'pp'
term_lines=`tput lines`.to_i
# tput doesn't exist.
if $? == 127
exec "cat -"
[utu:~]% find /Volumes/Tiny/fings/ -iname \*brisco\*
/Volumes/Tiny/fings//Series/Brisco Country Jr
/Volumes/Tiny/fings//Series/Brisco Country Jr/Brisco County Jr - 1x01 - Pilot (1 of 2).avi
/Volumes/Tiny/fings//Series/Brisco Country Jr/Brisco County Jr - 1x01 - Pilot (2 of 2).avi
/Volumes/Tiny/fings//Series/Brisco Country Jr/Brisco County Jr - 1x02 - The Orb Scholar.avi
/Volumes/Tiny/fings//Series/Brisco Country Jr/Brisco County Jr - 1x03 - No Man's Land.avi
/Volumes/Tiny/fings//Series/Brisco Country Jr/Brisco County Jr - 1x04 - Brisco In Jalisco.avi
/Volumes/Tiny/fings//Series/Brisco Country Jr/Brisco County Jr - 1x05 - Socrates' Sister.avi
/Volumes/Tiny/fings//Series/Brisco Country Jr/Brisco County Jr - 1x06 - Riverboat.avi
/Volumes/Tiny/fings//Series/Brisco Country Jr/Brisco County Jr - 1x07 - Pirates.avi
* About to connect() to puppetlabs.com port 80 (#0)
* Trying 96.126.112.51... % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0connected
* Connected to puppetlabs.com (96.126.112.51) port 80 (#0)
> GET /learn HTTP/1.1
> User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5
> Host: puppetlabs.com
> Accept: */*
>
@barn
barn / .vimrc
Created May 30, 2012 23:56
tabs and window pieces from my .vimrc
" remap leader to ,
let mapleader = ","
" dealing with tabs, as in workspaces, not CTRL-I
" Kinda dirty with the CTRL-V magic to get the shift-alt-left/right here.
nnoremap <silent>^[[1;10C :tabnext<CR>
nnoremap <silent>^[[1;10D :tabprevious<CR>
inoremap <silent>^[[1;10C <ESC>:tabnext<CR>
inoremap <silent>^[[1;10D <ESC>:tabprevious<CR>
vnoremap <silent>^[[1;10C <ESC>:tabnext<CR>
gc() {
git commit $* && git xpush
}
@barn
barn / .zshrc
Created June 5, 2012 18:22
Wonder why nothing works?
autoload -U colors && colors
# If we have SELinux, check it's not fucking running!
[ -e "/usr/sbin/selinuxenabled" ] && /usr/sbin/selinuxenabled && RPROMPT="%{$fg_bold[red]%} SELINUX%{$reset_color%}"
#!/usr/bin/env ruby
#
hosts = ['ningyo.dc1.puppetlabs.net','pandora.puppetlabs.lan']
hosts.each do |master|
fork do
system( "ssh -Tq #{master} sudo -i puppet_deploy.rb -f >/dev/null 2>&1 </dev/null" )
print '' ; sleep 0.5 ; print ''
end
#!/usr/bin/env ruby
#
hosts = ['ningyo.dc1.puppetlabs.net','pandora.puppetlabs.lan']
hosts.each do |master|
fork do
system( "ssh -Tq #{master} sudo -i puppet_deploy.rb -f >/dev/null 2>&1 </dev/null" )
print '' ; sleep 0.5 ; print ''
end