Skip to content

Instantly share code, notes, and snippets.

DATE=$(date +%Y%m%d-%H%M)
SITE_URL=papers.hallwaytech.com
DB_NAME=cod2.aar
DB_PASS="mm07e1bca901%7Emm"
DATA_FILE=$DB_NAME-$DATE.sql
SITE_FILE=papers_$DATE.tar.gz
SERVER_LOC=/srv/www/cod2.hallwaytech.com
# dump local mysql to data/
mysqldump -u root -p$DB_PASS $DB_NAME > $DATA_FILE
update drupal_users
set mail = "[email protected]"
where mail not like '%@aarweb.org'
and mail not like '%@hallwaytech.com';
update drupal_users
set mail = '[email protected]'
where name in ('Z22505', 'S00304', 'Z37527', 'Z21587', 'Z38940', 'Z34751');
update drupal_users
@thecarlhall
thecarlhall / run_tests_single_threaded.sh
Created September 22, 2011 20:55
Testing Solr Indexing
#!/bin/bash
NUM_USERS=100
THREADS=1
# variable to get us back to the parent director of nakamura & oae builder
BASE=../
BRANCHES=('content-indexing' 'master')
PROCS=('conns' 'msgs')
WINDOW_NAME="Java Monitoring & Management Console"
@thecarlhall
thecarlhall / bundle_graphs.py
Created September 2, 2011 05:10
Nakamura Bundle Dependency Graphs
#! /usr/bin/env python
import re
from sets import Set
import os
import pygraphviz as pgv
import sys
import telnetlib
# [ 1] [Active ] [ 15] org.sakaiproject.nakamura.messaging (0.11.0.SNAPSHOT)
bundle_from_ps = re.compile('^\[\s*(?P<bundle_id>\d+)\]\s\[.+\]\s(?P<bundle_name>.+)\s')
define(function() {
// Insert custom configuration here
var config = {
// Custom CSS Files to load in
skinCSS : ["/dev/skins/nyu/nyu.skin.css"],
Authentication : {
"allowInternalAccountCreation": false,
"internal": false,
"external": [{