Skip to content

Instantly share code, notes, and snippets.

View stowler's full-sized avatar

Stephen Towler stowler

View GitHub Profile
# It looks like -multiwindow mode triggers the static color visual in both the internal x2go xserver and the external vcxsrv
# But it also looks like -multiwindow mode is how x2go client allows resizing of the remote desktop
# ...so I'm looking for a way to allow resizing of remote desktop w/out triggering static color visual.
#
# ...output of vcxsrv.exe's usage note:
Usage...
Vcxsrv [:<display>] [option]
:display-number
@stowler
stowler / lut_convertToFslview.sh
Last active June 20, 2017 19:00
lut_convertToFslview.sh : an unsafe proof-of-concept bash script for converting LUTs to fslview LUTs
#!/bin/bash
#
# CALL AS: lut_convertToFslview.sh
# (no arguments: input and output files defined below)
#
# CREATED: 20130430 by stowler@gmail.com
# LAST UPDATED: same
#
#
#
@stowler
stowler / 20140103coolingOutage1599.txt
Created January 23, 2014 06:12
Timeline of events for 1599 cooling outage. Pasted from the notes I started the day after the outage.
======================== F, 20140103: ========================
- 4:47p - email from hippostore: ERROR - Battery temperature is too high
- 4:57p - email from hippostore: ERROR - Enclosure temperature too high: encl=0, temperature sensor=2
- 4:58p - email from hippostore: ERROR - Enclosure temperature too high: encl=0, temperature sensor=3
- 5:16p - email from hippostore: ERROR - Enclosure temperature sensor error: encl=0, temperature sensor=0
- 5:16p - email from hippostore: ERROR - Enclosure temperature too high: encl=0, temperature sensor=1
- 5:16p - email from hippostore: ERROR - Enclosure temperature sensor error: encl=0, temperature sensor=1
- 5:30p - email from Emory: Power outage at 1599 clifton rd COLO server room (cooling systems impacted)
- 5:33p - email from hippostore: ERROR - Battery charging fault
@stowler
stowler / fmriQC-intro-exampleScript-20130930.sh
Created September 30, 2013 21:18
the example script we ran for Stella's fmri QC intro
#!/bin/bash
#
# created: 20130724 by stowler@gmail.com
# edited: 20130724 by madeleine.hackney@gmail.com
#
# This is a short script to illustrate quality control (qc) and conversion of
# Hackney PIT DICOM data.
# - It is currently designed for FMRI runs from a single session of scanning
# (i.e., one trip to the scanner, or one "study").
# - It is not written to accept commandline arguments. Instead, make a copy of
@stowler
stowler / 20130930_stellaIntro_terminalOutput.txt
Created September 30, 2013 21:14
terminal output from Stella's intro to fmri QC
stowler@pano:/data/birc/Atlanta/PIT/05.Scripts$ bash test_stephen.sh
For each FMRI series:
1) counting the number of DICOMs
2) converting the series into a 4D nifti file:
############### DICOMs from series fMRI_1_6 : ###############
@stowler
stowler / afniSwitchToRepo.sh
Created August 12, 2013 16:25
afniSwitchToRepo.sh - switch the user back to the neurodebian repository version of AFNI
#!/bin/bash
# afniSwitchToRepo.sh
#
# A script to switch the user back to the neurodebian repo version of AFNI from a
# local alternative install (e.g., /opt/abin). Works in combination with
# afniSwitchFromRepo.sh
echo ""
echo "Switching back to the repo version of AFNI:"
@stowler
stowler / afniSwitchFromRepo.sh
Last active December 20, 2015 23:28
afniSwitchFromRepo.sh - temporarily switch from the neurodebian repo version of AFNI to a local alternative
#!/bin/bash
# afniSwitchFromRepo.sh
#
# A script to tempoarily switch the user from the neurodebian repo version of
# AFNI to a local alternative install (e.g., /opt/abin). Works in combination
# with afniSwitchToRepo.sh
# Specify the parent directory of alternative AFNI's binaries:
@stowler
stowler / qcExample-noceraCDA2-fmri-categoryMemberGeneration.sh
Created July 24, 2013 22:02
This is a short script to illustrate quality control (qc) and DICOM to nifti conversion of fmri series.
#!/bin/bash
#
# created: 20130724 by stowler@gmail.com
# edited: 20130724 by stowler@gmail.com
#
# This is a short script to illustrate quality control (qc) and conversion of
# Nocera CDA2 DICOM data.
# - It is currently designed for FMRI runs from a single session of scanning
# (i.e., one trip to the scanner, or one "study").
# - It is not written to accept commandline arguments. Instead, make a copy of
@stowler
stowler / win7-vmware2virtualbox.diff
Created July 17, 2013 18:01
diff of ovf changes needed for today's successful vmware -> virtualbox migration of windows 7 VM
macula:OVF copy stowler-local$ diff -u Windows\ 7x86\ DanOrig.ovf Windows\ 7x86.ovf
--- Windows 7x86 DanOrig.ovf 2013-07-16 17:15:35.000000000 -0400
+++ Windows 7x86.ovf 2013-07-17 12:10:02.000000000 -0400
@@ -54,14 +54,6 @@
<vmw:Config ovf:required="false" vmw:key="ehciEnabled" vmw:value="true"/>
</Item>
<Item>
- <rasd:Address>0</rasd:Address>
- <rasd:Description>SCSI Controller</rasd:Description>
- <rasd:ElementName>scsiController0</rasd:ElementName>
@stowler
stowler / harold_voxPropNeg_thresh.Rsq95pct.md
Last active December 18, 2015 05:09
harold negative bold comparison for Friday review

Mean proportion of negative bold voxels is greater in young group than oldOld group.

NB: polling only suprathreshold voxels where rsq > (.95 * participantRsqMax)

  1. Significant (p=0.03) one-way ANOVA comparing group means of voxPropNeg:

 Df Sum Sq Mean Sq F value Pr(>F)