Skip to content

Instantly share code, notes, and snippets.

@landge
landge / pediatric_neuroradiology.md
Last active May 5, 2023 09:14
Pediatric_Neuroradiology

Neuroimaging of trisomy 9

Review article of clinical and neuroimaging features of trisomy 9 mosaic syndrome. Trisomy 9 mosaic

Host * ServerAliveInterval 60

Jump host

Host proxy HostName nrec-proxy User till

MS 1

@landge
landge / hso_soknad.md
Last active May 5, 2023 08:48
HSØ_søknad

HSØ søknad

Forskningsplattformen

@landge
landge / datalad_setup.md
Last active May 23, 2023 07:27
Datalad Setup

Datalad setup

Main directory

Main datalad directory is located on ms1.local

/home/till/NorCOAST_Datalad/NorCOAST_Imaging_Dataset

Configured remotes on ms1

Command to show all remotes (called siblings in datalad)

datalad siblings -> local, nrec-dcm-box, ms3 (apparently not correctly synced)
@landge
landge / VSCode_setup.md
Last active April 14, 2023 12:43
VSCode setup

VSCode setup

Jump host

Host proxy Hostname nrec-proxy User Till

MS 1

Host ms1 Hostname 127.0.0.1 Port 652548

services:
codeserver:
image: codercom/code-server:latest
container_name: codeserver
ports:
- "7777:8080"
volumes:
- /home/landge/.config:/home/coder/.config
- /home/landge/VSCODE:/home/coder/project
- /home/landge/.local/share/code-server:/home/coder/.local/share/code-server
@landge
landge / rename.py
Created March 9, 2020 14:49
Rename files in current and subdirectories!
import pathlib
def main():
path = pathlib.Path.cwd()
for i in path.glob('**/*'):
if ' ' in i.name:
print(i,i.name)
new_name = i.parent / i.name.replace(' ','_')
i.rename(new_name)