Skip to content

Instantly share code, notes, and snippets.

View anarchivist's full-sized avatar
🐈‍⬛

María A. Matienzo anarchivist

🐈‍⬛
View GitHub Profile
@rakasaka
rakasaka / gist:1169341
Created August 24, 2011 21:45
Unsupervised topic modeling in Ruby using LDA
require 'lda-ruby'
corpus = Lda::Corpus.new
corpus.add_document(Lda::TextDocument.new(corpus, "a lion is a wild feline animal", []))
corpus.add_document(Lda::TextDocument.new(corpus, "a dog is a friendly animal", []))
corpus.add_document(Lda::TextDocument.new(corpus, "a cat is a feline animal", []))
lda = Lda::Lda.new(corpus)
lda.verbose = false
lda.num_topics = (2)
lda.em('random')
@tingletech
tingletech / crontab
Last active September 27, 2015 05:28
crontab—tell me the time
0 * * * * say `date +'\%l [[slnc 300]] oh clock \%p \%A \%B \%d \%Y'`
15,30,45 * * * * say `date +'\%l [[slnc 300]] \%M \%p [[slnc 500]] \%A \%B \%d \%Y'`
@vanto
vanto / README.md
Last active December 23, 2021 21:28
OEmbed Liquid Tag for Jekyll

OEmbed Liquid Tag for Jekyll

This is a simple liquid tag that helps to easily embed images, videos or slides from OEmbed enabled providers. It uses Magnus Holm's great oembed gem which connects to the OEmbed endpoint of the link's provider and retrieves the HTML code to embed the content properly (i.e. an in-place YouTube player, Image tag for Flickr, in-place slideshare viewer etc.). By default it supports the following OEmbed providers (but can fallback to Embed.ly or OoEmbed for other providers):

  • Youtube
  • Flickr
  • Viddler
  • Qik
  • Revision3
  • Hulu
  • Vimeo
@qrush
qrush / Inconsolata-dz-Powerline.otf
Created January 11, 2012 16:50
vim-powerline patched fonts
@baygross
baygross / Gemfile
Created March 17, 2012 04:17
Yale CAS + LDAP integration with Rails
#
## Add these gems to your Gemfile, and be sure to 'bundle install'
#
gem 'net-ldap'
gem 'rubycas-client'
@tingletech
tingletech / moved.md
Created August 29, 2012 22:24
deploy archives managment application on AWS
@mistydemeo
mistydemeo / fits-ng.sh
Created October 25, 2012 22:38
Running FITs in nailgun
#!/bin/bash
FITS_HOME=`brew --prefix fits`
export FITS_HOME
JCPATH=${FITS_HOME}/libexec
# Add on extra jar files to APPCLASSPATH
for i in "$JCPATH"/*.jar; do
APPCLASSPATH="$APPCLASSPATH":"$i"
done
@jstcki
jstcki / nest.rb
Created October 29, 2012 16:35
D3.js's nest operator in Ruby
# D3.js's nest operator in Ruby
class Nest
def initialize
# var nest = {}, keys = [], sortKeys = [], sortValues, rollup;
@nest = {}
@keys = []
@sort_keys = []
end
@williballenthin
williballenthin / extract_all_i30.sh
Last active October 22, 2018 12:25
Extracts all INDX attributes from an NTFS image using Sleuthkit utilities
#!/bin/bash
# Extracts all INDX attributes from an NTFS image using Sleuthkit utilities
# Willi Ballenthin <willi.ballenthin@gmail.com>, 2013
# Updates provided by Stefan Kelm, 2013
usage()
{
cat <<EOF
Usage: $0 offset /path/to/image/ /path/to/output/directory/
EOF

ArchivesSpace binary distribution

The .jar file distribution requires that users type a complex java command line to start the application.

Proposal: distribute a .zip file that contains the .jar as well as some wrapper scripts to start up the server.

Assumes either java 6 or java 7 is on the $PATH or %PATH%.

This is what you would get when you unpack the file: