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
# dchud's 20 minute guide to installing DSpace 4.0 from the binary release | |
# on a clean ubuntu 12.04 server running on aws ec2 or where-have-you | |
# | |
# this guide assumes you are already comfortable with *nix system administration | |
# | |
# this guide leaves out anything to do with the many details of configuring | |
# DSpace itself; it just gets you to the "it's up and running" step | |
# | |
# to start: get your clean ubuntu-12.04 system up to date | |
$ sudo apt-get update && sudo apt-get upgrade |
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/sh | |
# Copyright 2014 Indiana University | |
# Mark H. Wood, IUPUI University Library | |
### Configure me! | |
DSHOME="${HOME}/dspaces" | |
DBMS='postgresql' | |
DB_HOST=localhost |
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/env jruby | |
require 'csv' | |
DSPACE_CFG = 'path to your dspace.cfg' | |
DSPACE_DIR = File.expand_path('../..', DSPACE_CFG) | |
DSPACE_JARS = Dir[File.join(DSPACE_DIR, 'lib/*.jar')] | |
ADMIN_EMAIL = 'your admin email' | |
OUTPUT = '/tmp/rp.csv' |
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/sh | |
# | |
# Author: Ivan Masar, 2015 | |
# License: public domain | |
# | |
# list running VMs by name | |
# for each VM print selected fields from vminfo | |
# format it into a table (using "column") | |
print_header=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
RAILS Cheat Sheet! | |
######################################## | |
Rails Tutorial/Chapter 1 | |
RUN A LOCAL SERVER | |
$ rails server | |
CHECK VERSION OF RUBY | |
$ ruby -v |
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/sh | |
for i in /var/lib/tomcat7/fcrepo4-data/fedora.binary.directory/*; do | |
echo $i | |
rm -rf $i | |
done | |
rm -rf /var/lib/tomcat7/fcrepo4-data/[cf]* |
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 | |
# fix-metadata-values.py 1.0.0 | |
# | |
# Copyright 2018 Alan Orth. | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. |
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/ruby | |
$refname = ARGV[0] | |
$oldrev = ARGV[1] | |
$newrev = ARGV[2] | |
def tasks | |
puts 'Checking TODOs...' | |
todo_pattern = /^\s*\+\s*([\/\#]+|<\!\-\-)\s*(FIXME|TODO)\W*([\s\w]+)(\-\->)?$/ | |
# Find task-oriented comments added with this commit |
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
Vol: 5 Gals | |
Style: Not quite a Kölsch | |
Malts: | |
6 Lbs Northwestern LME, Gold | |
1 Lb Cara-pils, American | |
1 Lb Vienna, American | |
Hop Schedule: | |
.5 oz Chinook (12%) 60 minutes |
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 | |
# CentOS rbenv system wide installation script | |
# Forked from https://gist.github.com/1237417 | |
# Installs rbenv system wide on CentOS 5/6, also allows single user installs. | |
# Install pre-requirements | |
yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel \ | |
make bzip2 autoconf automake libtool bison iconv-devel git-core |
OlderNewer