Skip to content

Instantly share code, notes, and snippets.

View pixelandpen's full-sized avatar

Graham Faulkner pixelandpen

View GitHub Profile
@remore
remore / Dockerfile
Created September 8, 2015 02:29
A Dockerfile for antiboredom/audiogrep
FROM cellofellow/ffmpeg
RUN apt-get update
RUN apt-get install -y software-properties-common pocketsphinx-utils pocketsphinx-hmm-wsj1 pocketsphinx-lm-wsj git python python-pip
# Installing audiogrep
RUN git clone https://github.com/kevinhughes27/audiogrep.git
RUN cd audiogrep && pip install -r requirements.txt
RUN chmod +x audiogrep/audiogrep.py
RUN cp audiogrep/audiogrep.py /usr/bin/audiogrep
@peterbe
peterbe / indentations.py
Created July 7, 2015 16:41
Find what indentation a file uses
import re
from collections import defaultdict
start = re.compile('^\s+')
def avg(fn):
prev = None
diffs = []
for line in open(fn):
@cudevmaxwell
cudevmaxwell / Striking Out.md
Last active July 31, 2020 05:11
Striking Out with Islandora 2.x, Fedora 4.x, and Apache Camel

Striking Out with Islandora 2.x, Fedora 4.x, and Apache Camel

Kevin Bowrin, 2015-02-27

A few days ago, Nick Ruest and the Islandora Foundation made available the technical documentation for the upcoming version of Islandora. The Islandora Foundation should be commended for their transparency and community building efforts. Even in this early stage of Islandora 2.x, the documentation has a great introduction to Islandora, the goals of the project, the planned architecture, and installation instructions for their Vagrant development box.

The Technical Design for the next version of Islandora reminds me of something Mike Giarlo said, when I was waxing on about my dream Digital Library / R

@LeCoupa
LeCoupa / bash-cheatsheet.sh
Last active April 24, 2025 04:34
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@alanorth
alanorth / move_collections.sh
Last active August 30, 2023 06:31
Move DSpace collection(s) from one community to another. DSpace doesn't have a built-in tool to do this, so you have to use raw SQL commands.
#!/usr/bin/env bash
#
# Moves DSpace collections from one community to another. Takes a list of
# handles, then resolves their internal resource_id's and reassigns the
# community relationship. Assumed to be running as `postgres` Linux user.
#
# I don't think reindexing is required, because no metadata has changed,
# and therefore no search or browse indexes need to be updated. You might
# need to clear the Cocoon cache to see the updated breadcrumb trails.
#
@staltz
staltz / introrx.md
Last active April 29, 2025 08:33
The introduction to Reactive Programming you've been missing
base = 'http://live.mobileapp.fifa.com/api/wc/'
all matches:
base+'matches'
all teams:
base+'teams'
team:
base+'team/{ID}/en'
#!/usr/bin/env python
# Quick and dirty demonstration of CVE-2014-0160 by
# Jared Stafford ([email protected])
# Modified so that it finds cookies
import sys
import struct
import socket
import time
import select
@kardeiz
kardeiz / saxon-for-dspace.md
Last active June 28, 2016 18:46
Using Saxon with Cocoon XSLT for DSpace

Using Saxon with Cocoon XSLT for DSpace

Create an xconf file at [dspace-src]/dspace/modules/xmlui/src/main/resources/META-INF/cocoon/avalon/cocoon-core-saxon-xslt.xconf and add the following lines:

<?xml version="1.0" encoding="UTF-8"?>
<components>
  <component role="org.apache.excalibur.xml.xslt.XSLTProcessor/saxon"
 class="org.apache.cocoon.components.xslt.TraxProcessor"&gt;
@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