Skip to content

Instantly share code, notes, and snippets.

dependencies {
// dependencies needed by the Grails build system
build "org.gparallelizer:GParallelizer:0.8.3",
"org.tmatesoft.svnkit:svnkit:1.3.1",
"org.apache.ant:ant:1.7.1",
"org.apache.ant:ant-launcher:1.7.1",
"org.apache.ant:ant-junit:1.7.1",
"org.apache.ant:ant-nodeps:1.7.1",
"org.apache.ant:ant-trax:1.7.1",
pluginIncludes = [
metadataFile.name,
"*GrailsPlugin.groovy",
"plugin.xml",
"LICENSE",
"LICENSE.txt",
"dependencies.groovy",
"grails-app/**",
"lib/**",
"scripts/**",
args?.tokenize().each {token ->
def nameValueSwitch = token =~ '--?(.*)=(.*)'
if (nameValueSwitch.matches()) { // this token is a name/value pair (ex: --foo=bar or -z=qux)
println nameValueSwitch
argsMap[nameValueSwitch[0][1]] = nameValueSwitch[0][2]
}
else {
def nameOnlySwitch = token =~ "--?(.*)"
if (nameOnlySwitch.matches()) { // this token is just a switch (ex: -force or --help)
argsMap[nameOnlySwitch[0][1]] = true
@cl4rk3
cl4rk3 / batch.properties
Created August 14, 2010 16:31
Batch script to manipulate arbitrary Windows environment variables from the command line
PROJECT_ROOT=C:\development
JAVA_VERSION=1.5.0_11
JAVA_HOME=%PROJECT_ROOT%\java%JAVA_VERSION%
ANT_HOME=%PROJECT_ROOT%\tools\apache-ant-1.8.1
PATH=%JAVA_HOME%/bin;%PATH%;%ANT_HOME%/bin;
#=============================================================
#
# PERSONAL $HOME/.bashrc FILE for bash-3.0 (or later)
# By Emmanuel Rouat <no-email>
#
# Last modified: Sun Nov 30 16:27:45 CET 2008
# This file is read (normally) by interactive shells only.
# Here is the place to define your aliases, functions and
# other interactive features like your prompt.
#
@cl4rk3
cl4rk3 / stackscript.sh
Created March 25, 2011 00:44
Linode Stackscript for Ubuntu 10.10 w/java/groovy/grails
#!/bin/bash
echo deb http://archive.canonical.com/ubuntu maverick partner >> /etc/apt/sources.list
echo deb-src http://archive.canonical.com/ubuntu maverick partner >> /etc/apt/sources.list
echo >> /etc/apt/sources.list
echo deb http://archive.canonical.com/ubuntu maverick-updates partner >> /etc/apt/sources.list
echo deb-src http://archive.canonical.com/ubuntu maverick-updates partner >> /etc/apt/sources.list
echo >> /etc/apt/sources.list
echo deb http://archive.canonical.com/ubuntu maverick-security partner >> /etc/apt/sources.list
echo deb-src http://archive.canonical.com/ubuntu maverick-security partner >> /etc/apt/sources.list
@cl4rk3
cl4rk3 / atlanticUbuntu1404
Last active August 29, 2015 14:09
atlantic.net bash commands for Ubuntu 14.04
vi /etc/ssh/sshd_config
#edit to change port and disallow root login
adduser <USERNAME>
service sudo start
visudo
service ssh restart
apt-get update
apt-get upgrade
apt-get dist-upgrade
shutdown -r now
@cl4rk3
cl4rk3 / workingMinimalMavisTitle.xml
Created January 28, 2015 20:08
Minimal Working MAVIS Title record for import
<?xml version="1.0" encoding="ISO-8859-1"?>
<mavis database="LOC:mbrs" version="03.07.06" organisation="Library of Congress" xmlns:xl="http://www.w3.org/TR/xlink" xmlns="http://www.wizardis.com.au/2005/12/MAVIS">
<TitleWork>
<objectIdentifiers>
<ObjectIdentifier>
<identifier>169-10jsxq0w</identifier>
<identifierType>AMARCGUID</identifierType>
</ObjectIdentifier>
<ObjectIdentifier>
<identifier>KUNI5259</identifier>
<?xml version="1.0" encoding="ISO-8859-1"?>
<mavis database="LOC:mbrs" version="03.07.06" organisation="Library of Congress" xmlns:xl="http://www.w3.org/TR/xlink" xmlns="http://www.wizardis.com.au/2005/12/MAVIS">
<TitleWork>
<objectIdentifiers>
<ObjectIdentifier>
<identifier>204-053ffc0w</identifier>
<identifierType>AMARCGUID</identifierType>
</ObjectIdentifier>
<ObjectIdentifier>
<identifier>CAS0221</identifier>
@cl4rk3
cl4rk3 / workingMinimalMavisTitle-MI-bare.xml
Last active August 29, 2015 14:17
Example of importable MAVIS title record xml for moving image
<?xml version="1.0" encoding="ISO-8859-1"?>
<mavis database="LOC:mbrs" version="03.07.06" organisation="Library of Congress" xmlns:xl="http://www.w3.org/TR/xlink" xmlns="http://www.wizardis.com.au/2005/12/MAVIS">
<TitleWork>
<objectIdentifiers>
<ObjectIdentifier>
<identifier>cpb-aacip/189-8380gkx9</identifier>
<identifierType>AMARCGUID</identifierType>
</ObjectIdentifier>
<ObjectIdentifier>
<identifier>LAC-2531/1</identifier>