Prerequisites

  • Make sure bash kernel is installed
  • Change notebook to bash

Example of cloning directory using bash below, notice how it says that the directory already exists

echo "Using conditional statement to create a project directory and project"

# Variable section
export project_dir=$HOME/vscode  # change vscode to different name to test git clone
export project=$project_dir/APCSA  # change APCSP to name of project from git clone
export project_repo="https://github.com/nighthawkcoders/APCSA.git"  # change to project of choice

cd ~    # start in home directory

# Conditional block to make a project directory
if [ ! -d $project_dir ]
then 
    echo "Directory $project_dir does not exists... makinng directory $project_dir"
    mkdir -p $project_dir
fi
echo "Directory $project_dir exists." 

# Conditional block to git clone a project from project_repo
if [ ! -d $project ]
then
    echo "Directory $project does not exists... cloning $project_repo"
    cd $project_dir
    git clone $project_repo
    cd ~
fi
echo "Directory $project exists."
Using conditional statement to create a project directory and project
Directory /home/dtsivkovski/vscode exists.
Directory /home/dtsivkovski/vscode/APCSA exists.

Commands

  • ls - lists computer files
  • cd - change working directory
  • pwd - print working directory
  • echo - display line of text/string

Below code shows an example of all these commands.

echo "Navigate to project, then navigate to area wwhere files were cloned"
cd $project
pwd

echo ""
echo "list top level or root of files with project pulled from github"
ls

echo ""
echo "list again with hidden files pulled from github"
ls -a   # hidden files flag, many shell commands have flags

echo ""
echo "list all files in long format"
ls -al   # all files and long listing


echo "Look for posts"
export posts=$project/_posts  # _posts inside project
cd $posts  # this should exist per fastpages
pwd  # present working directory
ls -l  # list posts


echo "Look for notebooks"
export notebooks=$project/_notebooks  # _notebooks is inside project
cd $notebooks   # this should exist per fastpages
pwd  # present working directory
ls -l  # list notebooks


echo "Look for images in notebooks, print working directory, list files"
cd $notebooks/images  # this should exist per fastpages
pwd
ls -l

echo "Navigate to project, then navigate to area wwhere files were cloned"

cd $project
echo "show the contents of README.md"
echo ""

cat README.md  # show contents of file, in this case markdown
echo ""
echo "end of README.md"
Navigate to project, then navigate to area wwhere files were cloned
/home/dtsivkovski/vscode/APCSA

list top level or root of files with project pulled from github
Gemfile    _action_files    _layouts    _posts  docker-compose.yml
LICENSE    _config.yml      _notebooks  _sass   images
Makefile   _fastpages_docs  _pages      _word   index.html
README.md  _includes        _plugins    assets

list again with hidden files pulled from github
.                   .gitignore  _action_files    _pages    docker-compose.yml
..                  .vscode     _config.yml      _plugins  images
.devcontainer.json  Gemfile     _fastpages_docs  _posts    index.html
.git                LICENSE     _includes        _sass
.gitattributes      Makefile    _layouts         _word
.github             README.md   _notebooks       assets

list all files in long format
total 116
drwxr-xr-x 17 dtsivkovski dtsivkovski  4096 Aug 25 08:52 .
drwxr-xr-x  7 dtsivkovski dtsivkovski  4096 Aug 25 08:51 ..
-rw-r--r--  1 dtsivkovski dtsivkovski   420 Aug 25 08:52 .devcontainer.json
drwxr-xr-x  8 dtsivkovski dtsivkovski  4096 Aug 25 08:52 .git
-rw-r--r--  1 dtsivkovski dtsivkovski    84 Aug 25 08:52 .gitattributes
drwxr-xr-x  4 dtsivkovski dtsivkovski  4096 Aug 25 08:52 .github
-rw-r--r--  1 dtsivkovski dtsivkovski   917 Aug 25 08:52 .gitignore
drwxr-xr-x  2 dtsivkovski dtsivkovski  4096 Aug 25 08:52 .vscode
-rwxr-xr-x  1 dtsivkovski dtsivkovski  1304 Aug 25 08:52 Gemfile
-rw-r--r--  1 dtsivkovski dtsivkovski 11351 Aug 25 08:52 LICENSE
-rwxr-xr-x  1 dtsivkovski dtsivkovski  1422 Aug 25 08:52 Makefile
-rwxr-xr-x  1 dtsivkovski dtsivkovski  3614 Aug 25 08:52 README.md
drwxr-xr-x  2 dtsivkovski dtsivkovski  4096 Aug 25 08:52 _action_files
-rw-r--r--  1 dtsivkovski dtsivkovski  3690 Aug 25 08:52 _config.yml
drwxr-xr-x  2 dtsivkovski dtsivkovski  4096 Aug 25 08:52 _fastpages_docs
drwxr-xr-x  2 dtsivkovski dtsivkovski  4096 Aug 25 08:52 _includes
drwxr-xr-x  2 dtsivkovski dtsivkovski  4096 Aug 25 08:52 _layouts
drwxr-xr-x  3 dtsivkovski dtsivkovski  4096 Aug 25 08:52 _notebooks
drwxr-xr-x  2 dtsivkovski dtsivkovski  4096 Aug 25 08:52 _pages
drwxr-xr-x  2 dtsivkovski dtsivkovski  4096 Aug 25 08:52 _plugins
drwxr-xr-x  2 dtsivkovski dtsivkovski  4096 Aug 25 08:52 _posts
drwxr-xr-x  3 dtsivkovski dtsivkovski  4096 Aug 25 08:52 _sass
drwxr-xr-x  2 dtsivkovski dtsivkovski  4096 Aug 25 08:52 _word
drwxr-xr-x  4 dtsivkovski dtsivkovski  4096 Aug 25 08:52 assets
-rwxr-xr-x  1 dtsivkovski dtsivkovski  1136 Aug 25 08:52 docker-compose.yml
drwxr-xr-x  4 dtsivkovski dtsivkovski  4096 Aug 25 08:52 images
-rw-r--r--  1 dtsivkovski dtsivkovski  1030 Aug 25 08:52 index.html
Look for posts
/home/dtsivkovski/vscode/APCSA/_posts
total 212
-rw-r--r-- 1 dtsivkovski dtsivkovski 10891 Aug 25 08:52 2022-06-01-TT150-spring_thymeleaf.md
-rw-r--r-- 1 dtsivkovski dtsivkovski  4496 Aug 25 08:52 2022-06-14-TR200-historical_calendar.md
-rw-r--r-- 1 dtsivkovski dtsivkovski  5232 Aug 25 08:52 2022-06-14-TR300-historical_calendar.md
-rw-r--r-- 1 dtsivkovski dtsivkovski  5861 Aug 25 08:52 2022-07-07-PBL-FE-binary.md
-rw-r--r-- 1 dtsivkovski dtsivkovski  3085 Aug 25 08:52 2022-07-08-PBL-FE-grade_calc.md
-rw-r--r-- 1 dtsivkovski dtsivkovski  3698 Aug 25 08:52 2022-07-08-PBL-FE-graph.md
-rw-r--r-- 1 dtsivkovski dtsivkovski  5729 Aug 25 08:52 2022-07-08-PBL-FE-life.md
-rw-r--r-- 1 dtsivkovski dtsivkovski 14387 Aug 25 08:52 2022-07-08-PBL-FE-snake.md
-rw-r--r-- 1 dtsivkovski dtsivkovski  4049 Aug 25 08:52 2022-07-10-PBL-covid19.md
-rw-r--r-- 1 dtsivkovski dtsivkovski   484 Aug 25 08:52 2022-07-10-PBL-database.md
-rw-r--r-- 1 dtsivkovski dtsivkovski  2981 Aug 25 08:52 2022-07-10-PBL-jokes.md
-rw-r--r-- 1 dtsivkovski dtsivkovski  6670 Aug 25 08:52 2022-07-19-PBL-calculator.md
-rw-r--r-- 1 dtsivkovski dtsivkovski  3890 Aug 25 08:52 2022-07-29-workshop.md
-rw-r--r-- 1 dtsivkovski dtsivkovski  3193 Aug 25 08:52 2022-08-15-TP100-college_board_history.md
-rw-r--r-- 1 dtsivkovski dtsivkovski  8042 Aug 25 08:52 2022-08-15-TR100-introduction.md
-rw-r--r-- 1 dtsivkovski dtsivkovski 17148 Aug 25 08:52 2022-08-15-TT100-tools.md
-rw-r--r-- 1 dtsivkovski dtsivkovski  5590 Aug 25 08:52 2022-08-15-TT101-vscode-wsl.md
-rw-r--r-- 1 dtsivkovski dtsivkovski  1937 Aug 25 08:52 2022-08-22-TR110-pair_innovation.md
-rw-r--r-- 1 dtsivkovski dtsivkovski 10592 Aug 25 08:52 2022-08-22-TT110-agile.md
-rw-r--r-- 1 dtsivkovski dtsivkovski  5116 Aug 25 08:52 2022-08-22-TT110-fastpages.md
-rw-r--r-- 1 dtsivkovski dtsivkovski  1498 Aug 25 08:52 2022-08-29-TR120-team_innovation.md
-rw-r--r-- 1 dtsivkovski dtsivkovski  2941 Aug 25 08:52 2022-08-29-TT120-focus.md
-rw-r--r-- 1 dtsivkovski dtsivkovski  1100 Aug 25 08:52 2022-09-05-TR130-creative_development.md
-rw-r--r-- 1 dtsivkovski dtsivkovski 19946 Aug 25 08:52 2022-09-05-TT130-deploy.md
-rw-r--r-- 1 dtsivkovski dtsivkovski  3182 Aug 25 08:52 2022-09-05-TT130-spring_boot.md
-rw-r--r-- 1 dtsivkovski dtsivkovski   720 Aug 25 08:52 README.md
-rw-r--r-- 1 dtsivkovski dtsivkovski 13042 Aug 25 08:52 good_life.jpeg
Look for notebooks
/home/dtsivkovski/vscode/APCSA/_notebooks
total 204
-rw-r--r-- 1 dtsivkovski dtsivkovski 12616 Aug 25 08:52 2022-07-06-PBL-FE-js_tutorial.ipynb
-rw-r--r-- 1 dtsivkovski dtsivkovski  9544 Aug 25 08:52 2022-08-15-TP100-anatomy.ipynb
-rw-r--r-- 1 dtsivkovski dtsivkovski  6869 Aug 25 08:52 2022-08-15-TT000-windowsinstall.ipynb
-rw-r--r-- 1 dtsivkovski dtsivkovski 11774 Aug 25 08:52 2022-08-22-TP110-primitives.ipynb
-rw-r--r-- 1 dtsivkovski dtsivkovski 20003 Aug 25 08:52 2022-08-22-TT110-anthony_and_sahil.ipynb
-rw-r--r-- 1 dtsivkovski dtsivkovski  9525 Aug 25 08:52 2022-08-22-TT110-bash_tutorial.ipynb
-rw-r--r-- 1 dtsivkovski dtsivkovski 14564 Aug 25 08:52 2022-08-29-TP120-using_java_objects.ipynb
-rw-r--r-- 1 dtsivkovski dtsivkovski  4467 Aug 25 08:52 2022-09-05-TP130-boolean_ifs.ipynb
-rw-r--r-- 1 dtsivkovski dtsivkovski 91730 Aug 25 08:52 2022-09-05-TT130-rapidapi.ipynb
-rw-r--r-- 1 dtsivkovski dtsivkovski   771 Aug 25 08:52 README.md
drwxr-xr-x 2 dtsivkovski dtsivkovski  4096 Aug 25 08:52 images
Look for images in notebooks, print working directory, list files
/home/dtsivkovski/vscode/APCSA/_notebooks/images
total 1188
-rw-r--r-- 1 dtsivkovski dtsivkovski 211958 Aug 25 08:52 anaconda_search.png
-rw-r--r-- 1 dtsivkovski dtsivkovski 466122 Aug 25 08:52 code_org_painter.png
-rw-r--r-- 1 dtsivkovski dtsivkovski  20162 Aug 25 08:52 data_types.png
-rw-r--r-- 1 dtsivkovski dtsivkovski  19661 Aug 25 08:52 extensions_windows_install.png
-rw-r--r-- 1 dtsivkovski dtsivkovski 101617 Aug 25 08:52 kernels.png
-rw-r--r-- 1 dtsivkovski dtsivkovski  58141 Aug 25 08:52 move_jdk.png
-rw-r--r-- 1 dtsivkovski dtsivkovski 260250 Aug 25 08:52 switch_language.png
-rw-r--r-- 1 dtsivkovski dtsivkovski  69171 Aug 25 08:52 vs_code_site.png
Navigate to project, then navigate to area wwhere files were cloned
show the contents of README.md

[//]: # (This template replaces README.md when someone creates a new repo with the fastpages template.)

![](https://github.com/nighthawkcoders/APCSA/workflows/CI/badge.svg) 
![](https://github.com/nighthawkcoders/APCSA/workflows/GH-Pages%20Status/badge.svg) 
[![](https://img.shields.io/static/v1?label=fastai&message=fastpages&color=57aeac&labelColor=black&style=flat&logo=data:image/png;base64,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)](https://github.com/fastai/fastpages)

https://nighthawkcoders.github.io/APCSA/

# My Blog


_powered by [fastpages](https://github.com/fastai/fastpages)_


## What To Do Next?

Great!  You have setup your repo.  Now its time to start writing content.  Some helpful links:

- [Writing Blogs With Jupyter](https://github.com/fastai/fastpages#writing-blog-posts-with-jupyter)

- [Writing Blogs With Markdown](https://github.com/fastai/fastpages#writing-blog-posts-with-markdown)

- [Writing Blog Posts With Word](https://github.com/fastai/fastpages#writing-blog-posts-with-microsoft-word)

- [(Optional) Preview Your Blog Locally](_fastpages_docs/DEVELOPMENT.md)

Note: you may want to remove example blog posts from the `_posts`,  `_notebooks` or `_word` folders (but leave them empty, don't delete these folders) if you don't want these blog posts to appear on your site.

Please use the [nbdev & blogging channel](https://forums.fast.ai/c/fastai-users/nbdev/48) in the fastai forums for any questions or feature requests.

end of README.md

Env, Git, and Github

  • Env show shell setting
  • Git clone sets up directory
  • cd $project - go into that directory
  • .git hidden directory - establish relation to repo/server

Code below shows an example of this.

echo "Show the shell environment variables, key on left of equal value on right"
echo ""

env

cd $project

echo ""
echo "show the secrets of .git"
cd .git
ls -l

echo ""
echo "look at config file"
cat config
Show the shell environment variables, key on left of equal value on right

SHELL=/bin/bash
PYTHONUNBUFFERED=1
project=/home/dtsivkovski/vscode/APCSA
CONDA_EXE=/home/dtsivkovski/anaconda3/bin/conda
_CE_M=
APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL=1
WSL_DISTRO_NAME=Ubuntu
ELECTRON_RUN_AS_NODE=1
VSCODE_AMD_ENTRYPOINT=vs/workbench/api/node/extensionHostProcess
NAME=Code
PWD=/home/dtsivkovski/vscode/APCSA/_notebooks/images
LOGNAME=dtsivkovski
CONDA_PREFIX=/home/dtsivkovski/anaconda3
project_dir=/home/dtsivkovski/vscode
HOME=/home/dtsivkovski
LANG=C.UTF-8
WSL_INTEROP=/run/WSL/766_interop
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
CONDA_PROMPT_MODIFIER=(base) 
PYDEVD_USE_FRAME_EVAL=NO
posts=/home/dtsivkovski/vscode/APCSA/_posts
LESSCLOSE=/usr/bin/lesspipe %s %s
VSCODE_HANDLES_SIGPIPE=true
TERM=xterm-256color
_CE_CONDA=
LESSOPEN=| /usr/bin/lesspipe %s
USER=dtsivkovski
PYTHONIOENCODING=utf-8
notebooks=/home/dtsivkovski/vscode/APCSA/_notebooks
CONDA_SHLVL=1
SHLVL=2
PAGER=cat
project_repo=https://github.com/nighthawkcoders/APCSA.git
VSCODE_CWD=/mnt/c/Users/danie/AppData/Local/Programs/Microsoft VS Code
CONDA_PYTHON_EXE=/home/dtsivkovski/anaconda3/bin/python
PS1=[PEXP\[\]ECT_PROMPT>
CONDA_DEFAULT_ENV=base
WSLENV=ELECTRON_RUN_AS_NODE/w:
VSCODE_WSL_EXT_LOCATION=/mnt/c/Users/danie/.vscode/extensions/ms-vscode-remote.remote-wsl-0.66.3
XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop
PATH=/home/dtsivkovski/.vscode-server/bin/e4503b30fc78200f846c62cf8091b76ff5547662/bin/remote-cli:/home/dtsivkovski/.local/bin:/home/dtsivkovski/anaconda3/bin:/home/dtsivkovski/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program Files/WindowsApps/CanonicalGroupLimited.UbuntuonWindows_2004.2022.1.0_x64__79rhkp1fndgsc:/mnt/c/Program Files (x86)/Common Files/Oracle/Java/javapath:/mnt/c/windows/system32:/mnt/c/windows:/mnt/c/windows/System32/Wbem:/mnt/c/windows/System32/WindowsPowerShell/v1.0:/mnt/c/windows/System32/OpenSSH:/mnt/c/Program Files/Git/cmd:/mnt/c/Users/danie/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/danie/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/danie/AppData/Local/Google/Cloud SDK/google-cloud-sdk/bin:/snap/bin
VSCODE_NLS_CONFIG={"locale":"en","availableLanguages":{}}
HOSTTYPE=x86_64
VSCODE_HANDLES_UNCAUGHT_ERRORS=true
OLDPWD=/home/dtsivkovski/vscode/APCSA/_notebooks
VSCODE_IPC_HOOK_CLI=/tmp/vscode-ipc-a7e052c6-6cb4-4acc-b366-24008adfa3e9.sock
_=/usr/bin/env

show the secrets of .git
total 60
-rw-r--r-- 1 dtsivkovski dtsivkovski    23 Aug 25 08:52 HEAD
drwxr-xr-x 2 dtsivkovski dtsivkovski  4096 Aug 25 08:51 branches
-rw-r--r-- 1 dtsivkovski dtsivkovski   269 Aug 25 08:52 config
-rw-r--r-- 1 dtsivkovski dtsivkovski    73 Aug 25 08:51 description
drwxr-xr-x 2 dtsivkovski dtsivkovski  4096 Aug 25 08:51 hooks
-rw-r--r-- 1 dtsivkovski dtsivkovski 20422 Aug 25 08:52 index
drwxr-xr-x 2 dtsivkovski dtsivkovski  4096 Aug 25 08:51 info
drwxr-xr-x 3 dtsivkovski dtsivkovski  4096 Aug 25 08:52 logs
drwxr-xr-x 4 dtsivkovski dtsivkovski  4096 Aug 25 08:51 objects
-rw-r--r-- 1 dtsivkovski dtsivkovski   271 Aug 25 08:52 packed-refs
drwxr-xr-x 5 dtsivkovski dtsivkovski  4096 Aug 25 08:52 refs

look at config file
[core]
	repositoryformatversion = 0
	filemode = true
	bare = false
	logallrefupdates = true
[remote "origin"]
	url = https://github.com/nighthawkcoders/APCSA.git
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
	remote = origin
	merge = refs/heads/master

Hacks

cd $project
echo "Updating the repository..."
git pull
Updating the repository...
Already up to date.
echo "------------------------------"
echo "Conda check for python modules"
echo "------------------------------"
test="python" # searching for python files
check=`conda list | grep $test` # run command
n=${#check} # determine length of returned list

if [[ ${n} > 0 ]]; 
then # list size greater than zero
    echo "$check"
else 
    echo "$test not found"
fi
------------------------------
Conda check for python modules
------------------------------
ipython                   8.2.0            py39h06a4308_0  
ipython_genutils          0.2.0              pyhd3eb1b0_1  
msgpack-python            1.0.2            py39hff7bd54_1  
python                    3.9.12               h12debd9_0  
python-dateutil           2.8.2              pyhd3eb1b0_0  
python-fastjsonschema     2.15.1             pyhd3eb1b0_0  
python-libarchive-c       2.9                pyhd3eb1b0_1  
python-lsp-black          1.0.0              pyhd3eb1b0_0  
python-lsp-jsonrpc        1.0.0              pyhd3eb1b0_0  
python-lsp-server         1.2.4              pyhd3eb1b0_0  
python-slugify            5.0.2              pyhd3eb1b0_0  
python-snappy             0.6.0            py39h2531618_3  
echo "----------------------------------"
echo "Testing for installed java kernels"
echo "----------------------------------"
test="java" # java keyword for test
check=`jupyter kernelspec list | grep $test` # run command
n=${#check} # determine length

if [[ ${n} > 0 ]];  # if statement for length
then 
    echo "$check"
else # length <0
    echo "$test not found"
fi
----------------------------------
Testing for installed java kernels
----------------------------------
  java          /home/dtsivkovski/.local/share/jupyter/kernels/java
  javascript    /home/dtsivkovski/.local/share/jupyter/kernels/javascript