From 9073f0d17636178e03823306af0309038eb1e95f Mon Sep 17 00:00:00 2001 From: Timothy Middelkoop Date: Wed, 10 Nov 2021 20:55:36 +0000 Subject: [PATCH] Move CLASS-Examples to ~ to remove from content folder --- content/GCP/.gitignore | 1 - content/GCP/06_running_analysis.ipynb | 24 ++++++++++-------------- content/GCP/scripts/clean.sh | 7 ------- scripts/gcp-clean.sh | 9 +++++++++ scripts/gcp-vm-clean.sh | 10 ++++++++++ 5 files changed, 29 insertions(+), 22 deletions(-) delete mode 100644 content/GCP/.gitignore delete mode 100755 content/GCP/scripts/clean.sh create mode 100644 scripts/gcp-clean.sh create mode 100755 scripts/gcp-vm-clean.sh diff --git a/content/GCP/.gitignore b/content/GCP/.gitignore deleted file mode 100644 index f71307d..0000000 --- a/content/GCP/.gitignore +++ /dev/null @@ -1 +0,0 @@ -CLASS-Examples/ diff --git a/content/GCP/06_running_analysis.ipynb b/content/GCP/06_running_analysis.ipynb index dbf07c7..56531e2 100644 --- a/content/GCP/06_running_analysis.ipynb +++ b/content/GCP/06_running_analysis.ipynb @@ -92,7 +92,7 @@ "Need to get 0 B/5633 kB of archives.\n", "After this operation, 36.2 MB of additional disk space will be used.\n", "Selecting previously unselected package git.\n", - "(Reading database ... 55447 files and directories currently installed.)\n", + "(Reading database ... 56121 files and directories currently installed.)\n", "Preparing to unpack .../git_1%3a2.20.1-2+deb10u3_amd64.deb ...\n", "Unpacking git (1:2.20.1-2+deb10u3) ...\n", "Setting up git (1:2.20.1-2+deb10u3) ...\n" @@ -123,6 +123,7 @@ } ], "source": [ + "cd ~\n", "git clone https://github.internet2.edu/CLASS/CLASS-Examples.git" ] }, @@ -147,12 +148,12 @@ "output_type": "stream", "text": [ "total 24\n", - "-rw-r--r-- 1 learner learner 841 Nov 10 18:06 ReadMe.md\n", - "-rw-r--r-- 1 learner learner 72 Nov 10 18:06 clean.sh\n", - "-rw-r--r-- 1 learner learner 256 Nov 10 18:06 download.sh\n", - "-rw-r--r-- 1 learner learner 314 Nov 10 18:06 get-index.sh\n", - "-rw-r--r-- 1 learner learner 110 Nov 10 18:06 search.json\n", - "-rw-r--r-- 1 learner learner 1447 Nov 10 18:06 search.py\n" + "-rw-r--r-- 1 learner learner 841 Nov 10 20:50 ReadMe.md\n", + "-rw-r--r-- 1 learner learner 72 Nov 10 20:50 clean.sh\n", + "-rw-r--r-- 1 learner learner 256 Nov 10 20:50 download.sh\n", + "-rw-r--r-- 1 learner learner 314 Nov 10 20:50 get-index.sh\n", + "-rw-r--r-- 1 learner learner 110 Nov 10 20:50 search.json\n", + "-rw-r--r-- 1 learner learner 1447 Nov 10 20:50 search.py\n" ] } ], @@ -236,12 +237,7 @@ "output_type": "stream", "text": [ "Copying gs://gcp-public-data-landsat/index.csv.gz...\n", - "==> NOTE: You are downloading one or more large file(s), which would \n", - "run significantly faster if you enabled sliced object downloads. This\n", - "feature is enabled by default but requires that compiled crcmod be\n", - "installed (see \"gsutil help crcmod\").\n", - "\n", - "\\ [1 files][757.2 MiB/757.2 MiB] \n", + "/ [1 files][757.2 MiB/757.2 MiB] 59.4 MiB/s \n", "Operation completed over 1 objects/757.2 MiB. \n" ] } @@ -271,7 +267,7 @@ "output_type": "stream", "text": [ "total 2.6G\n", - "-rw-r--r-- 1 learner learner 2.6G Nov 10 18:06 index.csv\n" + "-rw-r--r-- 1 learner learner 2.6G Nov 10 20:50 index.csv\n" ] } ], diff --git a/content/GCP/scripts/clean.sh b/content/GCP/scripts/clean.sh deleted file mode 100755 index 454a326..0000000 --- a/content/GCP/scripts/clean.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -echo "=== clean.sh" - -## Cleanup for 06_running_analysis -sudo apt remove git -rm -rf ./CLASS-Examples diff --git a/scripts/gcp-clean.sh b/scripts/gcp-clean.sh new file mode 100644 index 0000000..e80f14d --- /dev/null +++ b/scripts/gcp-clean.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +## Clean VM in prep for (re)running VM work + +echo "=== gcp-clean-vm.sh" + +## Cleanup for 06_running_analysis +sudo apt remove --yes git +rm -rf ~/CLASS-Examples diff --git a/scripts/gcp-vm-clean.sh b/scripts/gcp-vm-clean.sh new file mode 100755 index 0000000..e4ec2bb --- /dev/null +++ b/scripts/gcp-vm-clean.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +## Clean VM in prep for (re)running VM work + +echo "=== gcp-clean-vm.sh" + +## Cleanup for 06_running_analysis +sudo apt remove git +rm -rf ~/CLASS-Examples +