Skip to content

Instantly share code, notes, and snippets.

Daniel M. Drucker dmd

Block or report user

Report or block dmd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:95c3b7cd9af2f33b8c55a92e507a9eb2
set nocp
"set clipboard=exclude:.* " use this if below makes startup slow
set clipboard=unnamed " is really slow
let mapleader = ","
" Plugins
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $HOME/.vimrc
endif
View gist:1277da032a57d23cad408373cf2276c4
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run via sudo"
exit 1
fi
if [ "$#" -ne 3 ]; then
echo "Usage: $0 partnersid sharename mountpoint"
exit 1
View gist:3faa8b9b1f9e1cdae14fcbc39988fd8f
.:
total 64
drwxrwxr-x 2 ddrucker ddrucker 4096 Sep 17 11:22 tpl-fsaverage
drwxrwxr-x 3 ddrucker ddrucker 4096 Sep 17 11:22 tpl-fsLR
drwxrwxr-x 3 ddrucker ddrucker 4096 Sep 17 11:22 tpl-MNI152Lin
drwxrwxr-x 2 ddrucker ddrucker 12288 Sep 17 11:22 tpl-MNI152NLin2009cAsym
drwxrwxr-x 3 ddrucker ddrucker 8192 Sep 17 11:22 tpl-MNI152NLin6Asym
drwxrwxr-x 3 ddrucker ddrucker 4096 Sep 17 11:22 tpl-MNI152NLin6Sym
drwxrwxr-x 14 ddrucker ddrucker 4096 Sep 17 11:22 tpl-MNIInfant
drwxrwxr-x 9 ddrucker ddrucker 4096 Sep 17 11:22 tpl-MNIPediatricAsym
View gist:786ec447126f0d35a91d11d45e0e71ff
This file has been truncated, but you can view the full file.
This dataset appears to be BIDS compatible.
Summary: Available Tasks: Available Modalities:
17 Files, 1.93GB T1w
1 - Subject bold
1 - Session
If you have any questions, please post on https://neurostars.org/tags/bids.
View gist:1a0639cd09053be53f760d9c893689c1
usage: micc-fmriprep.py [-h] [--aroma] [--disable-syn-sdc] [--ncpus NCPUS]
[--ramsize RAMSIZE] [--freesurfer] [--anat-only]
[--output-spaces OUTPUT_SPACES] --bidsdir BIDSDIR
--outputdir OUTPUTDIR --workdir WORKDIR --participant
PARTICIPANT [--fmriprep-container FMRIPREP_CONTAINER]
Run fMRIPrep, with some MIC cluster specific presets.
optional arguments:
-h, --help show this help message and exit
View gist:93ae3b9bfb04aafdc0294cd473ceecde
root@x5backup /veeam
# ls -R
.:
amicas4 - amicas4.mclean.harvard.edu VeeamConfigBackup
esxi01 vms vspheremic vms
Full x5backup - x5backup.mclean.harvard.edu
ris2013 - ris2013.mclean.harvard.edu
./amicas4 - amicas4.mclean.harvard.edu:
amicas4 - amicas4.mclean.harvard.eduD2019-05-04T224145_2DCD.vbk
View gist:c8479537512a4ddd5078ec65f6e25780
spawn ssh root@micbackup
Bad terminal type: "xterm-256color". Will assume vt100.
micbackup.mclean.harvard.edu:> confirm shell zpool status -lv backup1
pool: backup1
state: ONLINE
scan: resilvered 3.18T in 9h17m with 0 errors on Tue May 7 22:00:11 2019
config:
NAME STATE READ WRITE CKSUM
View gist:c7483f81898c1ba088ac39814995d3c1
spawn ssh root@micbackup
Password:
Bad terminal type: "xterm-256color". Will assume vt100.
micbackup.mclean.harvard.edu:> confirm shell zpool status -lv backup1
pool: backup1
state: DEGRADED
status: One or more devices are unavailable in response to persistent errors.
Sufficient replicas exist for the pool to continue functioning in a
degraded state.
action: Determine if the device needs to be replaced, and clear the errors
View gist:99f8b598153a4c39257d6f77d3d167b4
spawn ssh root@micbackup
Password:
Bad terminal type: "xterm-256color". Will assume vt100.
micbackup.mclean.harvard.edu:> confirm shell zpool status -lv backup1
pool: backup1
state: DEGRADED
status: One or more devices is currently being resilvered. The pool will
continue to function in a degraded state.
action: Wait for the resilver to complete.
scan: resilver in progress since Mon Apr 15 13:31:16 2019
View gist:c1e7a44f617a23a3e0075b3568edd7df
spawn ssh root@micbackup
Password:
Bad terminal type: "xterm-256color". Will assume vt100.
micbackup.mclean.harvard.edu:> confirm shell zpool status -lv backup1
pool: backup1
state: DEGRADED
status: One or more devices is currently being resilvered. The pool will
continue to function in a degraded state.
action: Wait for the resilver to complete.
scan: resilver in progress since Mon Apr 15 13:31:16 2019
You can’t perform that action at this time.