Skip to content

Instantly share code, notes, and snippets.

View casjay's full-sized avatar
🎯
Learning, Self Discovery

casjay casjay

🎯
Learning, Self Discovery
View GitHub Profile
#!/usr/bin/env bash
# 🛣️ setup-stack.sh
# Fully automated, GPU-aware AI stack installer.
# Includes: Ollama, LocalAI, OpenWebUI, OpenDiffusion + VSCode LSP, unified config, stateful tracking, port resolution, bind mounts.
set -euo pipefail
# =========================
# 📁 Directory + Variables
# =========================
#!/usr/bin/env bash
# ┌──────────────────────────────────────────────────────────────┐
# │ 🚀 Public NFS + CIFS Server Installer (Debian/Ubuntu Only) │
# ├──────────────────────────────────────────────────────────────┤
# │ 📦 Installs and configures NFS and Samba public shares │
# │ 🛠️ Auto-creates /var/ftp/pub/{ISOs,mirrors} w/ permissions │
# │ 🧱 Adds UFW rules and systemd service handling │
# │ 🐧 Compatible with bash, systemd, ufw │
# └──────────────────────────────────────────────────────────────┘
#!/usr/bin/env bash
# 🔧 Enhanced Ollama + VS Code Integration Setup Script
# Project: ollama-vscode-integration
# Purpose: Install Ollama system-wide, configure VS Code (user), and pull models
set -euo pipefail
trap 'echo "❌ An error occurred. Exiting." >&2' ERR
### CONFIGURATION
TMP_DIR="/tmp/ollama-install"

🚀 JenkinsSetup — Multi-Arch Jenkins + Incus Build System

A complete Jenkins build system setup using Incus containers, designed for seamless
cross-architecture CI pipelines across two hosts: amd64.us (x86_64) and arm64.us (aarch64).
Supports Docker, Podman, cross-compilation, multi-registry Docker pushes, and
dynamic configuration driven from Git metadata.


🌐 Overview

#!/usr/bin/env bash
#
# 🧠 Script Name : install-llm-suite.sh
# 📦 Description : Binary installs of Ollama, OpenWebUI, and OpenDiffusion
# 📅 Created : 2025-07-01
# 🧾 License : MIT
# 🧩 Version : 2025.07.01
# 🖥️ Supported OS : macOS, Linux (All major distros)
# 📁 XDG Fallback : Yes
# 🛠️ Systemd Integration : Yes (system preferred, user fallback)
#!/bin/sh
# cloudmin-kvm-redhat-install.sh
# Copyright 2005-2011 Virtualmin, Inc.
#
# Installs Cloudmin GPL for KVM and all dependencies on a CentOS, RHEL or
# Fedora system.
VER=1.1
# Define functions
@casjay
casjay / incus_preseed.yml
Last active October 16, 2024 00:55
Incus preseed file
config:
core.https_address: '127.0.0.1:60443'
images.auto_update_interval: 24
networks:
- config:
ipv4.address: auto
ipv6.address: none
description: ""
name: incusbr0
type: "bridge"
@casjay
casjay / reinstall_VPS_from_inside.sh
Created October 5, 2024 21:02 — forked from dotsh/reinstall_VPS_from_inside.sh
DIY install debian on Oracle Cloud Infrastructure ( Free Tier )
# should works on any cloud-init enabled hypervisor (openstack.. )
# start from a ubuntu minimal install
# we need to shrink down the used space to move it in a tmpfs of 700MB
# make sure we are on the highest kernel, so we can delete all the others ...
sudo apt update && sudo apt upgrade -y && reboot
# ... reconnect
sudo apt install lsof
@casjay
casjay / vmware-macos.md
Last active September 2, 2024 16:56
Install MacOS on VMWare Workstation 17

https://www.sysnettechsolutions.com/en/install-macos-vmware/
https://forum.amd-osx.com/threads/mac-os-install-on-amd-ryzen-vmware-opencore-improved-performance-works-with-sequoia-sonoma-etc.4696/

Right-click Command Prompt and then click Run as administrator
If the User Account Control dialog box appears, confirm that the action shown is the one you want and click Continue

bcdedit /set hypervisorlaunchtype off
reg add “HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity” /v “Enabled” /t REG_DWORD /d 0 /f
@casjay
casjay / sources.list-bionic
Last active August 14, 2024 21:16 — forked from airglow923/sources.list-focal
Ubuntu Mirrors sources.list for Focal (20.04), Hirsute (21.04), Impish (21.10) and Jammy (22.04)
deb mirror://mirrors.ubuntu.com/mirrors.txt bionic main restricted universe multiverse
deb-src mirror://mirrors.ubuntu.com/mirrors.txt bionic main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-security main restricted universe multiverse
deb-src mirror://mirrors.ubuntu.com/mirrors.txt bionic-security main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-updates main restricted universe multiverse
deb-src mirror://mirrors.ubuntu.com/mirrors.txt bionic-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-proposed main restricted universe multiverse