Skip to content

Instantly share code, notes, and snippets.

View filler's full-sized avatar

Nick Silkey filler

View GitHub Profile
@filler
filler / README.md
Created July 20, 2012 12:45
split and non-split centos openvpn configs

Hacky Openvpn

Drop both conf files into /etc/openvpn and /etc/init.d/openvpn should pick up on both and fire them up. Configure the ip addr of your host you wish to vpn through in the configs on the server lines.

Key difference is the openvpn-split.conf only pushes routes for netblocks you want to route over the vpn. In the below case, its the two routable /16s. The openvpn-everything.conf pushes a gateway down to clients, shunting all traffic through the vpn endpoint. Also push DNS servers if you have records locked up in campus DNS.

You also have to do all the easy-rsa business which is fairly well documented on the web. Drag the client certs which come from that business over to your vpn client. I use Tunnelblick in OS X.

Tested using openvpn-2.2.2-1.el5.rf from rpmforge on CentOS 5.8 in a Xen DomU.

@filler
filler / README.txt
Created July 19, 2012 16:04 — forked from fishnix/README.txt
jboss eap 5.1.2 + jenkins vagrantfile
LOLWAT
## What you Get
- A working linux box
- Java JDK 1.6.0_xx
- JBoss 5.x.x
- Jenkins with Yale-Maven-Application-Installer
## The deets
- JBoss:
@filler
filler / README.md
Created July 12, 2012 20:19
pass at percona bundle

First pass at Percona bundles at Yale:

  • One in support of simple Percona, non-XtraDB.
  • One with XtraDB, to be extended to support more cluster functions.
  • Both needing Xtrabackup to perform Innobackup/MySQL Enterprise Backup (MEB) functions.

Percona doesnt keep many versions around in their yum repo, so Yale has to mirror them internally to reference old versions.

Yale needs to whack on /etc/yum.conf to extend the blacklisting of Percona like is done with MySQL Enterprise packages via exclude=MySQL-*-advanced-gpl* @ cfengine. This is because Percona drops obsoletes flags on their rpms, same as Oracle does.

@filler
filler / README.md
Created July 11, 2012 18:16
we tried to create a box or a box was here before but now it's gone fix

Running vagrant 1.0.3 and veewee 0.2.3 on OSX 10.7.4, sometimes vagrant/veewee croak and you cant respin a basebox.

Remove it from ~/Virtualbox\ VMs/ and youre good!

silkey@rdj:~/Vagrant/veewee [0]
[528] λ > vagrant basebox build 'RHEL-6.3-x86_64'

Verifying the isofile rhel-server-6.3-x86_64-boot.iso is ok.
Setting VM Flag ioapic to on
@filler
filler / README.md
Created July 11, 2012 15:35
RHEL 6.3 veewee templates for vagrant use

RHEL 6.3 veewee templates for vagrant use

These templates can be used to feed to veewee to spin up an el6 basebox for use with vagrant.

There are some coded values in definition.rb and ks.cfg which point at Yale-ishness. Amend to point at local RHEL iso/yum repo.

Built successfully with veewee 0.2.3, vagrant 1.0.3, Virtualbox 4.1.18.

Config Management

@filler
filler / gist:2996190
Created June 26, 2012 14:44
apc 3.1.9 config
apc.cache_by_default=1
apc.canonicalize=0
apc.coredump_unmap=0
apc.enable_cli=0
apc.enabled=1
apc.file_md5=0
apc.file_update_protection=2
apc.filters
apc.gc_ttl=3600
apc.include_once_override=0
@filler
filler / gist:2991176
Created June 25, 2012 20:53
mysqltuner @ iwdevdb
-------- General Statistics --------------------------------------------------
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.1.49sp1-enterprise-gpl-advanced
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -------------------------------------------
[--] Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
[--] Data in MyISAM tables: 979M (Tables: 7160)
[--] Data in InnoDB tables: 11G (Tables: 70686)
[!!] Total fragmented tables: 3820
@filler
filler / .gitignore
Created June 14, 2012 14:25
hack via vagrant shell provider to get yale cfengine 3 going
.vagrant
cf3dcsunix
@filler
filler / gist:2918138
Created June 12, 2012 15:18
filelocker traceback during db upgrade r918
2012-06-12 11:13:40,831 INFO sqlalchemy.engine.base.Engine.0x...ca90 BEGIN
2012-06-12 11:13:40,834 INFO sqlalchemy.engine.base.Engine.0x...ca90 INSERT INTO files (id, name, type, size, notes, date_uploaded, owner_id, role_owner_id, date_expires, passed_avscan, encryption_key, status, notify_on_download, md5, upload_request_id) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
2012-06-12 11:13:40,834 INFO sqlalchemy.engine.base.Engine.0x...ca90 [u'184', u'DSET_Report_for_[pantheon-po51.its.yale.edu-SvcTag--]-on-02-21-2012-at-11-31-AM.zip', u'Zip archive data, at least v1.0 to extract', 2287889L, '', u'2012-06-12 11:10:40', u'rs253', None, u'2012-06-22 00:00:00', True, u'DwQRNm0Ucl2VEAGDSomkbU5cvbNYyftH', u'Checked In', 0, u'', u'']
2012-06-12 11:13:40,839 INFO sqlalchemy.engine.base.Engine.0x...ca90 ROLLBACK
Traceback (most recent call last):
File "setup.py", line 141, in <module>
restore_from_backup(dburi, options.datafile)
File "setup.py", line 78, in restore_from_backup
import_
@filler
filler / gist:2888842
Created June 7, 2012 13:39
yale v cfengine stdlib collisions?
[root@localhost inputs]# cf-agent -K
cf3> /var/cfengine/inputs/yale_stdlib.cf:38,54: Redefinition of body "check_range" for "process_count" is a broken promise, near token '{'
cf3> /var/cfengine/inputs/yale_stdlib.cf:726,29: Redefinition of body "if_repaired" for "classes" is a broken promise, near token '{'
R: --> I'm a policy hub.
[root@localhost inputs]# grep -C5 if_repaired *stdlib.cf
cfengine_stdlib.cf-
cfengine_stdlib.cf- comment => "A user's regular batch jobs are added to this file",
cfengine_stdlib.cf- create => "true",
cfengine_stdlib.cf- edit_line => append_if_no_line("$(mins) $(hours) * * * $(commands)"),
cfengine_stdlib.cf- perms => mo("644","$(user)"),