Skip to content

Instantly share code, notes, and snippets.

View hardyoyo's full-sized avatar
🕺
husslin'

Hardy Pottinger hardyoyo

🕺
husslin'
View GitHub Profile
@dchud
dchud / dspace-4.0-bin-install-guide
Last active August 29, 2015 13:56
20-minute guide to installing DSpace-4.0 from binary release on Ubuntu 12.04 LTS
# 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
@mwoodiupui
mwoodiupui / dsctx
Last active August 29, 2015 14:05
Shell script to create customized Tomcat Context descriptors for a DSpace instance
#! /bin/sh
# Copyright 2014 Indiana University
# Mark H. Wood, IUPUI University Library
### Configure me!
DSHOME="${HOME}/dspaces"
DBMS='postgresql'
DB_HOST=localhost
@kardeiz
kardeiz / gist:c8ab990614dbbcb31213
Created November 11, 2014 16:33
script to output DSpace resource policy info
#!/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'
#!/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
@ninabreznik
ninabreznik / gist:9f3799df31e66b9010b6403309dce687
Last active October 24, 2017 16:37
RAILS Cheat Sheet (BACKUP)
RAILS Cheat Sheet!
########################################
Rails Tutorial/Chapter 1
RUN A LOCAL SERVER
$ rails server
CHECK VERSION OF RUBY
$ ruby -v
@escowles
escowles / disk-clear.sh
Last active October 24, 2018 12:34
fedora-wiper
#!/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]*
@alanorth
alanorth / fix-metadata-values.py
Last active November 6, 2018 06:58
Search and replace "bad" metadata values in the DSpace database. Reads from CSV.
#!/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.
@eriwen
eriwen / pre-commit
Last active January 13, 2021 08:22
Pre-commit git hook for tracking new TODO/FIXME comments
#!/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
@hardyoyo
hardyoyo / TastyAle.txt
Last active July 7, 2021 00:09
Hardy's Tasty Ale, almost a Kölsch
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
@jpfuentes2
jpfuentes2 / rbenv-install-system-wide.sh
Created March 8, 2012 19:47
CentOS: rbenv install and system wide install
#!/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