Skip to content

Instantly share code, notes, and snippets.

View uogbuji's full-sized avatar

Uche Ogbuji uogbuji

View GitHub Profile
@uogbuji
uogbuji / gist:7cbc5c62f99951999574
Last active August 29, 2015 14:20
Installing yaz-marcdump on Linux Mint rebecca

Seems to be a pain to install, so here are notes, for me later, and for anyone else.

You'll need some packages from Debian sid proper. Create a file /etc/apt/sources.list.d/debiansid.list with the following content (this will be a temporary step, which you undo later).

deb http://ftp.us.debian.org/debian sid main

Then import its keys.

apt-get install debian-archive-keyring

Resources for presentation "Library Visibility from Library Linked Data" from Amigos online conference Linked Data & RDF Online Conference.

Presentation slides (PDF)

by Uche Ogbuji ( Twitter: @uogbuji e-mail [email protected] ) of Zepheira

π day

for the Ogbuji kids

It’s π day, century π day!
It’s properly day after Friday!
Reserve me a slice
Baked with honey and spice
And a glaze on the crust to make my day.

@uogbuji
uogbuji / gist:b55112279818ab73c1c3
Last active August 29, 2015 14:13
Quick notes on setting up a virtual machine for Linux Mint hosted by my Mac running Yosemite

Re: My process of choosing VM software, I started with:

"Virtualization Benchmark Showdown – Parallels 10 vs. Fusion 7 vs. VirtualBox"

"Parallels Desktop 10 offers better performance in most areas compared to VMware Fusion 7. While the gap is narrow in some categories, Parallels 10 simply outmatches Fusion 7 in both raw processing power and graphics performance."

"But both Parallels and Fusion faced surprisingly competent competition from VirtualBox. While a distant third in most benchmarks, VirtualBox easily handled most of our non-GPU tasks without a hitch. You won’t want to use a VirtualBox VM for gaming or heavy workloads, and disk performance could be better, but if you just need to run some moderately demanding Windows software on your Mac,...there’s absolutely no need to spend upwards of $80 on commercial virtualization software. In addition, VirtualBox is cross-platform, meaning that you can move your VMs between OS X, Windows,

@uogbuji
uogbuji / .profile
Created November 4, 2014 18:03
Uche Ogbuji's .profile aliases for Mac OS X Yosemite
alias timestamp='date "+%Y%m%dT%H%M%S"'
alias xmlescape='python -c "import sys; from xml.sax.saxutils import escape; sys.stdout.write(escape(sys.stdin.read()))"'
alias jsonpretty='python -c "import sys, json; json.dump(json.loads(sys.stdin.read()), sys.stdout, indent=4)"'
alias grep='grep -d skip'
alias vlc='/Applications/VLC.app/Contents/MacOS/VLC'
'''
Declarations used to elucidate MARC model
'''
#Just set up some flags
#BOUND_TO_WORK = object()
#BOUND_TO_INSTANCE = object()
#Full MARC field list: http://www.loc.gov/marc/bibliographic/ecbdlist.html
#This line must be included
@uogbuji
uogbuji / gist:b136f9bc9f7fca861cb3
Last active June 26, 2024 17:45
Boulder/Denver pick-up soccer resources

Visiting the Front Range, or live here? Love to play soccer, or want to try it out? Lots of good groups & opportunities!

Boulder/Denver (Front Range) pick-up soccer resources (bias towards the Boulder area)

Groups/pages with a variety of game groups/times/locations

@uogbuji
uogbuji / britburn4freemix.py
Created November 23, 2013 22:59
Take a spreadsheet from the Britburn project <http://www.britburn.co.uk/> of UK music chart history and creates a smaller spreadsheet suitable for import into Viewshare/Freemix. Grabs some good info for exercising various facets, and also uses DBPedia for adding more, e.g. artist link, image and birthplace info. python britburn4freemix.py Britbu…
#!/usr/bin/env python
# -*- coding: utf-8 -*-#import itertools
#Useful re DBPedia / SPARQL: http://markwatson.com/blog/2013-08/python-sparql-client-example.html
#Useful re DBPedia alternate lookup names & image retrieval: http://www.snee.com/bobdc.blog/2011/05/using-sparql-to-find-the-right.html
import sys
import time
from amara.thirdparty import httplib2, json
@uogbuji
uogbuji / wayin2ejson.py
Created November 20, 2013 06:37
Process a twitter stream in form of Wayin "bites" JSON into useful Exhibit JSON
import sys
import re
from amara.thirdparty import json #https://pypi.python.org/pypi/Amara/
from datachef.exhibit import emitter #https://pypi.python.org/pypi/datachef
HASHTAG_PAT = re.compile(r"#(\w+)")
def run(source=None, em=None):
obj = json.load(source)
@uogbuji
uogbuji / akara.conf.py
Created February 28, 2011 19:39
My local akara.conf for dev/debugging on my Mac
# -*- mode: python -*-
# This is the main Akara server configuration file. It contains
# settings for the server and for its extension modules.
# The configuration file is written in Python. Configuration data goes
# into class attributes. If the module is "A.B.C" then the
# configuration information should be in the class named "C". If there
# is a conflict then use the parameter "akara_name" to set the full
# module name.