Skip to content

Instantly share code, notes, and snippets.

View someara's full-sized avatar

Sean OMeara someara

View GitHub Profile
@someara
someara / rhel5.ks
Created December 3, 2021 19:12 — forked from jbarber/rhel5.ks
RHEL5 kickstart example
# Example Kickstart config file for RHEL5, change $VARIABLES to suitable values
# for your site
# Usage from linux kernel boot prompt:
# linux ks=http://$SERVER_ADDR/ks/rhel5-example.ks ip=$IPADDR netmask=$NETMASK gateway=$GATEWAY [nokill] [keymap=pt-latin1] [noipv6] [debug]
#
# More boot options at http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Installation_Guide/ch-bootopts-x86.html
# Options for this section can be found at http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Installation_Guide/s1-kickstart2-options.html
install
@someara
someara / gist:4740767
Last active December 12, 2015 07:58 — forked from jtimberman/gist:3088517
% vagrant up --no-provision BOXNAME
% vagrant ssh BOXNAME
vagrant$ export http_proxy="proxy.you.com:8000"
vagrant$ export https_proxy="proxy.you.com:8000"
vagrant$ echo "10.9.8.7 cher-server.your.lap chef-server >> /etc/hosts"
vagrant$ wget -O - http://opscode.com/chef/install.sh | sudo bash
vagrant$ rm /tmp/chef*{rpm,deb}
vagrant$ exit
% vagrant package BOXNAME
% rm -rf ~/.vagrant.d/boxes/BOXNAME
@someara
someara / wtf
Created December 5, 2012 01:12
chef:recipe > search(:role, "name:*") do |r|
chef:recipe > puts r.inspect
chef:recipe ?> end
=> true
chef:recipe >
@someara
someara / default.rb
Created June 19, 2012 03:41 — forked from adamhjk/default.rb
Re-factored Apache cookbook
#
# Cookbook Name:: apache
# Recipe:: default
#
# Copyright 2012, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#
package "httpd" do
@someara
someara / custom.erb
Created June 17, 2012 19:59 — forked from adamhjk/custom.erb
Apache virtualhost file
<% if @port != 80 -%>
Listen <%= @port %>
<% end -%>
<VirtualHost *:<%= @port %>>
ServerAdmin webmaster@localhost
DocumentRoot <%= @document_root %>
<Directory />
Options FollowSymLinks
#!/bin/bash
set -e
set -x
trap "echo EXITING THE SCRIPT" EXIT
export RAILS_ENV="mind"
set +e
/usr/local/bin/rvm-shell 'default' -c '
byte-compiling build/bdist.linux-x86_64/egg/tracscreenshots/tags.py to tags.pyc
byte-compiling build/bdist.linux-x86_64/egg/tracscreenshots/api.py to api.pyc
File "build/bdist.linux-x86_64/egg/tracscreenshots/api.py", line 53
'where' : (' WHERE ' + where) if where else ''}
^
SyntaxError: invalid syntax
byte-compiling build/bdist.linux-x86_64/egg/tracscreenshots/db/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/tracscreenshots/db/db4.py to db4.pyc