Skip to content

Instantly share code, notes, and snippets.

View rviki84's full-sized avatar
💭
I may be slow to respond.

Vignesh Rammohan rviki84

💭
I may be slow to respond.
View GitHub Profile
@rviki84
rviki84 / xnatUpload.py
Created January 28, 2021 00:34
XNAT file upload in python
#
# Basic XNAT file upload with standard python
#
import httplib, urlparse, mimetypes, io, base64, urllib, os, sys
def createResource(host, selector, auth):
"""
Create an XNAT resource (directory)
@rviki84
rviki84 / upload-imagedata.sh
Created January 28, 2021 00:17
Uploads images listed in a csv spreadsheet into an xnat server
#!/bin/bash
print_usage() {
echo "
Uploads images listed in a csv spreadsheet into an xnat server
Uses the script create-session.sh
The spreadsheet should contain the following columns, separated by spaces:
<project> <subject-id> <acquisition-date> <session-type (MR or CT)> <session-label> <scan-label> <image-file-path>
@rviki84
rviki84 / hostList.txt
Created December 13, 2016 13:15
SSH Multi-Host Execution
198.209.202.11
198.31.175.22
198.209.133.33
@rviki84
rviki84 / install_update_plugins.sh
Created April 15, 2016 10:49 — forked from mkarmona/install_update_plugins.sh
Gimias install plugins
#!/bin/bash
# create plugin install structure and copy/move all
# things needed
is_debug_or_release=$(pwd | grep -o 'Debug\|Release')
if [[ $is_debug_or_release != "" ]] ; then
c_mode=$is_debug_or_release
p_source_dir="/home/el1mc/src/git.gimias.org/gimias.git/src/Apps/Plugins"