Skip to content

Instantly share code, notes, and snippets.

View cwebberOps's full-sized avatar

Christopher Webber cwebberOps

View GitHub Profile
@cwebberOps
cwebberOps / constants.f
Created October 20, 2011 22:09
fortran goodness
Error: Invalid character in name at (1)
constants.f:83.60:
double precision, parameter :: AMBER_ELECTROSTATIC2 = AMBER_ELECT
1
Error: Parameter 'amber_elect' at (1) has not been declared or is a variable, which does not reduce to a constant expression
constants.f:86.72:
double precision, parameter :: INV_AMBER_ELECTROSTATIC = 1.0d0/AM
1
@cwebberOps
cwebberOps / config.out
Created October 13, 2011 16:39
cufflinks compile
(09:34:56) cwebber@biocluster [~/src/cufflinks-1.1.0] ./configure --prefix=/home/cwebber/cufflinks-1.1.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gawk... (cached) gawk
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
@cwebberOps
cwebberOps / hostname.bnx0
Created September 8, 2011 15:25
interfaces
<hostname> group <groupname> netmask <netmask> broadcast + up
@cwebberOps
cwebberOps / vdr_snap.rb
Created September 7, 2011 18:18
vdr snapshotting
#!/usr/bin/ruby -w
###
# This script stops the specified vdr VM and snapshots the zfs pool
# that backends the vmdk(s) used to backup systems so it can be synced
# elsewhere.
#
# Prerequisites:
# - .keytab file in the homedir of the user executing the script that
# access to the zfs account on the remote host
@cwebberOps
cwebberOps / install.out
Created September 1, 2011 02:32
WURFL Suck
[root@domU-12-31-39-14-C4-57 install]# bash install.sh
--2011-09-01 01:22:36-- http://sourceforge.net/projects/wurfl/files/WURFL/latest/wurfl-latest.xml.gz/download
Resolving sourceforge.net... 216.34.181.60
Connecting to sourceforge.net|216.34.181.60|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://sourceforge.net/projects/wurfl/files/ [following]
--2011-09-01 01:22:36-- http://sourceforge.net/projects/wurfl/files/
Connecting to sourceforge.net|216.34.181.60|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 32938 (32K) [text/html]
# zfs list -t snapshot
zpool1/xbackup@20110706-08:15.day 120G - 10.7T -
zpool1/xbackup@20110708-08:15.day 3.18M - 10.7T -
zpool1/xbackup@20110712-08:15.day 257K - 9.44T -
# zfs destroy zpool1/xbackup@20110706-08:15.day
# zfs list -t snapshot
zpool1/xbackup@20110708-08:15.day 2.02T - 10.7T -
zpool1/xbackup@20110712-08:15.day 257K - 9.44T -
@cwebberOps
cwebberOps / defined_types.pp
Created July 8, 2011 20:46
Weird exported resource behavior
define ucr_fw_rule (
$allowed_ip,
$allowed_ports,
$origin = 'self',
$dest_ip = 'self',
$ensure = 'present',
$flags = '',
$proto = 'tcp',
$service = 'unknown',
$applies_to = 'self',
We couldn’t find that file to show.
A few different tools are in place throughout campus IT departments that allow for centralization and standardization of system configurations and management. Systems administrators are able to administer many systems from their own desktops, saving time formerly spent physically visiting servers. Standardized configurations make purchasing new or replacement hardware and deploying systems significantly less complicated.
@cwebberOps
cwebberOps / gist:1031530
Created June 17, 2011 14:33
Variable Assignment in puppet
$variable = true #default
if condition {
$variable = false
}
if other_condition {
$variable = fasle
}