Skip to content

Instantly share code, notes, and snippets.

@pdurbin
pdurbin / .gitignore
Last active April 10, 2018 16:03
Java interfaces vs. abstract classes
*.class
target
#!/usr/bin/env python
import urllib2
import csv
import json
url = 'https://docs.google.com/spreadsheets/d/1t5sZiqTacunAXhfjcOnj4l81jNiCpswE8DlbVNqyKgU/export?gid=504231308&format=tsv'
def findIssueTitle(url):
text = urllib2.urlopen(url).read()
# FIXME: find cleaner solution than removing characters
@pdurbin
pdurbin / README.md
Last active May 27, 2016 17:13
2016-06-01 Setting Up Your Dataverse Development Environment

2016-06-01 Setting Up Your Dataverse Development Environment

Dataverse API Testing

@pdurbin
pdurbin / adfs.xml
Last active December 28, 2015 10:29
saml2p:Response with SAMLAssertionConsumer destination
<?xml version="1.0" encoding="UTF-8"?>
<samlp:Response ID="_53961898-e69d-4f31-885b-2da0fc6967ac"
Version="2.0"
IssueInstant="2013-11-15T15:45:56.308Z"
Destination="https://pdurbin.pagekite.me:80/oiosaml.java-demo-8501-debug/saml/SAMLAssertionConsumer"
Consent="urn:oasis:names:tc:SAML:2.0:consent:unspecified"
InResponseTo="_220cf4f3-d3c2-4937-b8ef-c7e86d2bdb7a"
xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
>
<Issuer xmlns="urn:oasis:names:tc:SAML:2.0:assertion">http://adfs.medlab.harvard.edu/adfs/services/trust</Issuer>
@pdurbin
pdurbin / drupal-book-module-export.php
Created January 25, 2013 16:28
drush script to export content from a Drupal book module: http://drupal.org/documentation/modules/book
<?php
$outdir = '/home/pdurbin/drupal/exported';
$old_base_url = 'http://www.example.com';
$limit_post_count_for_testing = 0;
$post_limit = 20;
$formats["4"] = 'txtl';
#$nid = 7; // About
@pdurbin
pdurbin / README.md
Last active October 15, 2015 18:25
Shiny installed via RPM

Shiny installed via RPM

After running vagrant up you should be able to visit http://localhost:3838/sample-apps/hello/ and see "Shiny installed via RPM" at the top and a histogram with black bins similar to the "screenshot.png" found in this directory.

The setup is done by setup.sh and operates on files within the Vagrant VM in "/shiny-setup". See Vagrantfile in this directory for details.

This proof of concept uses the following software versions:

  • CentOS 6.5