Skip to content

Commit

Permalink
remove too much data
Browse files Browse the repository at this point in the history
  • Loading branch information
adnanwahab committed Oct 19, 2024
1 parent cb63092 commit 743a091
Show file tree
Hide file tree
Showing 8 changed files with 318 additions and 21,645 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/git-pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Tailscale
- name: Connect to Tailscale
uses: tailscale/github-action@v2
with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:ci
authkey: ${{ secrets.TAILSCALE_AUTHKEY }}

- name: Pull from all devices
env:
Expand Down
5,830 changes: 0 additions & 5,830 deletions notebooks_py/diffusion_/diffusion-nbs/Stable Diffusion Deep Dive.ipynb

This file was deleted.

15,803 changes: 0 additions & 15,803 deletions notebooks_py/diffusion_/diffusion-nbs/stable_diffusion.ipynb

This file was deleted.

3 changes: 3 additions & 0 deletions notebooks_py/diffusion_/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ figure out how to get this to be ----- 100x cheaper
https://chatgpt.com/share/67069372-d4d0-8013-a7f7-3092c720d884
https://news.ycombinator.com/item?id=35072891
say questions all day --- each one spanwns 50 gpts - and then the useful threads - are collected and used


Git cloen jeremheyhoward stablefussion notebooks
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ incorpate -- ideas from 8 billion people
>
> _Edward Tuft_ recognized Bret as
> “design theory wizard, at the cutting edge of interface designs for programming, seeing, reasoning”
![https://dynamicland.org/2024/Roots/e4129e4c77f4d01b2c44d59cfaef451f.jpg](https://dynamicland.org/2024/Roots/e4129e4c77f4d01b2c44d59cfaef451f.jpg)
![https://worrydream.com/MagicInk/p/logo.png](https://worrydream.com/MagicInk/p/logo.png)
![https://worrydream.com/SeeingSpaces/SeeingSpaces.jpg](https://worrydream.com/SeeingSpaces/SeeingSpaces.jpg)
Expand Down
298 changes: 294 additions & 4 deletions scripts/_bootstrap.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#docker
#bun
#caddy
#portainer
#immich


# divide - install.sh + bootstrap.sh -blah;adlgapsdok
# merge scripts - make them good -> infra -> levels + shipfast jam stack shit
# merge scripts - make them good -> infra -> levels + shipfast jam stack shit


# To install a new plugin in Caddy, you need to build Caddy from source with the desired plugin included.
Expand Down Expand Up @@ -42,7 +49,7 @@



# run this on jetson to install hashirama platform + desktop
# run this on jetson to install hashirama platform + desktop

#sudo apt-get install -y nvidia-container-toolkit
#git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.config/emacs
Expand All @@ -62,12 +69,12 @@
#sudo rm /etc/caddy/Caddyfile
#sudo ln -s /home/adnan/homelab_status_page/scripts/infra/caddy/Caddyfile /etc/caddy/Caddyfile

#caddy
#caddy


#### cleanup after this line

#NOTE TODO -> sync all passwords + keys + secrets + etc
#NOTE TODO -> sync all passwords + keys + secrets + etc

#Update Docker's daemon.json to set the default runtime to nvidia
# if [ -f /etc/docker/daemon.json ]; then
Expand Down Expand Up @@ -149,3 +156,286 @@
# --device /dev/video0 \
# --device /dev/video1 \
# dustynv/jupyterlab:r36.2.0


# run this on jetson to install hashirama platform

#sudo apt-get install -y nvidia-container-toolkit
#git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.config/emacs
###~/.config/emacs/bin/doom install
#sudo apt-get install -y nvidia-container-toolkit
#sudo ln -s /home/adnan/hashirama/infra/caddy/Caddyfile /etc/caddy/Caddyfile
#immich

# sudo apt update
# sudo apt install docker.io
# sudo systemctl start docker
# sudo systemctl enable docker
# sudo usermod -aG docker $USER
# passowrd nviida

#Update Docker's daemon.json to set the default runtime to nvidia
# if [ -f /etc/docker/daemon.json ]; then
# sudo jq '. + {"runtimes": {"nvidia": {"path": "nvidia-container-runtime", "runtimeArgs": []}}, "default-runtime": "nvidia"}' /etc/docker/daemon.json | sudo tee /etc/docker/daemon.json.tmp
# sudo mv /etc/docker/daemon.json.tmp /etc/docker/daemon.json
# else
# echo '{"runtimes": {"nvidia": {"path": "nvidia-container-runtime", "runtimeArgs": []}}, "default-runtime": "nvidia"}' | sudo tee /etc/docker/daemon.json
# fi


# # Add data-root configuration to Docker's daemon.json
# if [ -f /etc/docker/daemon.json ]; then
# sudo jq '. + {"data-root": "/mnt/docker"}' /etc/docker/daemon.json | sudo tee /etc/docker/daemon.json.tmp
# sudo mv /etc/docker/daemon.json.tmp /etc/docker/daemon.json
# else
# echo '{"data-root": "/mnt/docker"}' | sudo tee /etc/docker/daemon.json
# fi


# Restart Docker to apply changes

# git clone https://github.com/dusty-nv/jetson-containers

# sudo systemctl restart docker
# bash jetson-containers/install.sh


# hello() {
# echo "hello"
# curl -fsSL https://bun.sh/install | bash
# source /home/adnan/.bashrc

# }

# install_rustdesk() {
# # Update package list and install dependencies
# sudo apt-get update
# sudo apt-get install -y wget gdebi-core

# # Download the RustDesk .deb package
# wget https://github.com/rustdesk/rustdesk/releases/download/1.1.9/rustdesk-1.1.9.deb

# # Install the RustDesk package
# sudo gdebi -n rustdesk-1.1.9.deb

# # Clean up the downloaded .deb file
# rm rustdesk-1.1.9.deb

# echo "RustDesk installation completed."
# }

# Call the function to install RustDesk
#install_rustdesk


#sudo docker run --runtime nvidia -it --rm --network=host dustynv/l4t-pytorch:r36.2.0

#et
#tailscale

#nix ??
#_wahab

#mkdir unreal
# wget ->
# unzip
#
# https://zed.dev/docs/remote-development adnan@jetson-orin:~$ zed

# bootstraps a server like tailscale, ollama, etc

# docker pull ollama/ollama
# docker run -it --gpus all ollama/ollama
#sudo apt-get update && sudo apt-get install v4l2loopback-dkms


# adnan@jetson-orin:~$ docker run --runtime nvidia --rm -it \
# --gpus all \
# --device /dev/video0 \
# --device /dev/video1 \
# dustynv/jupyterlab:r36.2.0

# divide - install.sh + bootstrap.sh -blah;adlgapsdok
# merge scripts - make them good -> infra -> levels + shipfast jam stack shit


# To install a new plugin in Caddy, you need to build Caddy from source with the desired plugin included.
# Here is a step-by-step guide to do this:

# Step 1: Install Go
# Caddy requires Go to be installed on your system. You can install it using the following commands:
# sudo apt update
# sudo apt install -y golang-go

# Step 2: Set up Go environment
# It's a good practice to set up a Go workspace. Add the following lines to your ~/.bashrc or ~/.zshrc:
# export GOPATH=$HOME/go
# export PATH=$PATH:$GOPATH/bin
# source ~/.bashrc

# Step 3: Get xcaddy
# xcaddy is a command-line tool to build Caddy with plugins.
# go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest

# Step 4: Build Caddy with the plugin
# Use xcaddy to build Caddy with the desired plugin. Replace 'github.com/your/plugin' with the actual plugin repository.
# xcaddy build --with github.com/your/plugin

# Step 5: Replace existing Caddy binary
# Once built, replace the existing Caddy binary with the new one.
# sudo mv ./caddy /usr/bin/caddy

# Step 6: Verify installation
# Verify that the plugin is installed by running:
# caddy list-modules | grep your-plugin

# Note: Ensure that the plugin you want to install is compatible with your version of Caddy.
# xcaddy build --with github.com/abiosoft/caddy-exec

#caddy add-package github.com/abiosoft/caddy-exec
# caddy add-package github.com/caddy-dns/porkbun





# run this on jetson to install hashirama platform + desktop

#sudo apt-get install -y nvidia-container-toolkit
#git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.config/emacs
###~/.config/emacs/bin/doom install
#sudo apt-get install -y nvidia-container-toolkit
#sudo ln -s /home/adnan/hashirama/infra/caddy/Caddyfile /etc/caddy/Caddyfile
#immich

# sudo apt update
# sudo apt install docker.io
# sudo systemctl start docker
# sudo systemctl enable docker
# sudo usermod -aG docker $USER

#find / -name Caddyfile 2>/dev/null
#ls -la /etc/caddy/
#sudo rm /etc/caddy/Caddyfile
#sudo ln -s /home/adnan/homelab_status_page/scripts/infra/caddy/Caddyfile /etc/caddy/Caddyfile

#caddy


#### cleanup after this line

#NOTE TODO -> sync all passwords + keys + secrets + etc

#Update Docker's daemon.json to set the default runtime to nvidia
# if [ -f /etc/docker/daemon.json ]; then
# sudo jq '. + {"runtimes": {"nvidia": {"path": "nvidia-container-runtime", "runtimeArgs": []}}, "default-runtime": "nvidia"}' /etc/docker/daemon.json | sudo tee /etc/docker/daemon.json.tmp
# sudo mv /etc/docker/daemon.json.tmp /etc/docker/daemon.json
# else
# echo '{"runtimes": {"nvidia": {"path": "nvidia-container-runtime", "runtimeArgs": []}}, "default-runtime": "nvidia"}' | sudo tee /etc/docker/daemon.json
# fi


# # Add data-root configuration to Docker's daemon.json
# if [ -f /etc/docker/daemon.json ]; then
# sudo jq '. + {"data-root": "/mnt/docker"}' /etc/docker/daemon.json | sudo tee /etc/docker/daemon.json.tmp
# sudo mv /etc/docker/daemon.json.tmp /etc/docker/daemon.json
# else
# echo '{"data-root": "/mnt/docker"}' | sudo tee /etc/docker/daemon.json
# fi


# # Restart Docker to apply changes

# git clone https://github.com/dusty-nv/jetson-containers

# sudo systemctl restart docker
# bash jetson-containers/install.sh


# hello() {
# echo "hello"
# curl -fsSL https://bun.sh/install | bash
# source /home/adnan/.bashrc

# }

# install_rustdesk() {
# # Update package list and install dependencies
# sudo apt-get update
# sudo apt-get install -y wget gdebi-core

# # Download the RustDesk .deb package
# wget https://github.com/rustdesk/rustdesk/releases/download/1.1.9/rustdesk-1.1.9.deb

# # Install the RustDesk package
# sudo gdebi -n rustdesk-1.1.9.deb

# # Clean up the downloaded .deb file
# rm rustdesk-1.1.9.deb

# echo "RustDesk installation completed."
# }

# # Call the function to install RustDesk
# install_rustdesk


# #sudo docker run --runtime nvidia -it --rm --network=host dustynv/l4t-pytorch:r36.2.0

# #et
# #tailscale

# #nix ??
# #_wahab

# #mkdir unreal
# # wget ->
# # unzip
# #
# # https://zed.dev/docs/remote-development adnan@jetson-orin:~$ zed

# # bootstraps a server like tailscale, ollama, etc

# # docker pull ollama/ollama
# # docker run -it --gpus all ollama/ollama
# sudo apt-get update && sudo apt-get install v4l2loopback-dkms


# adnan@jetson-orin:~$ docker run --runtime nvidia --rm -it \
# --gpus all \
# --device /dev/video0 \
# --device /dev/video1 \
# dustynv/jupyterlab:r36.2.0



# Function to install and run Portainer
install_portainer() {
# Update package list and install dependencies
sudo apt-get update
sudo apt-get install -y docker.io

# Pull the latest Portainer image
sudo docker pull portainer/portainer-ce:latest

# Create a Docker volume for Portainer data
sudo docker volume create portainer_data

# Run Portainer container
sudo docker run -d \
--name=portainer \
--restart=always \
-p 8000:8000 \
-p 9443:9443 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v portainer_data:/data \
portainer/portainer-ce:latest

echo "Portainer installation and setup completed."
}



# Call the functions to install Portainer and configure Caddy
install_portainer

14 changes: 14 additions & 0 deletions scripts/infra/caddy/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,20 @@ hashirama.blog {
reverse_proxy localhost:8080
}

route /portainer/* {

reverse_proxy localhost:9443

}

route /portainer/* {
reverse_proxy localhost:9000
}

route /immich/* {
reverse_proxy localhost:2283
}

header Access-Control-Allow-Origin *
header Access-Control-Allow-Methods "GET, POST, OPTIONS"
header Access-Control-Allow-Headers "Content-Type"
Expand Down
Loading

0 comments on commit 743a091

Please sign in to comment.