Skip to content

Instantly share code, notes, and snippets.

View cwebberOps's full-sized avatar

Christopher Webber cwebberOps

View GitHub Profile
@cwebberOps
cwebberOps / gist:2946890
Created June 18, 2012 04:50
postgresql fail
[default] Running provisioner: Vagrant::Provisioners::ChefSolo...
[default] Generating chef JSON and uploading...
[default] Running chef-solo...
[default] stdin: is not a tty
: stderr
[default] [Mon, 18 Jun 2012 04:47:14 +0000] INFO: *** Chef 0.10.4 ***
: stdout
[default] [Mon, 18 Jun 2012 04:47:15 +0000] INFO: Setting the run_list to ["recipe[build-essential]", "recipe[postgresql::server]"] from JSON
: stdout
[default] [Mon, 18 Jun 2012 04:47:15 +0000] INFO: Run List is [recipe[build-essential], recipe[postgresql::server]]
@cwebberOps
cwebberOps / gist:3353787
Created August 14, 2012 23:08
boundary puppet module fail
Ign https://apt.boundary.com/ubuntu/ squeeze/universe Translation-en
Ign https://apt.boundary.com/ubuntu/ squeeze/universe Translation-en_US
Ign https://apt.boundary.com squeeze Release
Ign https://apt.boundary.com squeeze/universe i386 Packages
Err https://apt.boundary.com squeeze/universe i386 Packages
The requested URL returned error: 404
W: Failed to fetch https://apt.boundary.com/ubuntu/dists/squeeze/universe/binary-i386/Packages.gz The requested URL returned error: 404
E: Some index files failed to download, they have been ignored, or old ones used instead.
08/21 03:23:23 MPBSClusterQuery(TORQUE-SERVER,RCount,SC)
08/21 03:23:23 __MPBSGetNodeState(Name,State,PNode)
08/21 03:23:23 INFO: PBS node n20 set to state Busy (job-exclusive)
08/21 03:23:23 MPBSLoadQueueInfo(TORQUE-SERVER,n20,SC)
08/21 03:23:23 __MPBSGetNodeState(Name,State,PNode)
08/21 03:23:23 INFO: PBS node n07 set to state Busy (job-exclusive)
08/21 03:23:23 MPBSLoadQueueInfo(TORQUE-SERVER,n07,SC)
08/21 03:23:23 __MPBSGetNodeState(Name,State,PNode)
08/21 03:23:23 INFO: PBS node n32 set to state Busy (job-exclusive)
08/21 03:23:23 MPBSLoadQueueInfo(TORQUE-SERVER,n32,SC)
https://graphite.bioinfo.ucr.edu/render/?width=1108&height=620&_salt=1348946595.803&target=scale(scale(nonNegativeDerivative(c3750genomics-1120a-1_net_ucr_edu.snmp.if_octets.te1_0_1.rx)%2C0.125)%2C0.0333)&target=scale(scale(nonNegativeDerivative(c3750genomics-1120a-1_net_ucr_edu.snmp.if_octets.te1_0_1.tx)%2C0.125)%2C0.0333)&target=scale(scale(nonNegativeDerivative(c3750stat-2_net_ucr_edu.snmp.if_octets.te1_0_1.rx)%2C0.125)%2C0.0333)&target=scale(scale(nonNegativeDerivative(c3750stat-2_net_ucr_edu.snmp.if_octets.te1_0_1.tx)%2C0.125)%2C0.0333)
def exists?(fs)
begin
@conn["/zfs/#{Base64.encode64(fs).strip}"].get # Will throw exception on 404 if the filesystem doesn't exist
true
rescue
false
end
end
@cwebberOps
cwebberOps / gist:3859157
Created October 9, 2012 14:26
join the join
define storage::cluster_export ($legacy = false) {
if $legacy {
$nfs = join([
join($storage::params::cluster_opts, ','),
',rw=', join($storage::params::cluster_rw, ':'), ':', join($storage::params::legacy_rw, ':'),
',root=', join($storage::params::cluster_rw, ':'), ':', join($storage::params::legacy_rw, ':'),
',ro=', join($storage::params::cluster_ro, ':'), ':', join($storage::params::legacy_ro, ':'),
], '')
@cwebberOps
cwebberOps / gist:3863404
Created October 10, 2012 05:52
Rewrite all the things!
RewriteEngine on
# Cellwall redirect for urls in publications
RewriteCond %{REQUEST_URI} ^/projects/Cellwall.*
RewriteRule ^/projects/Cellwall(.*)$ http://bioweb.ucr.edu/Cellwall$1 [L]
# GCD redirect for urls in publication
RewriteCond %{REQUEST_URI} ^/projects/GCD.*
RewriteRule ^/projects/GCD(.*)$ http://bioweb.ucr.edu/databaseWeb$1 [L]
RewriteCond %{REQUEST_URI} !^/\~.*
RewriteCond %{REQUEST_URI} !^/icons*
RewriteCond %{REQUEST_URI} !^/favicon.ico
#!/bin/bash
ip=138.23.
netmask=255.255.255.128
gateway=138.23
preseed_host=
vm_name=lb-1.bioinfo.ucr.edu
ds_name=ds-local
ram=512
@cwebberOps
cwebberOps / gist:4177787
Created November 30, 2012 19:05
pxelinux
label install-cluster
menu label ^Install Debian amd64 (cluster)
kernel /debian/squeeze/amd64/linux
append vga=788 initrd=debian/squeeze/amd64/initrd.gz auto=true priority=critical locale=en_US url=http://192.168.18.3/preseed.cluster netcfg/choose_interface=eth0