This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": [{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
?> | |
<div id="branding" class="clearfix"> | |
<?php print $breadcrumb; ?> | |
<?php print render($title_prefix); ?> | |
<?php if ($title): ?> | |
<h1 class="page-title"><?php print $title; ?></h1> | |
<?php endif; ?> | |
<?php print render($title_suffix); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private javax.jcr.Session jcrSession; | |
private org.sakaiproject.nakamura.api.lite.Repository repository; | |
private org.sakaiproject.nakamura.api.lite.Session session; | |
// Create an in-memory repository to work with | |
repository = new BaseMemoryRepository().getRepository(); | |
// mock a jcr session but also include SessionAdaptable for easier mocking to a sparse session | |
jcrSession = mock(javax.jcr.Session.class, Mockito.withSettings().extraInterfaces(SessionAdaptable.class)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################################### | |
# Pax Runner profile for Sakai OAE 1.4.0-SNAPSHOT using Apache Felix Http | |
######################################################################### | |
# | |
##### Dependencies | |
# | |
# start level 1 | |
scan-bundle:mvn:commons-io/commons-io/1.4@1 | |
scan-bundle:mvn:commons-fileupload/commons-fileupload/1.2.2@1 | |
scan-bundle:mvn:commons-collections/commons-collections/3.2.1@1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install ffmpeg youtube-dl | |
$ sudo install youtube2mp3 /usr/local/bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function parse_git_branch { | |
git rev-parse --git-dir &> /dev/null | |
git_status="$(git status 2> /dev/null)" | |
branch_pattern="^On branch ([^${IFS}]*)" | |
remote_pattern="# Your branch is ([[:alnum:]]*)" | |
diverge_pattern="# Your branch and (.*) have diverged" | |
if [[ ${git_status} =~ ${branch_pattern} ]]; then | |
branch=${BASH_REMATCH[1]} | |
if [[ ${git_status} =~ "Changes not staged for commit" ]]; then |
OlderNewer