Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
#
# gen-webid-cert.sh: WebID Self-signed Certificate Generator
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.

This gist describes a flexible dicom converter for organizing brain imaging data into structured directory layouts.

  • it allows customizable directory layouts and naming schemes through heuristic file
  • it only converts the necessary dicoms, not everything in a directory
  • you can keep links to dicom files in the participant layout
  • it's faster than parsesdicomdir or mri_convert if you use dcm2nii option
  • it embeds all the dicom metadata inside the nifti header using dcmstack
  • it tracks the provenance of the conversion from dicom to nifti in w3c prov format
  • the example shows a conversion to openfmri layout structure
@nicholsn
nicholsn / pr.md
Created March 25, 2013 19:42 — forked from piscisaureus/pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@nicholsn
nicholsn / nrg_interfaces.py
Created October 29, 2012 17:26 — forked from kastman/nrg_interfaces.py
HVD NRG Nipype Interface to QA
#!/usr/bin/env python
from nipype.interfaces.base import BaseInterface, BaseInterfaceInputSpec, TraitedSpec, traits, InputMultiPath, OutputMultiPath, File
from nipype.utils.filemanip import split_filename
import niftiqa
import os, sys
####### Begin Class niftiqa ########
class niftiqaInputSpec(BaseInterfaceInputSpec):
niftis = InputMultiPath(traits.Either(traits.List(File(exists=True)),File(exists=True)),
@nicholsn
nicholsn / Solarized High Contrast Dark.itermcolors
Created May 11, 2012 21:44 — forked from heisters/Solarized High Contrast Dark.itermcolors
Solarized High Contrast Dark theme for iTerm2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.19370138645172119</real>
<key>Green Component</key>
<real>0.15575926005840302</real>

from EPD install:

As the last step, you should edit your .bashrc or prepend
the EPD install path:

    /software/python/EPD/7.0/bin

Thank you for installing EPD!

$ export PATH=/software/python/EPD/7.0/bin:$PATH