Computers and Terminals

A brief overview of Terminal and Linux is a step on your way to becoming a Linux expert. When a computer boots up, a kernel (MacOS, Windows, Linux) is started. This kernel is the core of the operating system and manages hardware resources. Above the kernel, various applications run, including the shell and terminal, which allow users to interact with the system using a basic set of commands provided by the kernel.

Typically, casual users interact with the system through a Desktop User Interface (UI) that is started by the computer’s boot-up processes. However, to interact directly with the shell, users can run a “terminal” application through the Desktop UI. Additionally, VS Code provides the ability to activate a “terminal” within its editing environment, making it convenient for developers to execute commands without leaving the code editor.

In this next phase, we will use a Jupyter notebook to perform Linux commands through a terminal. The Jupyter notebook is an application that runs above the kernel, providing an interactive environment for writing and executing code, including shell commands. This setup allows us to seamlessly integrate code execution, data analysis, and documentation in one place, enhancing our productivity and learning experience.

Setup a Personal GitHub Pages Project

You will be making a personal copy of the course repository. Be sure to have a GitHub account!!!

  • Use the Green “Use this Template” button on the portfolio_2025 repository page to set up your personal GitHub Pages repository.
  • Create a new repository.
  • Fill in the dialog and select the Repository Name to be under your GitHub ID ownership.

    create repo

  • After this is complete, use the Green “Code” button on the newly created repository page to capture your “Project Repo” name.

In the next few code cells, we will run a bash (shell) script to pull a GitHub project.

Shell Script and Variables

We will ultimately run a bash (shell) script to pull a GitHub project. This next script simply sets up the necessary environment variables to tell the script the location of repository from GitHub and where to copy the output.

For now, focus on each line that begins with export. These are shell variables. Each line has a name (after the keyword export) and a value (after the equal sign).

Here is a full description:

  • Creates a temporary file /tmp/variables.sh to store environment variables.
  • Sets the project_dir variable to your home directory with a subdirectory named nighthawk. You can change nighthawk to a different name to test your git clone.
  • Sets the project variable to a subdirectory within project_dir named portfolio_2025. You can change portfolio_2025 to the name of your project.
  • Sets the project_repo variable to the URL of the GitHub repository. Change this to the project you created from the portfolio_2025 template.

By running this script, you will prepare your environment for cloning and working on your GitHub project. This is an essential step in setting up your development environment and ensuring that all dependencies are correctly configured.

%%script bash

# Dependency Variables, set to match your project directories

cat <<EOF > /tmp/variables.sh
export project_dir=$HOME/vscode  # change nighthawk to different name to test your git clone
export project=\$project_dir/arthur_2025  # change portfolio_2025 to name of project from git clone
export project_repo="https://github.com/nighthawkcoders/arthur_2025.git"  # change to project you created from portfolio_2025 template 
EOF

Describing the Outputs of the Variables

The next script will extract the saved variables and display their values. Here is a description of the commands:

  • The source command loads the variables that we saved in the /tmp/variables.sh file in the previous code cell.
  • The echo commands display the contents of the named variables:
    • project_dir: The directory where your project is located.
    • project: The specific project directory within project_dir.
    • project_repo: The URL of the GitHub repository.

By running this script, you can verify that the environment variables are correctly set in your development environment. If they don’t match up, go back to the previous code cell and make the necessary corrections.

%%script bash

# Extract saved variables
source /tmp/variables.sh

# Output shown title and value variables
echo "Project dir: $project_dir"
echo "Project: $project"
echo "Repo: $project_repo"
Project dir: /home/dino596/vscode
Project: /home/dino596/vscode/arthur_2025
Repo: https://github.com/nighthawkcoders/arthur_2025.git

Project Setup and Analysis with Bash Scripts

The bash scripts that follow automate what was done in the Tools Installation procedures with regards to cloning a GitHub project. Doing this in a script fashion adds the following benefits:

  • After completing these steps, we will have notes on how to set up and verify a project.
  • By reviewing these commands, you will start to learn the basics of Linux.
  • By setting up these code cells, you will be learning how to develop automated scripts using Shell programming.
  • You will learn that pretty much anything we type on a computer can be automated through the use of variables and a coding language.

Pull Code

Pull code from GitHub to your machine. This is a bash script, a sequence of commands, that will create a project directory and add the “project” from GitHub to the vscode directory. There is conditional logic to make sure that the clone only happens if it does not (!) exist. Here are some key elements in this code:

  • cd command (change directory), remember this from the terminal session.
  • if statements (conditional statements, called selection statements by College Board), code inside only happens if the condition is met.

Run the script two times and you will see that the output changes. In the second run, the files exist and it impact the flow of the code.

%%script bash

# Extract saved variables
source /tmp/variables.sh

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

cd ~    # start in home directory

# Conditional block to make a project directory
if [ ! -d $project_dir ]
then 
    echo "Directory $project_dir does not exist... making 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 exist... 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/dino596/vscode exists.
Directory /home/dino596/vscode/arthur_2025 exists.

Look at Files in GitHub Project

All computers contain files and directories. The clone brought more files from the cloud to your machine. Review the bash shell script, observe the commands that show and interact with files and directories. These were used during setup.

  • ls lists computer files in Unix and Unix-like operating systems.
  • cd offers a way to navigate and change the working directory.
  • pwd prints the working directory.
  • echo is used to display a line of text/string that is passed as an argument.
%%script bash

# Extract saved variables
source /tmp/variables.sh

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

Navigate to project, then navigate to area wwhere files were cloned
/home/dino596/vscode/arthur_2025

list top level or root of files with project pulled from github
404.html
Gemfile
Gemfile.lock
LICENSE
Makefile
README.md
README4YML.md
_config.yml
_data
_includes
_layouts
_notebooks
_posts
_sass
assets
design
images
index.md
kasm_design
navigation
node_backend
requirements.txt
scripts
venv

Look at File List with Hidden and Long Attributes

Most Linux commands have options to enhance behavior. The enhanced listing below shows permission bits, owner of the file, size, and date.

Some useful ls flags:

  • -a: List all files including hidden files.
  • -l: List in long format.
  • -h: Human-readable file sizes.
  • -t: Sort by modification time.
  • -R: Reverse the order of the sort.

ls reference

%%script bash

# Extract saved variables
source /tmp/variables.sh

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

echo ""
echo "list all files in long format"
ls -al   # all files -a (hidden) in -l long listing
Navigate to project, then navigate to area wwhere files were cloned
/home/dino596/vscode/arthur_2025

list all files in long format
total 152
drwxr-xr-x 19 dino596 dino596  4096 Aug 28 15:23 .
drwxr-xr-x  5 dino596 dino596  4096 Aug 28 14:35 ..
drwxr-xr-x  8 dino596 dino596  4096 Aug 28 15:19 .git
drwxr-xr-x  3 dino596 dino596  4096 Aug 28 14:35 .github
-rw-r--r--  1 dino596 dino596   251 Aug 28 14:35 .gitignore
drwxr-xr-x  2 dino596 dino596  4096 Aug 28 14:35 .vscode
-rw-r--r--  1 dino596 dino596   436 Aug 28 14:35 404.html
-rw-r--r--  1 dino596 dino596   122 Aug 28 14:35 Gemfile
-rw-r--r--  1 dino596 dino596  7798 Aug 28 15:23 Gemfile.lock
-rw-r--r--  1 dino596 dino596 11357 Aug 28 14:35 LICENSE
-rw-r--r--  1 dino596 dino596  3548 Aug 28 14:36 Makefile
-rw-r--r--  1 dino596 dino596 14185 Aug 28 14:35 README.md
-rw-r--r--  1 dino596 dino596    79 Aug 28 14:35 README4YML.md
-rw-r--r--  1 dino596 dino596   821 Aug 28 14:36 _config.yml
drwxr-xr-x  2 dino596 dino596  4096 Aug 28 14:35 _data
drwxr-xr-x  4 dino596 dino596  4096 Aug 28 14:35 _includes
drwxr-xr-x  2 dino596 dino596  4096 Aug 28 14:35 _layouts
drwxr-xr-x  6 dino596 dino596  4096 Aug 28 14:35 _notebooks
drwxr-xr-x  3 dino596 dino596  4096 Aug 28 14:35 _posts
drwxr-xr-x  5 dino596 dino596  4096 Aug 28 14:35 _sass
drwxr-xr-x  6 dino596 dino596  4096 Aug 28 14:35 assets
drwxr-xr-x  3 dino596 dino596  4096 Aug 28 14:35 design
drwxr-xr-x 10 dino596 dino596  4096 Aug 28 14:35 images
-rw-r--r--  1 dino596 dino596 11586 Aug 28 14:35 index.md
drwxr-xr-x  4 dino596 dino596  4096 Aug 28 14:35 kasm_design
drwxr-xr-x  4 dino596 dino596  4096 Aug 28 14:35 navigation
drwxr-xr-x  2 dino596 dino596  4096 Aug 28 14:35 node_backend
-rw-r--r--  1 dino596 dino596    57 Aug 28 14:35 requirements.txt
drwxr-xr-x  2 dino596 dino596  4096 Aug 28 14:35 scripts
drwxr-xr-x  7 dino596 dino596  4096 Aug 28 15:23 venv
%%script bash

# Extract saved variables
source /tmp/variables.sh

echo "Look for posts"
export posts=$project/_posts  # _posts inside project
cd $posts  # this should exist per fastpages
pwd  # present working directory
ls -lR  # list posts recursively
Look for posts
/home/dino596/vscode/arthur_2025/_posts
.:
total 124
-rw-r--r-- 1 dino596 dino596  4326 Aug 28 14:35 2023-08-21-python_flask.md
-rw-r--r-- 1 dino596 dino596 11347 Aug 28 14:35 2023-08-30-agile_methodolgy.md
-rw-r--r-- 1 dino596 dino596  6265 Aug 28 14:35 2023-08-31-javascript_project-binary-calculator.md
-rw-r--r-- 1 dino596 dino596  6712 Aug 28 14:35 2023-08-31-javascript_project-calculator.md
-rw-r--r-- 1 dino596 dino596  5707 Aug 28 14:35 2023-08-31-javascript_project-game-of-life.md
-rw-r--r-- 1 dino596 dino596  3811 Aug 28 14:35 2023-08-31-javascript_project-music-api.md
-rw-r--r-- 1 dino596 dino596 14282 Aug 28 14:35 2023-08-31-javascript_project-snake-game.md
-rw-r--r-- 1 dino596 dino596  3683 Aug 28 14:35 2023-09-12-python-flask-repo.md
-rw-r--r-- 1 dino596 dino596 48002 Aug 28 14:35 2023-10-03-java-types-student-2.ipynb
-rw-r--r-- 1 dino596 dino596  2698 Aug 28 14:35 2024-07-11-GPTchatbot.md
drwxr-xr-x 4 dino596 dino596  4096 Aug 28 14:35 Kasm

./Kasm:
total 8
drwxr-xr-x 2 dino596 dino596 4096 Aug 28 14:35 Config_Guides
drwxr-xr-x 2 dino596 dino596 4096 Aug 28 14:35 MultiServer

./Kasm/Config_Guides:
total 4
-rw-r--r-- 1 dino596 dino596 3167 Aug 28 14:35 2024-07-12-terraform-vs-ansible.md

./Kasm/MultiServer:
total 80
-rw-r--r-- 1 dino596 dino596 55630 Aug 28 14:35 2024-07-12-multiserver-development.md
-rw-r--r-- 1 dino596 dino596 21730 Aug 28 14:35 2024-07-12-multiserver-install.md
%%script bash

# Extract saved variables
source /tmp/variables.sh

echo "Look for notebooks"
export notebooks=$project/_notebooks  # _notebooks is inside project
cd $notebooks   # this should exist per fastpages
pwd  # present working directory
ls -lR  # list notebooks recursively
Look for notebooks
/home/dino596/vscode/arthur_2025/_notebooks
.:
total 28
-rw-r--r-- 1 dino596 dino596 10436 Aug 28 14:35 2023-08-23-jupyter-notebook-python.ipynb
drwxr-xr-x 8 dino596 dino596  4096 Aug 28 14:35 CSA
drwxr-xr-x 4 dino596 dino596  4096 Aug 28 14:35 CSP
drwxr-xr-x 8 dino596 dino596  4096 Aug 28 14:35 Foundation
drwxr-xr-x 6 dino596 dino596  4096 Aug 28 14:35 KASM

./CSA:
total 24
drwxr-xr-x 2 dino596 dino596 4096 Aug 28 14:35 chatgpt
drwxr-xr-x 2 dino596 dino596 4096 Aug 28 14:35 fullstack_java
drwxr-xr-x 2 dino596 dino596 4096 Aug 28 14:35 spring
drwxr-xr-x 3 dino596 dino596 4096 Aug 28 14:35 units_1_to_10
drwxr-xr-x 2 dino596 dino596 4096 Aug 28 14:35 units_1_to_10_examples
drwxr-xr-x 2 dino596 dino596 4096 Aug 28 14:35 units_1_to_10_quiz

./CSA/chatgpt:
total 20
-rw-r--r-- 1 dino596 dino596 6512 Aug 28 14:35 2024-07-16-chatgpt-code.ipynb
-rw-r--r-- 1 dino596 dino596 8992 Aug 28 14:35 2024-07-16-chatgpt-intro.ipynb

./CSA/fullstack_java:
total 44
-rw-r--r-- 1 dino596 dino596  4384 Aug 28 14:35 2024-07-21-Fullstack-intro.ipynb
-rw-r--r-- 1 dino596 dino596 12072 Aug 28 14:35 2024-07-22-Fullstack-backend.ipynb
-rw-r--r-- 1 dino596 dino596  2909 Aug 28 14:35 2024-07-22-Fullstack-design.ipynb
-rw-r--r-- 1 dino596 dino596  8853 Aug 28 14:35 2024-07-22-Fullstack-example.ipynb
-rw-r--r-- 1 dino596 dino596  4621 Aug 28 14:35 2024-07-22-Fullstack-frontend.ipynb

./CSA/spring:
total 16
-rw-r--r-- 1 dino596 dino596 13812 Aug 28 14:35 2023-10-02-java-spring-anatomy.ipynb

./CSA/units_1_to_10:
total 248
-rw-r--r-- 1 dino596 dino596 13973 Aug 28 14:35 2024-06-24-unit_2.ipynb
-rw-r--r-- 1 dino596 dino596 17230 Aug 28 14:35 2024-06-24-unit_3.ipynb
-rw-r--r-- 1 dino596 dino596 11517 Aug 28 14:35 2024-06-24-unit_4.ipynb
-rw-r--r-- 1 dino596 dino596 17743 Aug 28 14:35 2024-06-24-unit_5.ipynb
-rw-r--r-- 1 dino596 dino596 31117 Aug 28 14:35 2024-06-24-unit_6.ipynb
-rw-r--r-- 1 dino596 dino596 42237 Aug 28 14:35 2024-06-29-unit_7.ipynb
-rw-r--r-- 1 dino596 dino596 42641 Aug 28 14:35 2024-07-02-unit_8.ipynb
-rw-r--r-- 1 dino596 dino596 55677 Aug 28 14:35 2024-07-08-unit_9.ipynb
drwxr-xr-x 2 dino596 dino596  4096 Aug 28 14:35 unit_01

./CSA/units_1_to_10/unit_01:
total 60
-rw-r--r-- 1 dino596 dino596 14270 Aug 28 14:35 2023-10-03-java-types-student-1.ipynb
-rw-r--r-- 1 dino596 dino596  2172 Aug 28 14:35 2024-06-23-unit_1._intro.ipynb
-rw-r--r-- 1 dino596 dino596  5162 Aug 28 14:35 2024-06-24-unit_1_primatives.ipynb
-rw-r--r-- 1 dino596 dino596  2360 Aug 28 14:35 2024-06-24-unit_1_reference.ipynb
-rw-r--r-- 1 dino596 dino596  8198 Aug 28 14:35 2024-06-24-unit_1_stack_heap.ipynb
-rw-r--r-- 1 dino596 dino596  5932 Aug 28 14:35 2024-07-01-unit_1_examples.ipynb
-rw-r--r-- 1 dino596 dino596  5428 Aug 28 14:35 2024-07-13-unit_1_quiz.ipynb

./CSA/units_1_to_10_examples:
total 20
-rw-r--r-- 1 dino596 dino596 3891 Aug 28 14:35 2024-06-24-unit_2_examples.ipynb
-rw-r--r-- 1 dino596 dino596 3004 Aug 28 14:35 2024-06-24-unit_3_examples.ipynb
-rw-r--r-- 1 dino596 dino596 3954 Aug 28 14:35 2024-06-24-unit_4_examples.ipynb
-rw-r--r-- 1 dino596 dino596 4446 Aug 28 14:35 2024-06-24-unit_5_examples.ipynb

./CSA/units_1_to_10_quiz:
total 48
-rw-r--r-- 1 dino596 dino596 3658 Aug 28 14:35 2024-07-13-unit_2_quiz.ipynb
-rw-r--r-- 1 dino596 dino596 1656 Aug 28 14:35 2024-07-13-unit_3_quiz.ipynb
-rw-r--r-- 1 dino596 dino596 1473 Aug 28 14:35 2024-07-13-unit_4_quiz.ipynb
-rw-r--r-- 1 dino596 dino596 6515 Aug 28 14:35 2024-07-13-unit_5_quiz.ipynb
-rw-r--r-- 1 dino596 dino596 5533 Aug 28 14:35 2024-07-13-unit_6_quiz.ipynb
-rw-r--r-- 1 dino596 dino596 4703 Aug 28 14:35 2024-07-13-unit_7_quiz.ipynb
-rw-r--r-- 1 dino596 dino596 3657 Aug 28 14:35 2024-07-13-unit_8_quiz.ipynb
-rw-r--r-- 1 dino596 dino596 2701 Aug 28 14:35 2024-07-13-unit_9_quiz.ipynb
-rw-r--r-- 1 dino596 dino596 1753 Aug 28 14:35 2024-07-14-unit_10_quiz.ipynb

./CSP:
total 8
drwxr-xr-x 7 dino596 dino596 4096 Aug 28 14:35 big-ideas
drwxr-xr-x 2 dino596 dino596 4096 Aug 28 14:35 flask

./CSP/big-ideas:
total 20
drwxr-xr-x 2 dino596 dino596 4096 Aug 28 14:35 big-idea-1
drwxr-xr-x 2 dino596 dino596 4096 Aug 28 14:35 big-idea-2
drwxr-xr-x 2 dino596 dino596 4096 Aug 28 14:35 big-idea-3-part-1-fundamentals
drwxr-xr-x 2 dino596 dino596 4096 Aug 28 14:35 big-idea-3-part-2-concepts
drwxr-xr-x 2 dino596 dino596 4096 Aug 28 14:35 big-idea-3-part-2-reinforce

./CSP/big-ideas/big-idea-1:
total 12
-rw-r--r-- 1 dino596 dino596 8415 Aug 28 14:35 2023-10-04-big-idea-1_python-errors.ipynb

./CSP/big-ideas/big-idea-2:
total 116
-rw-r--r-- 1 dino596 dino596 100550 Aug 28 14:35 2023-10-02-python_data-abstraction-1.ipynb
-rw-r--r-- 1 dino596 dino596  13398 Aug 28 14:35 2023-10-02-python_data-abstraction-2.ipynb

./CSP/big-ideas/big-idea-3-part-1-fundamentals:
total 152
-rw-r--r-- 1 dino596 dino596  4643 Aug 28 14:35 2023-10-04-big-idea-3-fundamentals.ipynb
-rw-r--r-- 1 dino596 dino596 11462 Aug 28 14:35 2023-10-05-big-idea-3-1.ipynb
-rw-r--r-- 1 dino596 dino596 18277 Aug 28 14:35 2023-10-05-big-idea-3-2.ipynb
-rw-r--r-- 1 dino596 dino596 48623 Aug 28 14:35 2023-10-05-big-idea-3-3.ipynb
-rw-r--r-- 1 dino596 dino596  4959 Aug 28 14:35 2023-10-05-big-idea-3-4.ipynb
-rw-r--r-- 1 dino596 dino596  4470 Aug 28 14:35 2023-10-10-big-idea-3-5.ipynb
-rw-r--r-- 1 dino596 dino596  7767 Aug 28 14:35 2023-10-10-big-idea-3-6.ipynb
-rw-r--r-- 1 dino596 dino596  7602 Aug 28 14:35 2023-10-11-big-idea-3-7.ipynb
-rw-r--r-- 1 dino596 dino596 14573 Aug 28 14:35 2023-10-12-big-idea-3-8.ipynb
-rw-r--r-- 1 dino596 dino596 12678 Aug 28 14:35 2023-10-19-big-idea-3-10.ipynb

./CSP/big-ideas/big-idea-3-part-2-concepts:
total 164
-rw-r--r-- 1 dino596 dino596  4297 Aug 28 14:35 2023-10-04-big-idea-3-concepts.ipynb
-rw-r--r-- 1 dino596 dino596 12569 Aug 28 14:35 2023-10-13-big-idea-3-9.ipynb
-rw-r--r-- 1 dino596 dino596  7367 Aug 28 14:35 2023-10-19-big-idea-3-11.ipynb
-rw-r--r-- 1 dino596 dino596 10418 Aug 28 14:35 2023-10-22-big-idea-3-12.ipynb
-rw-r--r-- 1 dino596 dino596  8633 Aug 28 14:35 2023-10-22-big-idea-3-13.ipynb
-rw-r--r-- 1 dino596 dino596 56044 Aug 28 14:35 2023-10-26-big-idea-3-14.ipynb
-rw-r--r-- 1 dino596 dino596  5656 Aug 28 14:35 2023-10-26-big-idea-3-15.ipynb
-rw-r--r-- 1 dino596 dino596  9927 Aug 28 14:35 2023-10-27-big-idea-3-16.ipynb
-rw-r--r-- 1 dino596 dino596 14019 Aug 28 14:35 2023-10-27-big-idea-3-17.ipynb
-rw-r--r-- 1 dino596 dino596 13720 Aug 28 14:35 2023-10-27-big-idea-3-18.ipynb

./CSP/big-ideas/big-idea-3-part-2-reinforce:
total 56
-rw-r--r-- 1 dino596 dino596  9854 Aug 28 14:35 2023-10-28-big-idea-3_Iteration.ipynb
-rw-r--r-- 1 dino596 dino596 13096 Aug 28 14:35 2023-10-28-big-idea-3_python-lists.ipynb
-rw-r--r-- 1 dino596 dino596 14581 Aug 28 14:35 2023-10-29-big-idea-3_algorithms.ipynb
-rw-r--r-- 1 dino596 dino596 10278 Aug 28 14:35 2023-10-30-big-idea-3_developing-procedures.ipynb

./CSP/flask:
total 272
-rw-r--r-- 1 dino596 dino596 22339 Aug 28 14:35 2021-01-25-flask-code-style.ipynb
-rw-r--r-- 1 dino596 dino596  5997 Aug 28 14:35 2024-01-24-flask-intro.ipynb
-rw-r--r-- 1 dino596 dino596  8876 Aug 28 14:35 2024-01-25-flask-anatomy.ipynb
-rw-r--r-- 1 dino596 dino596 89001 Aug 28 14:35 2024-01-25-flask-code-full_stack.ipynb
-rw-r--r-- 1 dino596 dino596 49612 Aug 28 14:35 2024-01-25-flask-code-ideation.ipynb
-rw-r--r-- 1 dino596 dino596 26212 Aug 28 14:35 2024-01-25-flask-code-login-page.ipynb
-rw-r--r-- 1 dino596 dino596 14682 Aug 28 14:35 2024-01-25-flask-code-sign-up.ipynb
-rw-r--r-- 1 dino596 dino596 13216 Aug 28 14:35 2024-01-25-flask-play-in-jupyter.ipynb
-rw-r--r-- 1 dino596 dino596  2248 Aug 28 14:35 2024-01-26-flask-scrum.ipynb
-rw-r--r-- 1 dino596 dino596 22289 Aug 28 14:35 2024-01-27-flask-deploy-aws.ipynb

./Foundation:
total 28
-rw-r--r-- 1 dino596 dino596 3974 Aug 28 14:35 2024-08-21-sprint1_plan.ipynb
drwxr-xr-x 2 dino596 dino596 4096 Aug 28 14:35 A-pair_programming
drwxr-xr-x 3 dino596 dino596 4096 Aug 28 15:26 B-tools_and_equipment
drwxr-xr-x 2 dino596 dino596 4096 Aug 28 14:35 C-github_pages
drwxr-xr-x 2 dino596 dino596 4096 Aug 28 14:35 D-sass_basics
drwxr-xr-x 2 dino596 dino596 4096 Aug 28 14:35 E-frontend_development
drwxr-xr-x 2 dino596 dino596 4096 Aug 28 14:35 F-projects

./Foundation/A-pair_programming:
total 24
-rw-r--r-- 1 dino596 dino596  5433 Aug 28 14:35 2023-08-16-pair_programming.md
-rw-r--r-- 1 dino596 dino596  3918 Aug 28 14:35 2023-08-16-pair_showcase.ipynb
-rw-r--r-- 1 dino596 dino596 11624 Aug 28 14:35 2023-08-17-pair_habits.ipynb

./Foundation/B-tools_and_equipment:
total 112
-rw-r--r-- 1 dino596 dino596  9767 Aug 28 14:35 2023-08-19-devops_accounts.ipynb
-rw-r--r-- 1 dino596 dino596  5931 Aug 28 14:35 2023-08-21-devops_tools-home.ipynb
-rw-r--r-- 1 dino596 dino596 23630 Aug 28 14:35 2023-08-21-devops_tools-setup.ipynb
-rw-r--r-- 1 dino596 dino596 23156 Aug 28 14:35 2023-08-22-devops_tools-verify.ipynb
-rw-r--r-- 1 dino596 dino596 32288 Aug 28 14:35 2023-08-23-devops-githhub_pages-play.ipynb
-rw-r--r-- 1 dino596 dino596  9479 Aug 28 14:35 2023-08-23-devops-hacks.ipynb

./Foundation/C-github_pages:
total 64
-rw-r--r-- 1 dino596 dino596 14718 Aug 28 14:35 2023-08-23-github_pages-intro.ipynb
-rw-r--r-- 1 dino596 dino596 12484 Aug 28 14:35 2023-08-23-github_pages-markdonwn.ipynb
-rw-r--r-- 1 dino596 dino596 10111 Aug 28 14:35 2023-08-24-github_pages-anatomy.ipynb
-rw-r--r-- 1 dino596 dino596  3850 Aug 28 14:35 2023-08-25-github_pages-utterances.ipynb
-rw-r--r-- 1 dino596 dino596 10291 Aug 28 14:35 2023-08-26-github-pages-jekyll.ipynb
-rw-r--r-- 1 dino596 dino596  2149 Aug 28 14:35 2023-08-27-github-pages-hacks.ipynb

./Foundation/D-sass_basics:
total 56
-rw-r--r-- 1 dino596 dino596 12586 Aug 28 14:35 2023-09-01-SASS-basics-play.ipynb
-rw-r--r-- 1 dino596 dino596 11648 Aug 28 14:35 2023-09-01-SASS_basics-intro.ipynb
-rw-r--r-- 1 dino596 dino596 13865 Aug 28 14:35 2023-09-02-SASS_basics-coding.ipynb
-rw-r--r-- 1 dino596 dino596  8415 Aug 28 14:35 2024-07-20-SASS-hacks.ipynb

./Foundation/E-frontend_development:
total 124
-rw-r--r-- 1 dino596 dino596  6951 Aug 28 14:35 2023-08-27-frontend-basics-playground.ipynb
-rw-r--r-- 1 dino596 dino596  7054 Aug 28 14:35 2023-08-28-frontend-basics-html.ipynb
-rw-r--r-- 1 dino596 dino596  7204 Aug 28 14:35 2023-08-28-frontend-basics-js-errors.ipynb
-rw-r--r-- 1 dino596 dino596 16924 Aug 28 14:35 2023-08-29-frontend-basics-of-js.ipynb
-rw-r--r-- 1 dino596 dino596 20154 Aug 28 14:35 2023-08-30-frontend-basics-js-data-types.ipynb
-rw-r--r-- 1 dino596 dino596 12454 Aug 28 14:35 2023-08-30-frontend-basics-js-with-html.ipynb
-rw-r--r-- 1 dino596 dino596 12781 Aug 28 14:35 2023-08-30-frontend-input.ipynb
-rw-r--r-- 1 dino596 dino596 25250 Aug 28 14:35 2023-08-30-frontend-output_objects.ipynb

./Foundation/F-projects:
total 8
-rw-r--r-- 1 dino596 dino596 7079 Aug 28 14:35 2023-08-30-javascript_project-play.ipynb

./KASM:
total 16
drwxr-xr-x 2 dino596 dino596 4096 Aug 28 14:35 Config_Guides
drwxr-xr-x 2 dino596 dino596 4096 Aug 28 14:35 Database
drwxr-xr-x 2 dino596 dino596 4096 Aug 28 14:35 MultiServer
drwxr-xr-x 2 dino596 dino596 4096 Aug 28 14:35 Workspaces

./KASM/Config_Guides:
total 28
-rw-r--r-- 1 dino596 dino596 4804 Aug 28 14:35 2024-07-05-docker-cronjob-for-containers.ipynb
-rw-r--r-- 1 dino596 dino596 3646 Aug 28 14:35 2024-07-05-manual-addition-of-docker-images.ipynb
-rw-r--r-- 1 dino596 dino596 1183 Aug 28 14:35 2024-07-12-security-group-configuration.ipynb
-rw-r--r-- 1 dino596 dino596 3222 Aug 28 14:35 2024-07-15-manual-registry-addition.ipynb
-rw-r--r-- 1 dino596 dino596 2088 Aug 28 14:35 2024-07-15-persistent-data.ipynb
-rw-r--r-- 1 dino596 dino596 2292 Aug 28 14:35 2024-07-31-plans-for-big-meet.ipynb

./KASM/Database:
total 44
-rw-r--r-- 1 dino596 dino596 11567 Aug 28 14:35 2024-08-10-rds-documentation.ipynb
-rw-r--r-- 1 dino596 dino596  4665 Aug 28 14:35 2024-08-14-migration.ipynb
-rw-r--r-- 1 dino596 dino596 23557 Aug 28 14:35 2024-08-14-python-api-4-kasm.ipynb

./KASM/MultiServer:
total 28
-rw-r--r-- 1 dino596 dino596 18056 Aug 28 14:35 2024-07-30-autoscale-config.ipynb
-rw-r--r-- 1 dino596 dino596  3663 Aug 28 14:35 2024-08-07-persistent-storage.ipynb
-rw-r--r-- 1 dino596 dino596  3473 Aug 28 14:35 2024-08-14-workspace-registry-admin.ipynb

./KASM/Workspaces:
total 20
-rw-r--r-- 1 dino596 dino596 8672 Aug 28 14:35 2024-08-14-container-building.ipynb
-rw-r--r-- 1 dino596 dino596 1285 Aug 28 14:35 2024-08-14-dockerhub-push.ipynb
-rw-r--r-- 1 dino596 dino596 3038 Aug 28 14:35 2024-08-14-nighthawk-registry.ipynb
%%script bash

# Extract saved variables
source /tmp/variables.sh

echo "Look for images, print working directory, list files"
cd $project/images  # this should exist per fastpages
pwd
ls -lR
Look for images, print working directory, list files
/home/dino596/vscode/arthur_2025/images
.:
total 2120
-rw-r--r-- 1 dino596 dino596 129584 Aug 28 14:35 agile.webp
drwxr-xr-x 2 dino596 dino596   4096 Aug 28 14:35 binary
drwxr-xr-x 2 dino596 dino596   4096 Aug 28 14:35 course-brag
-rw-r--r-- 1 dino596 dino596 134051 Aug 28 14:35 createusersample.png
-rw-r--r-- 1 dino596 dino596  15406 Aug 28 14:35 favicon.ico
-rw-r--r-- 1 dino596 dino596 177895 Aug 28 14:35 food.png
drwxr-xr-x 2 dino596 dino596   4096 Aug 28 14:35 fullstack
-rw-r--r-- 1 dino596 dino596 244133 Aug 28 14:35 homesample.png
-rw-r--r-- 1 dino596 dino596 220573 Aug 28 14:35 information.png
drwxr-xr-x 2 dino596 dino596   4096 Aug 28 14:35 jokes
drwxr-xr-x 2 dino596 dino596   4096 Aug 28 14:35 jpa-lesson-images
drwxr-xr-x 2 dino596 dino596   4096 Aug 28 14:35 kasm
-rw-r--r-- 1 dino596 dino596 155071 Aug 28 14:35 loginesample.png
-rw-r--r-- 1 dino596 dino596  34239 Aug 28 14:35 logo.png
drwxr-xr-x 3 dino596 dino596   4096 Aug 28 14:35 notebooks
drwxr-xr-x 7 dino596 dino596   4096 Aug 28 14:35 platformer
-rw-r--r-- 1 dino596 dino596 165794 Aug 28 14:35 postmanexample.png
-rw-r--r-- 1 dino596 dino596 207818 Aug 28 14:35 sleep.png
-rw-r--r-- 1 dino596 dino596 203861 Aug 28 14:35 stress.png
-rw-r--r-- 1 dino596 dino596 168467 Aug 28 14:35 tracker1.png
-rw-r--r-- 1 dino596 dino596 244703 Aug 28 14:35 waterfood.png
-rw-r--r-- 1 dino596 dino596  12911 Aug 28 14:35 wireframe.png

./binary:
total 5040
-rw-r--r-- 1 dino596 dino596  37088 Aug 28 14:35 1.png
-rw-r--r-- 1 dino596 dino596  39155 Aug 28 14:35 2.png
-rw-r--r-- 1 dino596 dino596 145986 Aug 28 14:35 andgate.png
-rw-r--r-- 1 dino596 dino596 221394 Aug 28 14:35 ascii_label.png
-rw-r--r-- 1 dino596 dino596  82759 Aug 28 14:35 b.png
-rw-r--r-- 1 dino596 dino596 322245 Aug 28 14:35 binary_math_conversion.png
-rw-r--r-- 1 dino596 dino596 298587 Aug 28 14:35 binary_shift.png
-rw-r--r-- 1 dino596 dino596  19526 Aug 28 14:35 codetable.png
-rw-r--r-- 1 dino596 dino596  82392 Aug 28 14:35 color_block.png
-rw-r--r-- 1 dino596 dino596 457749 Aug 28 14:35 color_code.png
-rw-r--r-- 1 dino596 dino596 301661 Aug 28 14:35 elaboration_of_shift.png
-rw-r--r-- 1 dino596 dino596  30647 Aug 28 14:35 halt.png
-rw-r--r-- 1 dino596 dino596 121894 Aug 28 14:35 integer_math_neg.png
-rw-r--r-- 1 dino596 dino596 125395 Aug 28 14:35 integer_math_pos.png
-rw-r--r-- 1 dino596 dino596 419775 Aug 28 14:35 logic_gate_application.png
-rw-r--r-- 1 dino596 dino596 536361 Aug 28 14:35 logic_gate_lab.png
-rw-r--r-- 1 dino596 dino596 107742 Aug 28 14:35 logic_gates.png
-rw-r--r-- 1 dino596 dino596 888227 Aug 28 14:35 logic_of_shift.png
-rw-r--r-- 1 dino596 dino596  17921 Aug 28 14:35 problems.png
-rw-r--r-- 1 dino596 dino596  38846 Aug 28 14:35 reverse.png
-rw-r--r-- 1 dino596 dino596 373203 Aug 28 14:35 sample_unicode.png
-rw-r--r-- 1 dino596 dino596 145986 Aug 28 14:35 truth.png
-rw-r--r-- 1 dino596 dino596 245559 Aug 28 14:35 twos_complement.png
-rw-r--r-- 1 dino596 dino596  55105 Aug 28 14:35 unsigned_addition.png

./course-brag:
total 2752
-rw-r--r-- 1 dino596 dino596 536162 Aug 28 14:35 ccr.png
-rw-r--r-- 1 dino596 dino596 654211 Aug 28 14:35 csa.png
-rw-r--r-- 1 dino596 dino596 311888 Aug 28 14:35 csa24.png
-rw-r--r-- 1 dino596 dino596 680581 Aug 28 14:35 csp.png
-rw-r--r-- 1 dino596 dino596 323986 Aug 28 14:35 csp24.png
-rw-r--r-- 1 dino596 dino596 270084 Aug 28 14:35 csse.png
-rw-r--r-- 1 dino596 dino596  27531 Aug 28 14:35 qr.png

./fullstack:
total 40
-rw-r--r-- 1 dino596 dino596 15371 Aug 28 14:35 newvars.png
-rw-r--r-- 1 dino596 dino596  8035 Aug 28 14:35 quickSketch.png
-rw-r--r-- 1 dino596 dino596 14073 Aug 28 14:35 variables.png

./jokes:
total 1788
-rw-r--r-- 1 dino596 dino596 1040469 Aug 28 14:35 debug.png
-rw-r--r-- 1 dino596 dino596  245915 Aug 28 14:35 postman.png
-rw-r--r-- 1 dino596 dino596  533869 Aug 28 14:35 run.png

./jpa-lesson-images:
total 740
-rw-r--r-- 1 dino596 dino596  15657 Aug 28 14:35 columnName.jpg
-rw-r--r-- 1 dino596 dino596  48430 Aug 28 14:35 email.jpg
-rw-r--r-- 1 dino596 dino596  83139 Aug 28 14:35 haslastname.jpg
-rw-r--r-- 1 dino596 dino596  85779 Aug 28 14:35 jpa.jpg
-rw-r--r-- 1 dino596 dino596 201269 Aug 28 14:35 largeterminal.jpg
-rw-r--r-- 1 dino596 dino596  62635 Aug 28 14:35 partial.jpg
-rw-r--r-- 1 dino596 dino596  75480 Aug 28 14:35 postman.jpg
-rw-r--r-- 1 dino596 dino596  42227 Aug 28 14:35 search2.jpg
-rw-r--r-- 1 dino596 dino596  27237 Aug 28 14:35 userJpaRepositoryFile.jpg
-rw-r--r-- 1 dino596 dino596  37602 Aug 28 14:35 userTable.jpg
-rw-r--r-- 1 dino596 dino596  56784 Aug 28 14:35 walloftext.jpg

./kasm:
total 136
-rw-r--r-- 1 dino596 dino596 138312 Aug 28 14:35 kasmv2.png

./notebooks:
total 4
drwxr-xr-x 2 dino596 dino596 4096 Aug 28 14:35 foundation

./notebooks/foundation:
total 364
-rw-r--r-- 1 dino596 dino596 310743 Aug 28 14:35 create_repo.png
-rw-r--r-- 1 dino596 dino596  29416 Aug 28 14:35 push.jpg
-rw-r--r-- 1 dino596 dino596  17105 Aug 28 14:35 stage.jpg
-rw-r--r-- 1 dino596 dino596   6659 Aug 28 14:35 wsl.jpg

./platformer:
total 144
-rw-r--r-- 1 dino596 dino596   841 Aug 28 14:35 1_lopez.png
-rw-r--r-- 1 dino596 dino596  8525 Aug 28 14:35 Untitled drawing.png
-rw-r--r-- 1 dino596 dino596 91596 Aug 28 14:35 background.png
drwxr-xr-x 2 dino596 dino596  4096 Aug 28 14:35 backgrounds
-rw-r--r-- 1 dino596 dino596 15406 Aug 28 14:35 favicon.ico
drwxr-xr-x 2 dino596 dino596  4096 Aug 28 14:35 obstacles
drwxr-xr-x 2 dino596 dino596  4096 Aug 28 14:35 platforms
drwxr-xr-x 2 dino596 dino596  4096 Aug 28 14:35 sprites
drwxr-xr-x 2 dino596 dino596  4096 Aug 28 14:35 transitions

./platformer/backgrounds:
total 10780
-rw-r--r-- 1 dino596 dino596  989059 Aug 28 14:35 BossBackground.png
-rw-r--r-- 1 dino596 dino596  916487 Aug 28 14:35 Congratulations!!!.png
-rw-r--r-- 1 dino596 dino596   23764 Aug 28 14:35 avenidawide3.jpg
-rw-r--r-- 1 dino596 dino596   10759 Aug 28 14:35 bat.png
-rw-r--r-- 1 dino596 dino596   71134 Aug 28 14:35 castles.png
-rw-r--r-- 1 dino596 dino596   32795 Aug 28 14:35 clouds.png
-rw-r--r-- 1 dino596 dino596  180238 Aug 28 14:35 desertbg.png
-rw-r--r-- 1 dino596 dino596   43261 Aug 28 14:35 devil.png
-rw-r--r-- 1 dino596 dino596   61795 Aug 28 14:35 flyingplayers.png
-rw-r--r-- 1 dino596 dino596   47684 Aug 28 14:35 game_over.png
-rw-r--r-- 1 dino596 dino596   33177 Aug 28 14:35 greek.png
-rw-r--r-- 1 dino596 dino596  232046 Aug 28 14:35 hills.png
-rw-r--r-- 1 dino596 dino596  160593 Aug 28 14:35 home.png
-rw-r--r-- 1 dino596 dino596   28317 Aug 28 14:35 icewater.png
-rw-r--r-- 1 dino596 dino596  150548 Aug 28 14:35 mini.png
-rw-r--r-- 1 dino596 dino596  258834 Aug 28 14:35 miniHogwarts.png
-rw-r--r-- 1 dino596 dino596   29894 Aug 28 14:35 moon.jpg
-rw-r--r-- 1 dino596 dino596  194001 Aug 28 14:35 mountains.jpg
-rw-r--r-- 1 dino596 dino596 3804266 Aug 28 14:35 multiplayerbackground.png
-rw-r--r-- 1 dino596 dino596  101005 Aug 28 14:35 narwhal.png
-rw-r--r-- 1 dino596 dino596  663965 Aug 28 14:35 planet.jpg
-rw-r--r-- 1 dino596 dino596  230522 Aug 28 14:35 podium.jpg
-rw-r--r-- 1 dino596 dino596   48819 Aug 28 14:35 quidditch2.jpg
-rw-r--r-- 1 dino596 dino596  328600 Aug 28 14:35 reef.png
-rw-r--r-- 1 dino596 dino596  188425 Aug 28 14:35 school-fish.png
-rw-r--r-- 1 dino596 dino596  863997 Aug 28 14:35 skibidiCompletion.png
-rw-r--r-- 1 dino596 dino596     721 Aug 28 14:35 snowfall.png
-rw-r--r-- 1 dino596 dino596  543088 Aug 28 14:35 springfield.png
-rw-r--r-- 1 dino596 dino596  599642 Aug 28 14:35 water.png
-rw-r--r-- 1 dino596 dino596  118454 Aug 28 14:35 winter.png

./platformer/obstacles:
total 860
-rw-r--r-- 1 dino596 dino596  81268 Aug 28 14:35 Chest.png
-rw-r--r-- 1 dino596 dino596  33120 Aug 28 14:35 Trident.png
-rw-r--r-- 1 dino596 dino596  25554 Aug 28 14:35 blue-tube-up.png
-rw-r--r-- 1 dino596 dino596  25477 Aug 28 14:35 blue-tube.png
-rw-r--r-- 1 dino596 dino596  32653 Aug 28 14:35 cabin.png
-rw-r--r-- 1 dino596 dino596  16925 Aug 28 14:35 coin.png
-rw-r--r-- 1 dino596 dino596  23107 Aug 28 14:35 coinanimation.png
-rw-r--r-- 1 dino596 dino596  43191 Aug 28 14:35 dimonds.png
-rw-r--r-- 1 dino596 dino596  66987 Aug 28 14:35 flag.png
-rw-r--r-- 1 dino596 dino596  24701 Aug 28 14:35 iceberg.png
-rw-r--r-- 1 dino596 dino596   7163 Aug 28 14:35 laser.png
-rw-r--r-- 1 dino596 dino596  11955 Aug 28 14:35 snitch.png
-rw-r--r-- 1 dino596 dino596  22801 Aug 28 14:35 snowflake.png
-rw-r--r-- 1 dino596 dino596  19408 Aug 28 14:35 star.png
-rw-r--r-- 1 dino596 dino596  60071 Aug 28 14:35 toilet.png
-rw-r--r-- 1 dino596 dino596 248218 Aug 28 14:35 tree.png
-rw-r--r-- 1 dino596 dino596  29442 Aug 28 14:35 tube.png
-rw-r--r-- 1 dino596 dino596  21876 Aug 28 14:35 vbucks.png
-rw-r--r-- 1 dino596 dino596  48319 Aug 28 14:35 whompingwillowtree.png

./platformer/platforms:
total 2348
-rw-r--r-- 1 dino596 dino596    8474 Aug 28 14:35 Chocolatefrog.jpg
-rw-r--r-- 1 dino596 dino596   75783 Aug 28 14:35 alien.png
-rw-r--r-- 1 dino596 dino596   41211 Aug 28 14:35 brick_block.png
-rw-r--r-- 1 dino596 dino596    2782 Aug 28 14:35 brick_wall.png
-rw-r--r-- 1 dino596 dino596   10690 Aug 28 14:35 bubbles.png
-rw-r--r-- 1 dino596 dino596    6537 Aug 28 14:35 cobblestone.png
-rw-r--r-- 1 dino596 dino596   26145 Aug 28 14:35 grass.png
-rw-r--r-- 1 dino596 dino596   56810 Aug 28 14:35 ground.png
-rw-r--r-- 1 dino596 dino596   15969 Aug 28 14:35 island.png
-rw-r--r-- 1 dino596 dino596   84023 Aug 28 14:35 lava.jpg
-rw-r--r-- 1 dino596 dino596   23906 Aug 28 14:35 lionpattern.jpg
-rw-r--r-- 1 dino596 dino596  143056 Aug 28 14:35 magic_beam.png
-rw-r--r-- 1 dino596 dino596   66332 Aug 28 14:35 mario_block_spritesheet_v2.png
-rw-r--r-- 1 dino596 dino596   27915 Aug 28 14:35 mushroom.png
-rw-r--r-- 1 dino596 dino596    4921 Aug 28 14:35 narwhalfloor.png
-rw-r--r-- 1 dino596 dino596  115313 Aug 28 14:35 rockslava.png
-rw-r--r-- 1 dino596 dino596   64074 Aug 28 14:35 sand.png
-rw-r--r-- 1 dino596 dino596     298 Aug 28 14:35 sandblock.png
-rw-r--r-- 1 dino596 dino596    8076 Aug 28 14:35 sandstone.png
-rw-r--r-- 1 dino596 dino596   55870 Aug 28 14:35 skibidiBlock.png
-rw-r--r-- 1 dino596 dino596  330989 Aug 28 14:35 snowyfloor.png
-rw-r--r-- 1 dino596 dino596    7447 Aug 28 14:35 snowywood.png
-rw-r--r-- 1 dino596 dino596   39059 Aug 28 14:35 stone.jpg
-rw-r--r-- 1 dino596 dino596 1092399 Aug 28 14:35 turf.png
-rw-r--r-- 1 dino596 dino596   27827 Aug 28 14:35 yellowredpattern.jpg
-rw-r--r-- 1 dino596 dino596   17518 Aug 28 14:35 yellowtowerpattern.jpg

./platformer/sprites:
total 8624
-rw-r--r-- 1 dino596 dino596   38055 Aug 28 14:35 alert.gif
-rw-r--r-- 1 dino596 dino596   51640 Aug 28 14:35 alien.png
-rw-r--r-- 1 dino596 dino596  120450 Aug 28 14:35 boss.png
-rw-r--r-- 1 dino596 dino596    6736 Aug 28 14:35 canelopezspritesheet.png
-rw-r--r-- 1 dino596 dino596    3167 Aug 28 14:35 cerberus.png
-rw-r--r-- 1 dino596 dino596  103701 Aug 28 14:35 dementor2.png
-rw-r--r-- 1 dino596 dino596   49625 Aug 28 14:35 dracomalfoy.png
-rw-r--r-- 1 dino596 dino596   24281 Aug 28 14:35 dragon.png
-rw-r--r-- 1 dino596 dino596  141829 Aug 28 14:35 escaper.png
-rw-r--r-- 1 dino596 dino596  121796 Aug 28 14:35 flying-goomba.png
-rw-r--r-- 1 dino596 dino596  356155 Aug 28 14:35 flying-ufo.png
-rw-r--r-- 1 dino596 dino596  121815 Aug 28 14:35 goomba.png
-rw-r--r-- 1 dino596 dino596   91068 Aug 28 14:35 goombaspritesheet.png
-rw-r--r-- 1 dino596 dino596   14232 Aug 28 14:35 harryanimation2.png
-rw-r--r-- 1 dino596 dino596   15902 Aug 28 14:35 harryanimation3.png
-rw-r--r-- 1 dino596 dino596   15969 Aug 28 14:35 island.png
-rw-r--r-- 1 dino596 dino596  164132 Aug 28 14:35 jellyfish.png
-rw-r--r-- 1 dino596 dino596  162387 Aug 28 14:35 knight.png
-rw-r--r-- 1 dino596 dino596   17116 Aug 28 14:35 lopezanimation.png
-rw-r--r-- 1 dino596 dino596    6609 Aug 28 14:35 lopezspritesheet3.png
-rwxr-xr-x 1 dino596 dino596 3851947 Aug 28 14:35 mario.png
-rw-r--r-- 1 dino596 dino596  111425 Aug 28 14:35 monkey.png
-rw-r--r-- 1 dino596 dino596   49605 Aug 28 14:35 narwhal_boss.png
-rw-r--r-- 1 dino596 dino596  181376 Aug 28 14:35 noirio.png
-rw-r--r-- 1 dino596 dino596   59931 Aug 28 14:35 owl.png
-rw-r--r-- 1 dino596 dino596   23940 Aug 28 14:35 penguin.png
-rw-r--r-- 1 dino596 dino596  457104 Aug 28 14:35 skibidiEnemy.png
-rw-r--r-- 1 dino596 dino596  155875 Aug 28 14:35 skibidiTItan.png
-rw-r--r-- 1 dino596 dino596   26141 Aug 28 14:35 snowman.png
-rw-r--r-- 1 dino596 dino596 1683899 Aug 28 14:35 white_mario.png
-rw-r--r-- 1 dino596 dino596  376506 Aug 28 14:35 white_mario1.png
-rw-r--r-- 1 dino596 dino596  152460 Aug 28 14:35 zombie.png

./platformer/transitions:
total 4776
-rw-r--r-- 1 dino596 dino596 123315 Aug 28 14:35 IceMinigameEnd.png
-rw-r--r-- 1 dino596 dino596 750112 Aug 28 14:35 greeceEnd.png
-rw-r--r-- 1 dino596 dino596  20774 Aug 28 14:35 greenscreen.png
-rw-r--r-- 1 dino596 dino596 951532 Aug 28 14:35 hillsEnd.png
-rw-r--r-- 1 dino596 dino596 211655 Aug 28 14:35 hogwartsminiEnd.jpg
-rw-r--r-- 1 dino596 dino596 859809 Aug 28 14:35 miniEnd.png
-rw-r--r-- 1 dino596 dino596 917436 Aug 28 14:35 quidditchEnd.png
-rw-r--r-- 1 dino596 dino596 917788 Aug 28 14:35 waterEnd.png
-rw-r--r-- 1 dino596 dino596  94865 Aug 28 14:35 winterEnd.png

Look inside a Markdown File

“cat” reads data from the file and gives its content as output

%%script bash

# Extract saved variables
source /tmp/variables.sh

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
show the contents of README.md

# Introduction

Nighthawk Pages is a project designed to support students in their Computer Science and Software Engineering education. It offers a wide range of resources including tech talks, code examples, and educational blogs.

GitHub Pages can be customized by the blogger to support computer science learnings as the student works through the pathway of using Javascript, Python/Flask, Java/Spring.  

## Student Requirements

Del Norte HS students will be required to review their personal GitHub Pages at each midterm and final.  This review will contain a compilation of personal work performed within each significant grading period.

In general, Students and Teachers are expected to use GitHub pages to build lessons, complete classroom hacks, perform work on JavaScript games, and serve as a frontend to full-stack applications.

Exchange of information could be:

1. sharing a file:  `wget "raw-link.ipynb"
2. creating a template from this repository
3. sharing a fork among team members
4. etc.

---

## History

This project is in its 3rd revision (aka 3.0).

The project was initially based on Fastpages. But this project has diverged from those roots into an independent entity.  The decision to separate from Fastpages was influenced by the deprecation of Fastpages by authors.  It is believed by our community that the authors of fastpages turned toward Quatro.  After that change of direction fastpages did not align with the Teacher's goals and student needs. The Nighthawk Pages project has more of a raw development blogging need.

### License

The Apache license has its roots in Fastpages.  Thus, it carries its license forward.  However, most of the code is likely unrecognizable from those roots.

### Key Features

- **Code Examples**: Provides practical coding examples in JavaScript, including a platformer game, and frontend code for user databases using Python and Java backends.
- **Educational Blogs**: Offers instructional content on various topics such as developer tools setup, deployment on AWS, SQL databases, machine learning, and data structures. It utilizes Jupyter Notebooks for interactive lessons and coding challenges.
- **Tools and Integrations**: Features GitHub actions for blog publishing, Utterances for blog commenting, local development support via Makefile and scripts, and styling with the Minima Theme and SASS. It also includes a new integration with GitHub Projects and Issues.

### Contributions

- **Notable Contributions**: Highlights significant contributions to the project, including theme development, search and tagging functionality, GitHub API integration, and the incorporation of GitHub Projects into GitHub pages. Contributors such as Tirth Thakker, Mirza Beg, and Toby Ledder have played crucial roles in these developments.

- **Blog Contributions**:  Often students contribute articles and blogs to this project.  Their names are typically listed in the front matter of their contributing post.

---

## GitHub Pages setup

The absolutes in setup up...

**Activate GitHub Pages Actions**: This step involves enabling GitHub Pages Actions for your project. By doing so, your project will be automatically deployed using GitHub Pages Actions, ensuring that your project is always up to date with the latest changes you push to your repository.

- On the GitHub website for the repository go to the menu: Settings -> Pages ->Build
- Under the Deployment location on the page, select "GitHub Actions".

**Update `_config.yml`**: You need to modify the `_config.yml` file to reflect your repository's name. This configuration is crucial because it ensures that your project's styling is correctly applied, making your deployed site look as intended rather than unstyled or broken.

```text
github_repo: "portfolio_2025" 
baseurl: "/portfolio_2025"
```

**Set Repository Name in Makefile**: Adjust the `REPO_NAME` variable in your Makefile to match your GitHub repository's name. This action facilitates the automatic updating of posts and notebooks on your local development server, improving the development process.

```make
# Configuration, override port with usage: make PORT=4200
PORT ?= 4100
REPO_NAME ?= portfolio_2025
LOG_FILE = /tmp/jekyll$(PORT).log
```

### Tool requirements

All `GitHub Pages` websites are managed on GitHub infrastructure and use GitHub version control.  Each time we change files in GitHub it initiates a GitHub Action, a continuous integration and development toolset, that rebuilds and publishes the site with Jekyll.  

- GitHub uses `Jekyll` to transform your markdown and HTML content into static websites and blogs. [Jekyll](https://jekyllrb.com/).
- A Linux shell is required to work with this project integration with GitHub Pages, GitHub and VSCode.  Ubuntu is the preferred shell, though MacOS shell is supported as well.  There will be some key setup scripts that follow in the README.
- Visual Studio Code is the Nighthawk Pages author's preferred code editor and extensible development environment.  VSCode has a rich ecosystem of developer extensions that ease working with GitHub Pages, GitHub, and many programming languages.  Setting up VSCode and extensions will be elaborated upon in this document.
- An anatomy section in this README will describe GitHub Pages and conventions that are used to organize content and files.  This includes file names, key coding files, metadata tagging of blogs, styling tooling for blogs, etc.

### Development Environment Setup

Comprehensive start. A topic-by-topic guide to getting this project running is published [here](https://nighthawkcoders.github.io/portfolio_2025/devops/tools/home).

Quick start.  A quick start below is a reminder, but is dependent on your knowledge.  Only follow this instruction if you need a refresher.  Always default to the comprehensive start if any problem occurs.

#### Clone Repo

Run these commands to obtain the project, then locate into the project directory with the terminal, install an extensive set of tools, and make.

```bash
git clone <this-repo> # git clone https://github.com/nighthawkcoders/portfolio_2025.git 
cd <repo-dir>/scripts # cd portfolio_2025
```

#### Windows WSL and/or Ubuntu Users

- Execute the script: `./activate_ubuntu.sh`

#### macOS Users

- Execute the script: `./activate_macos.sh`

#### Kasm Cloud Desktop Users

- Execute the script: `./activate.sh`

## Run Server on localhost

To preview the project you will need to "make" the project.

### Bundle install

The very first time you clone run project you will need to run this Ruby command as the final part of your setup.

```bash
bundle install
```

### Start the Server  

This requires running terminal commands `make`, `make stop`, `make clean`, or `make convert` to manage the running server.  Logging of details will appear in the terminal.   A `Makefile` has been created in the project to support commands and start processes.

Start the server, this is the best choice for initial and iterative development.  Note. after the initial `make`, you should see files automatically refresh in the terminal on VSCode save.

  ```bash
  make
  ```

### Load web application into the Browser

Start the preview server in the terminal,
The terminal output from `make` shows the server address. "Cmd" or "Ctl" click the http location to open the preview server in a browser. Here is an example Server address message, click on the Server address to load:...

  ```text
  http://0.0.0.0:4100/portfolio_2025/
  ```

### Regeneration of web application

Save on ".ipynb" or ".md" file activiates "regeneration". An example terminal message is below.  Refresh the browser to see updates after the message displays.

  ```text
  Regenerating: 1 file(s) changed at 2023-07-31 06:54:32
      _notebooks/2024-01-04-cockpit-setup.ipynb
  ```

### Other "make" commands

Terminal messages are generated from background processes.  At any time, click return or enter in a terminal window to obtain a prompt.  Once you have the prompt you can use the terminal as needed for other tasks.  Always return to the root of project `cd ~/vscode/portfolio_2025` for all "make" actions.

#### Stop the preview server

Stopping the server ends the web server applications running process.  However, it leaves constructed files in the project in a ready state for the next time you run `make`.

  ```bash
  make stop
  ```

### Clean the local web application environment

This command will top the server and "clean" all previously constructed files (ie .ipynb -> .md). This is the best choice when renaming files has created duplicates that are visible when previewing work.

  ```bash
  make clean
  ```

### Observe build errors

Test Jupyter Notebook conversions (ie .ipynb -> .md), this is the best choice to see if an IPYNB conversion error is occurring.

  ```bash
  make convert
  ```

---

## Development Support

### File Names in "_posts", "_notebooks"

There are two primary directories for creating blogs.  The "_posts" directory is for authoring in markdown only.  The "_notebooks" allows for markdown, pythons, javascript and more.

To name a file, use the following structure (If dates are in the future, review your config.yml setting if you want them to be viewed).  Review these naming conventions.

- For markdown files in _posts:
  - year-month-day-fileName.md
    - GOOD EXAMPLE: 2021-08-02-First-Day.md
    - BAD EXAMPLE: 2021-8-2-first-day.md
    - BAD EXAMPLE: first-day.md
    - BAD EXAMPLE: 2069-12-31-First-Day.md

- For Jupyter notebooks in _notebooks:
  - year-month-day-fileName.ipynb
    - GOOD EXAMPLE: 2021-08-02-First-Day.ipynb
    - BAD EXAMPLE: 2021-8-2-first-day.ipynb
    - BAD EXAMPLE: first-day.ipynb
    - BAD EXAMPLE: 2069-12-31-First-Day.ipynb

### Tags

Tags are used to organize pages by their tag the way to add tags is to add the following to your front matter such as the example seen here `categories: [Tools]` Each item in the same category will be lumped together to be seen easily on the search page.

### Search

All pages can be searched for using the built-in search bar. This search bar will search for any word in the title of a page or in the page itself. This allows for easily finding pages and information that you are looking for. However, sometimes this may not be desirable so to hide a page from the search you need to add `search_exclude: true` to the front matter of the page. This will hide the page from appearing when the viewer uses search.

### Navigation Bar

To add pages to the top navigation bar use _config.yml to order and determine which menus you want and how to order them.  Review the_config.yml in this project for an example.

### Blog Page

There is a blog page that has options for images and a description of the page. This page can help the viewer understand what the page is about and what they can expect to find on the page. The way to add images to a page is to have the following front matter `image: /images/file.jpg` and then the name of the image that you want to use. The image must be in the `images` folder. Furthermore, if you would like the file to not show up on the blog page `hide: true` can be added to the front matter.

### SASS support

NIGHTHAWK Pages support a variety of different themes that are each overlaid on top of minima. To use each theme, go to the "_sass/minima/custom-styles.scss" file and simply comment or uncomment the theme you want to use.

To learn about the minima themes search for "GitHub Pages minima" and review the README.

To find a new theme search for "Github Pages Themes".

### Includes

- Nighthawk Pages uses liquid syntax to import many common page elements that are present throughout the repository. These common elements are imported from the _includes directory. If you want to add one of these common elements, use liquid syntax to import the desired element to your file. Here’s an example of the liquid syntax used to import: `<h3>
<a class="post-link" href="">

</a>

</h3><p class="post-meta"></p> ` Note that the liquid syntax is surrounded by curly braces and percent signs. This can be used anywhere in the repository.

### Layouts

- To use or create a custom page layout, make an HTML page inside the _layouts directory, and when you want to use that layout in a file, use the following front matter `layout: [your layout here]`.  All layouts will be written in liquid to define the structure of the page.

### Metadata

Metadata, also known as "front matter", is a set of key-value pairs that can provide additional information to GitHub Pages about .md and .ipynb files. This can and probably will be used in other file types (ie doc, pdf) if we add them to the system.

In the front matter, you can also define things like a title and description for the page.  Additional front matter is defined to place content on the "Computer Science Lab Notebook" page.  The `courses:` key will place data on a specific page with the nested `week:` placing data on a specific row on the page.  The `type:` key in "front matter" will place the blog under the plans, hacks(ToDo), and tangibles columns.

- In our files, the front matter is defined at the top of the page or the first markdown cell.

  - First, open one of the .md or .ipynb files already included in either your _posts|_notebooks folder.

  - In the .md file, you should notice something similar to this at the top of the page. To see this in your .ipynb files you will need to double-click the markdown cell at the top of the file.

  ```yaml
  ---
  toc: true
  comments: true
  layout: post
  title: Jupyter Python Sample
  description: Example Blog!!!  This shows code and notes from hacks.
  type: ccc
  courses: { csa: {week: 5} }
  ---
  ```

- The front matter will always have '---' at the top and bottom to distinguish it and each key-value pair will be separated by a ':'.

- Here we can modify things like the title and description.

- The type value will tell us which column this is going to appear under the time box supported pages.  The "ccc" stands for Code, Code, Code.

- The courses will tell us which menu item it will be under, in this case, the `csa` menu, and the `week` tells it what row (week) it will appear under that menu.

end of README.md

Env, Git, and GitHub

Env(ironment) is used to capture things like the path to the Code or Home directory. Git and GitHub are not only used to exchange code between individuals but are also often used to exchange code through servers, in our case for website deployment. All tools we use have behind-the-scenes relationships with the system they run on (MacOS, Windows, Linux) or a relationship with servers to which they are connected (e.g., GitHub). There is an “env” command in bash. There are environment files and setting files (e.g., .git/config) for Git. They both use a key/value concept.

  • env shows settings for your shell.
  • git clone sets up a directory of files.
  • cd $project allows the user to move inside that directory of files.
  • .git is a hidden directory that is used by Git to establish a relationship between the machine and the Git server on GitHub.
%%script bash

# This command has no dependencies

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

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

SHELL=/bin/bash
WSL2_GUI_APPS_ENABLED=1
WSL_DISTRO_NAME=Ubuntu
NAME=DESKTOP-OH2U80I
PWD=/home/dino596/vscode/arthur_2025/_notebooks/Foundation/B-tools_and_equipment
LOGNAME=dino596
HOME=/home/dino596
LANG=C.UTF-8
WSL_INTEROP=/run/WSL/54150_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:*.webp=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:
WAYLAND_DISPLAY=wayland-0
CLICOLOR=1
JPY_PARENT_PID=58497
GEM_HOME=/home/dino596/gems
LESSCLOSE=/usr/bin/lesspipe %s %s
TERM=xterm-color
LESSOPEN=| /usr/bin/lesspipe %s
USER=dino596
GIT_PAGER=cat
DISPLAY=:0
SHLVL=2
PAGER=cat
MPLBACKEND=module://matplotlib_inline.backend_inline
XDG_RUNTIME_DIR=/run/user/1000/
WSLENV=
XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop
PATH=/home/dino596/.local/bin:/home/dino596/gems/bin:/home/dino596/gems/bin:/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/MicrosoftCorporationII.WindowsSubsystemForLinux_2.2.4.0_x64__8wekyb3d8bbwe:/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/dotnet/:/mnt/c/Users/arthu/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/arthu/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/arthu/.dotnet/tools:/mnt/c/Program Files/JetBrains/IntelliJ IDEA Community Edition 2024.1.4/bin:/snap/bin
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
HOSTTYPE=x86_64
PULSE_SERVER=unix:/mnt/wslg/PulseServer
OLDPWD=/home/dino596/vscode/arthur_2025/scripts
_=/usr/bin/env
%%script bash

# Extract saved variables
source /tmp/variables.sh

cd $project

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

echo ""
echo "look at config file"
cat config
show the secrets of .git config file
-rw-r--r-- 1 dino596 dino596 296 Aug 28 14:36 config

look at config file
[core]
	repositoryformatversion = 0
	filemode = true
	bare = false
	logallrefupdates = true
[remote "origin"]
	url = https://github.com/dino596/arthur_2025.git
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "main"]
	remote = origin
	merge = refs/heads/main
	vscode-merge-base = origin/main

Advanced Shell project

This example was requested by a student (Jun Lim, CSA). The request was to make a Jupyter file using bash; I adapted the request to markdown. This type of thought will have great extrapolation to coding and possibilities of using Lists, Arrays, or APIs to build user interfaces. JavaScript is a language where building HTML is very common.

To get more interesting output from the terminal, this will require using something like mdless (https://github.com/ttscoff/mdless). This enables seeing markdown in rendered format.

Output of the example is much nicer in “Jupyter”

This is starting the process of documentation.

%%script bash

# This example has an error in VSCode; it runs best on Jupyter
cd /tmp

file="sample.md"
if [ -f "$file" ]; then
    rm $file
fi

# Create a markdown file using tee and here document (<<EOF)
tee -a $file >/dev/null <<EOF
# Show Generated Markdown
This introductory paragraph and this line and the title above are generated using tee with the standard input (<<) redirection operator.
- This bulleted element is still part of the tee body.
EOF

# Append additional lines to the markdown file using echo and redirection (>>)
echo "- This bulleted element and lines below are generated using echo with standard output (>>) redirection operator." >> $file
echo "- The list definition, as is, is using space to separate lines. Thus the use of commas and hyphens in output." >> $file

# Define an array of actions and their descriptions
actions=("ls,list-directory" "cd,change-directory" "pwd,present-working-directory" "if-then-fi,test-condition" "env,bash-environment-variables" "cat,view-file-contents" "tee,write-to-output" "echo,display-content-of-string" "echo_text_>\$file,write-content-to-file" "echo_text_>>\$file,append-content-to-file")

# Loop through the actions array and append each action to the markdown file
for action in ${actions[@]}; do
  action=${action//-/ }  # Convert dash to space
  action=${action//,/: } # Convert comma to colon
  action=${action//_text_/ \"sample text\" } # Convert _text_ to "sample text", note escape character \ to avoid "" having meaning
  echo "    - ${action//-/ }" >> $file  # Append action to file
done

echo ""
echo "File listing and status"
ls -l $file # List file details
wc $file   # Show word count
mdless $file  # Render markdown from terminal (requires mdless installation)

rm $file  # Clean up temporary file
File listing and status
-rw-r--r-- 1 dino596 dino596 808 Aug 28 15:28 sample.md
 15 132 808 sample.md


Show Generated Markdown ======================================================

This introductory paragraph and this line and the title above are generated using tee with the standard input (<<) redirection operator.

 * This bulleted element is still part of the tee body.
 * This bulleted element and lines below are generated using echo with standard output (>>) redirection operator.
 * The list definition, as is, is using space to separate lines. Thus the use of commas and hyphens in output.
   * ls: list directory
   * cd: change directory
   * pwd: present working directory
   * if then fi: test condition
   * env: bash environment variables
   * cat: view file contents
   * tee: write to output
   * echo: display content of string
   * echo "sample text" >$file: write content to file
   * echo "sample text" >>$file: append content to file



Display Shell commands help using man

The previous example used a markdown file to store a list of actions and their descriptions. This example uses the man command to generate a markdown file with descriptions of the commands. The markdown file is then displayed using mdless.

In coding, we should try to get data from the content creators instead of creating it on our own. This approach has several benefits:

  • Accuracy: Descriptions from man pages are authoritative and accurate, as they come directly from the documentation provided by the command’s developers.
  • Consistency: Automatically generating descriptions ensures consistency in formatting and terminology.
  • Efficiency: It saves time and effort, especially when dealing with a large number of commands.
  • Up-to-date Information: man pages are regularly updated with the latest information, ensuring that the descriptions are current.
%%script bash

# This example has an error in VSCode; it runs best on Jupyter
cd /tmp

file="sample.md"
if [ -f "$file" ]; then
    rm $file
fi

# Set locale to C to avoid locale-related errors
export LC_ALL=C

# Create a markdown file using tee and here document (<<EOF)
tee -a $file >/dev/null <<EOF
# Show Generated Markdown
This introductory paragraph and this line and the title above are generated using tee with the standard input (<<) redirection operator.
- This bulleted element is still part of the tee body.
EOF

# Append additional lines to the markdown file using echo and redirection (>>)
echo "- This bulleted element and lines below are generated using echo with standard output (>>) redirection operator." >> $file
echo "- The list definition, as is, is using space to separate lines. Thus the use of commas and hyphens in output." >> $file

# Define an array of commands
commands=("ls" "cat" "tail" "pwd" "env" "grep" "awk" "sed" "curl" "wget")

# Loop through the commands array and append each command description to the markdown file
for cmd in ${commands[@]}; do
  description=$(man $cmd | col -b | awk '/^NAME/{getline; print}')
  echo "    - $description" >> $file
done

echo ""
echo "File listing and status"
ls -l $file # List file details
wc $file   # Show word count
mdless $file  # Render markdown from terminal (requires mdless installation)

rm $file  # Clean up temporary file
File listing and status
-rw-r--r-- 1 dino596 dino596 1019 Aug 28 15:29 sample.md
  15  160 1019 sample.md


Show Generated Markdown ======================================================

This introductory paragraph and this line and the title above are generated using tee with the standard input (<<) redirection operator.

 * This bulleted element is still part of the tee body.
 * This bulleted element and lines below are generated using echo with standard output (>>) redirection operator.
 * The list definition, as is, is using space to separate lines. Thus the use of commas and hyphens in output.
   * ls - list directory contents
   * cat - concatenate files and print on the standard output
   * tail - output the last part of files
   * pwd - print name of current/working directory
   * env - run a program in a modified environment
   * grep, egrep, fgrep, rgrep - print lines that match patterns
   * gawk - pattern scanning and processing language
   * sed - stream editor for filtering and transforming text
   * curl - transfer a URL
   * Wget - The non-interactive network downloader.



troff: <standard input>:2375: warning: can't find special character 'vs'
troff: <standard input>:2375: warning: can't find special character ''c'