Skip to content

Instantly share code, notes, and snippets.

View organicveggie's full-sized avatar

Sean Laurent organicveggie

  • Google, Inc.
  • San Francisco, CA
View GitHub Profile
@organicveggie
organicveggie / mirror_sync.sh
Last active September 15, 2025 03:31
Sample mirroring/syncing script for Yum repos.
#!/bin/sh
cd /var/www/html/yum
echo `date`
echo Syncing CentOS updates
rsync -vai4CHP --safe-links --delay-updates --delete --exclude "local*" rsync://mirror.anl.gov/centos/6/updates/ CentOS/6/updates/
echo `date`
$ type rvm |head -1
rvm is a function
@organicveggie
organicveggie / couch.log
Created September 7, 2012 16:36
CouchDB Compact
[Fri, 07 Sep 2012 16:33:19 GMT] [info] [<0.30.0>] Apache CouchDB has started on http://127.0.0.1:5984/
[Fri, 07 Sep 2012 16:33:40 GMT] [debug] [<0.94.0>] 'POST' /chef/_compact {1,1}
Headers: [{'Accept',"*/*"},
{'Content-Type',"application/json"},
{'Host',"localhost:5984"},
{'User-Agent',"curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5"}]
[Fri, 07 Sep 2012 16:33:40 GMT] [debug] [<0.94.0>] OAuth Params: []
@organicveggie
organicveggie / chef-stacktrace.out
Created September 6, 2012 14:54
chef 0.9.14 to 10.12.0 upgrade
Generated at Thu Sep 06 16:18:40 -0500 2012
EOFError: end of file reached
/usr/lib/ruby/1.8/net/protocol.rb:135:in `sysread'
/usr/lib/ruby/1.8/net/protocol.rb:135:in `rbuf_fill'
/usr/lib/ruby/1.8/timeout.rb:67:in `timeout'
/usr/lib/ruby/1.8/timeout.rb:101:in `timeout'
/usr/lib/ruby/1.8/net/protocol.rb:134:in `rbuf_fill'
/usr/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'
/usr/lib/ruby/1.8/net/protocol.rb:126:in `readline'
/usr/lib/ruby/1.8/net/http.rb:2028:in `read_status_line'
@organicveggie
organicveggie / Overview
Created April 24, 2012 13:46
Fabric submodules
fabfile/
__init__.py
web/
__init__.py
admin.py
webapp.py