Skip to content

Instantly share code, notes, and snippets.

View dmd's full-sized avatar

Daniel M. Drucker, Ph.D. dmd

View GitHub Profile
#!/bin/bash
#
# 2021 ddrucker
set -o errexit
if [ $# -lt 2 ]; then
echo "Usage: $0 xnat_username accessionid [accessionid accessionid ...]"
echo "accessionid can be the MGB-generated one, which (typically) starts with E,"
echo "OR the XNAT-generated one, which starts with XNAT_E."
#!/bin/bash
#
# 2021 ddrucker
set -o errexit
if [ $# -lt 2 ]; then
echo "Usage: $0 xnat_username accessionid [accessionid accessionid ...]"
echo "accessionid can be the MGB-generated one, which (typically) starts with E,"
echo "OR the XNAT-generated one, which starts with XNAT_E."
set-option -g prefix C-t
bind-key C-t last-window
bind-key t send-keys C-t
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
bind-key -n M-j swap-window -d -t -1
bind-key -n M-k swap-window -d -t +1
SPINE DOT S^LUMBAR^DOT
MCLEAN CLINICAL^BRAIN
Brain^Routine^DOT
TMJ^TMJ 20 channel coil^TMJ
MRI RESEARCH
3P,VA,60
3P,No VA Brain,120
3P,No VA Brain,60
3P,VA,120
3P,No VA Brain,45
version: '3.6'
x-logging:
&default-logging
driver: "json-file"
options:
max-size: "200m"
max-file: "20"
services:
[
{
"ID" : "1",
"MainDicomTags" : {
"StudyDescription" : "foo",
},
"Type" : "Study"
},
{
"ID" : "2",
set nocp
" 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
call plug#begin('~/.vim/plugged')
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
set nocp
" 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
call plug#begin('~/.vim/plugged')
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
#!/usr/bin/env python
from PIL import Image, ImageDraw, ImageFont
import sys
hostname = sys.argv[1]
text = sys.argv[2] if len(sys.argv) > 2 else ""
text = text.replace('\\n','\n')
img = Image.new('RGB', (1280, 1024), color = (33,33,33))
bigfnt = ImageFont.truetype('/Library/Fonts/Arial.ttf', 75)
2020-01-14.log:[08:53:13] <dmd> i really love the star wars aesthetic, how *old* everything looks. most scifi is either "brand gleaming new" or "dirty cyberpunk, broken down, but clearly spacefaring culture is only at most a couple hundred years old"
2020-01-14.log:[08:53:27] <dmd> where star wars is like "we have been here 10,000 years"
2020-08-03.log:[13:06:44] <dmd> https://www.roland.com/global/products/aerophone_go/ is this star wars Jizz Music
2020-11-13.log:[14:10:09] <dmd> one of the things I like about the Star Wars aesthetic and design language is that it presents the technology as being so old as to be always uncommented on, in the same way that we don't, today, think "high tech" when we see a heavy plow, or a bridle joint, or an arch. or, say, metal. the SW universe has had spaceflight for longer than humanity has had metal, so it's not "sci fi", it's just part of the background.