Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
adnanwahab committed Oct 12, 2024
1 parent 412fbed commit 48e9194
Show file tree
Hide file tree
Showing 255 changed files with 29,879 additions and 48 deletions.
17 changes: 17 additions & 0 deletions data/cognition_engine/10_thousand_books.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[
"https://macwright.com/",
"https://macwright.com/",
"https://macwright.com/",
"https://macwright.com/",
"https://macwright.com/",
"https://macwright.com/",
"https://macwright.com/",
"https://macwright.com/",
"https://macwright.com/",
"https://macwright.com/",

"jsfiddle.com",
"observablehq.com",
"codepen.com",
"whaetever"
]
17 changes: 17 additions & 0 deletions data/cognition_engine/200_comics.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[
"https://macwright.com/",
"https://macwright.com/",
"https://macwright.com/",
"https://macwright.com/",
"https://macwright.com/",
"https://macwright.com/",
"https://macwright.com/",
"https://macwright.com/",
"https://macwright.com/",
"https://macwright.com/",

"jsfiddle.com",
"observablehq.com",
"codepen.com",
"whaetever"
]
85 changes: 39 additions & 46 deletions infra/scripts/install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@

set -e



#!/bin/bash

# Idempotent Jetson Orin X2 setup script
# Usage: wget hashirama.blog/bootstraph.sh && bash bootstraph.sh

# --- Helper Functions ---
# Function to check if a command exists
# Function to print section headers
print_header() {
echo "====================================="
Expand All @@ -13,6 +22,14 @@ command_exists() {
command -v "$1" >/dev/null 2>&1
}#!/bin/bash

Update and upgrade the system
print_header "Updating and upgrading the system"
sudo apt update && sudo apt upgrade -y

# Install basic dependencies
print_header "Installing basic dependencies"
sudo apt in

install_1password_cli() {
echo "Installing 1Password CLI..."
#ARCH="<choose between 386/amd64/arm/arm64>" && \
Expand Down Expand Up @@ -110,13 +127,7 @@ setup_jetson_containers() {
}


# Update and upgrade the system
print_header "Updating and upgrading the system"
sudo apt update && sudo apt upgrade -y

# Install basic dependencies
print_header "Installing basic dependencies"
sudo apt install -y build-essential cmake git python3-pip python3-venv curl wget
#stall -y build-essential cmake git python3-pip python3-venv curl wget

# Install ROS Noetic
install_ros() {
Expand Down Expand Up @@ -218,15 +229,6 @@ main() {
echo "Please reboot your system to ensure all changes take effect."
}



#!/bin/bash

# Idempotent Jetson Orin X2 setup script
# Usage: wget hashirama.blog/bootstraph.sh && bash bootstraph.sh

# --- Helper Functions ---
# Function to check if a command exists
command_exists() {
command -v "$1" >/dev/null 2>&1
}
Expand Down Expand Up @@ -338,26 +340,7 @@ install_ncdu() {
echo "ncdu already installed."
fi
}

# --- Execution ---

# Install everything
install_1password_cli
install_rustdesk
install_tailscale
install_bun
install_golang
install_micromamba
install_sam2
clone_homelab_status_page
setup_jetson_containers
install_ros
install_ncdu

# Run the main installation process



#!/bin/bash

# Idempotent Jetson Orin X2 setup script
Expand Down Expand Up @@ -478,6 +461,23 @@ install_ncdu() {
}


install_main_adnan() {
# --- Execution ---

# Install everything
install_1password_cli
install_rustdesk
install_tailscale
install_bun
install_golang
install_micromamba
install_sam2
clone_homelab_status_page
setup_jetson_containers
install_ros
install_ncdu
}




Expand Down Expand Up @@ -529,31 +529,24 @@ main_install() {
install_sam2
}

main 2>&1 | tee -a "$LOG_FILE"

#main
#make_install
#main_install
#mkdir -p ~/backup_configs
#cp ~/.bashrc ~/backup_configs/.bashrc.bak
echo "Installation complete. Please reboot your system."

echo "All installations complete. You may want to reboot your system."



# --- Execution ---
#main 2>&1 | tee -a "$LOG_FILE"




echo "All installations complete. You may want to reboot your system."



# Alias for restarting the blog
alias restart_blog="go run main.go"
# how to use - wget hashirama.blog/bootstraph.sh && bash bootstraph.sh


alias restart_blog="go run main.go"


Expand Down Expand Up @@ -695,4 +688,4 @@ alias restart_blog="go run main.go"
# Jetson Robotics Setup Script for Ubuntu 24.04
# This script installs various tools and libraries for robotics development on Jetson devices

#catonmat + browserify
#catonmat + browserify
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
19 changes: 19 additions & 0 deletions infra/scripts_2/infra/Dot-files/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# NixOS Config

https://github.com/mitchellh/nixos-config + https://zero-to-nix.com/start/install +



next.js
typescript
trpc
prismatic
trailwind
nextauth

¿?? https://melpa.org/#/?q=%C2%B7&sort=downloads&asc=false https://emacsdocs.org/docs/elisp/Transaction-Queues
golang (tensorflow)
grpc
sqlite
tailwind
nixos - linux w/ a functional package manager
45 changes: 45 additions & 0 deletions infra/scripts_2/infra/Dot-files/bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@





print_step() {
GREEN='\033[0;32m]'
RESET='\033[9m]' # no color
printf "\n${GREEN}>>> $(1)${RESET}\n\n"
}


# to install
# curl https://raw.githubusercontent.com/adnanwahab/Dot-files/main/bootstrap.sh | sh
# curl aw.com/install.sh | sh
#
#

git clone https://github.com/adnanwahab/Dot-files
mv Dot-files ~/.config/
cd ~/.config/Dot-files

print_step "Install Nix"


curl -L https://nixos.org/nix/install | sh -s -- --no-daemon

. /home/awahab/.nix-profile/etc/profile.d/nix.sh

nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz
nix-channel --update

nix-shell '<home-manager>' -A install



print_step "sym linking"
ln -s ~/.config/Dot-files/home-manager ./home-manager/

# git clone doom
# ./doom/bin/install
#
ln -s ~/.config/Dot-files/doom ./doom/

print_step "Everything is settled up, now restart and enjoy your new machine."
30 changes: 30 additions & 0 deletions infra/scripts_2/infra/Dot-files/doom/+apm.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
;;; ../Dot-files-main/doom/+apm.el -*- lexical-binding: t; -*-
;; APM (Application Performance Management)
(require 'gptel)
(gptel-make-ollama "baka" ;Any name of your choosing
:host "localhost:11434" ;Where it's running
:stream t ;Stream responses
:models '("mistral:latest"))

(setq deft-directory "~/Documents/fortress_of_solitude/")
(after! deft
(setq deft-default-extension "org"))

(defun gptel-rewrite-and-replace (bounds &optional directive)
(interactive
(list
(cond
((use-region-p) (cons (region-beginning) (region-end)))
((derived-mode-p 'text-mode)
(list (bounds-of-thing-at-point 'sentence)))
(t (cons (line-beginning-position) (line-end-position))))
(read-string "write good code.")))
(gptel-request
(buffer-substring-no-properties (car bounds) (cdr bounds)) ;the prompt
:system (or directive "only best code. ty.")
:buffer (current-buffer)
:context (cons (set-marker (make-marker) (car bounds))
(set-marker (make-marker) (cdr bounds)))
:callback mydick))

;;(global-set-key (kbd "C-\\") 'gptel-rewrite-and-replace)
3 changes: 3 additions & 0 deletions infra/scripts_2/infra/Dot-files/doom/+git.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
;;; ../Dot-files-main/doom/+git.el -*- lexical-binding: t; -*-
;; Git
(map! :after magit "C-c C-g" #'magit-status)
Loading

0 comments on commit 48e9194

Please sign in to comment.