-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpostBuild
More file actions
23 lines (22 loc) · 1.06 KB
/
postBuild
File metadata and controls
23 lines (22 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
git config --global --add user.name "DEMON BINDER"
git config --global --add user.email "demon_imaging@example.com"
mkdir -p ~/.local/src
cd ~/.local/src
git clone https://github.com/KCL-BMEIS/niftyreg.git
mkdir niftyreg-build
cmake -DCMAKE_INSTALL_PREFIX:PATH=~/.local -DCMAKE_BUILD_TYPE=Release -S ./niftyreg -B ./niftyreg-build
cd niftyreg-build
make
make install
cd
curl -O https://downloads.rclone.org/v1.56.0/rclone-v1.56.0-linux-amd64.zip
unzip rclone-v1.56.0-linux-amd64.zip
cp rclone-v1.56.0-linux-amd64/rclone ~/.local/bin
rm -rf rclone-v1.56.0-linux-amd64*
fileid=1hPFtjFnFq0jWYXNl5ZGJwqqBjIuX6Oy2
RCLONE_CONFIG_FILE=`rclone config file| cut -d: -f2`
curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null
curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${RCLONE_CONFIG_FILE}
# Clear outputs of notebooks
cd
for i in *ipynb; do echo $i; jupyter nbconvert $i --to notebook --ClearOutputPreprocessor.enabled=True --stdout > new_$i; mv new_$i $i; done