Skip to content

Instantly share code, notes, and snippets.

View arbeitandy's full-sized avatar
🎯
Focusing

arbeitandy arbeitandy

🎯
Focusing
  • fairview, CA
View GitHub Profile

> Everything on marin headlands

Name Distance Host Month Ultrasignup linkie
- - - - - -
Steep Ravine varies CTR Jan [reg](http://www.ctronlinestore.com/index.php?app=ecom&ns=catshow&ref=steep_ravine&sid=9o7c5r0gty2iwxi20p1x7vikkk38ep14)
Golden Gate (Winter) varies CTR Feb [reg](http://www.ctronlinestore.com/index.php?app=ecom&ns=catshow&ref=golden_gate_wntr)
MUC 50mile ITR Mar [info](http://insidetrail.com/calendar/marin-ultra-challenge/)
Night Sweats Spring varies PCTR Apr [info](http://www.pctrailruns.com/event.aspx?dtid=10000)
miwok 100 100k Tia Bodington May [info](http://miwok100k.com/site/)
SF50mile 50mile CTR May [reg](http://www.ctronlinestore.com/index.php?app=ecom&ns=catshow&ref=sf100)
* install hp printer on centos
sudo yum install hplip cups-devel
sudo /sbin/service cups start
sudo hp-setup -i 192.168.1.120
sudo lpadmin -d testdep-printer
@arbeitandy
arbeitandy / sample-template.ks
Created February 3, 2013 21:58
sample kickstart config
#version=DEVEL
install
url --url=http://202.141.160.110/centos/6/os/x86_64/
lang en_US.UTF-8
keyboard us
network --onboot yes --device eth0 --bootproto static --ip ###PLEASEUPDATETOLOCALIP### --netmask 255.255.255.255 --gateway ###PLEASEUPDATETOLOCALGATEWAY### --noipv6 --nameserver 8.8.8.8 --hostname sample-temp.local
rootpw --iscrypted #####PLEASEUPDATE#####
firewall --service=ssh
authconfig --enableshadow --passalgo=sha512
selinux --disabled
@arbeitandy
arbeitandy / install_guest.sh
Created February 3, 2013 21:50
command to start a kvm new guest
#!/bin/bash
export NEWGUEST="sample-template"
export NEWGUEST_RAM=512
export NEWGUEST_CPU=1
export KS_PATH="http://192.168.0.1/${NEWGUEST}.ks"
export PUBREPO="http://202.141.176.110/centos/6/os/x86_64/"
installer_cmd="virt-install --connect qemu:///system -n ${NEWGUEST} -r ${NEWGUEST_RAM} --vcpus=${NEWGUEST_CPU} \
--disk path=/dev/VMGroup/appbox-${NEWGUEST},size=4,bus=virtio \
--os-type linux --os-variant rhel6 --accelerate --graphics none \
@arbeitandy
arbeitandy / work.js.pac
Created October 17, 2012 19:36
sample pacfile for work
function FindProxyForURL(url, host) {
var lhost = host.toLowerCase();
var proxy_yes = "SOCKS5 127.0.0.1:18080";
var blackhole = "PROXY 127.0.0.1:80";
var proxy_no = "DIRECT";
host = lhost;
if ((host == "locahost") ||
(shExpMatch(host, "locahost.*")) ||
(host == "127.0.0.1")) {
return proxy_no;
@arbeitandy
arbeitandy / api.py
Created November 26, 2011 08:13 — forked from askedrelic/api.py
Dynamic Fabric functions
#!/usr/bin/python
# vim:ts=2:sw=2:expandtab
"""
A Python library to perform low-level Linode API functions.
Copyright (c) 2010 Timothy J Fontaine <tjfontaine@gmail.com>
Copyright (c) 2010 Josh Wright <jshwright@gmail.com>
Copyright (c) 2010 Ryan Tucker <rtucker@gmail.com>
Copyright (c) 2008 James C Sinclair <james@irgeek.com>
@arbeitandy
arbeitandy / api.py
Created November 24, 2011 07:39 — forked from askedrelic/api.py
Dynamic Fabric functions
#!/usr/bin/python
# vim:ts=2:sw=2:expandtab
"""
A Python library to perform low-level Linode API functions.
Copyright (c) 2010 Timothy J Fontaine <tjfontaine@gmail.com>
Copyright (c) 2010 Josh Wright <jshwright@gmail.com>
Copyright (c) 2010 Ryan Tucker <rtucker@gmail.com>
Copyright (c) 2008 James C Sinclair <james@irgeek.com>
@arbeitandy
arbeitandy / fabfile.py
Created November 17, 2011 10:40 — forked from onyxfish/fabfile.py
Chicago Tribune News Applications fabric deployment script
from fabric.api import *
"""
Base configuration
"""
env.project_name = '$(project)'
env.database_password = '$(db_password)'
env.site_media_prefix = "site_media"
env.admin_media_prefix = "admin_media"
env.newsapps_media_prefix = "na_media"
== Rules ==
On Infrastructure
-----------------
There is one system, not a collection of systems.
The desired state of the system should be a known quantity.
The "known quantity" must be machine parseable.
The actual state of the system must self-correct to the desired state.
The only authoritative source for the actual state of the system is the system.
The entire system must be deployable using source media and text files.