Skip to content

Instantly share code, notes, and snippets.

View arbal's full-sized avatar
👌
new Adaptor(this); // new Adaptor(_humans[].Behavior);

Arbal arbal

👌
new Adaptor(this); // new Adaptor(_humans[].Behavior);
  • Los Angeles, CA
  • 02:46 (UTC -07:00)
View GitHub Profile
@arbal
arbal / move-conda-envs.sh
Created April 8, 2025 17:46 — forked from NucciTheBoss/move-conda-envs.sh
Move conda environments to a new location on your Linux system.
#!/usr/bin/env bash
echo "Begin environment relocation."
NEW_ENV_DIR=$1
BASE_ENV=$(conda info --base)
#########################################
#
# Install jq locally
#
@sshh12
sshh12 / cursor-agent-system-prompt.txt
Last active April 14, 2025 08:34
Cursor Agent System Prompt (March 2025)
You are a powerful agentic AI coding assistant, powered by Claude 3.5 Sonnet. You operate exclusively in Cursor, the world's best IDE.
You are pair programming with a USER to solve their coding task.
The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question.
Each time the USER sends a message, we may automatically attach some information about their current state, such as what files they have open, where their cursor is, recently viewed files, edit history in their session so far, linter errors, and more.
This information may or may not be relevant to the coding task, it is up for you to decide.
Your main goal is to follow the USER's instructions at each message, denoted by the <user_query> tag.
<communication>
1. Be conversational but professional.
@Nerahikada
Nerahikada / compose.yml
Created October 6, 2024 09:36
run mitmproxy with tailscale (docker compose)
services:
tailscale:
image: tailscale/tailscale:latest
environment:
- TS_HOSTNAME=mitmproxy
- TS_STATE_DIR=/var/lib/tailscale
- TS_USERSPACE=false
volumes:
- ./tailscale:/var/lib/tailscale
- /dev/net/tun:/dev/net/tun
@varenc
varenc / !README.md
Last active July 15, 2024 12:12
Install iCloud3 v3.0.5.2 quick fix for Home Assistant 2024.7.x

This script just automates the fix described in gcobb321/icloud3#356 by @gcobb321 for fixing iCloud v3.0.5.2 compatability with Home Assistant 2024.7.x

I took some attempts to be safe but use at your own risk!

To run it just ssh into your HA server, then fetch the file below and evaluate it with bash.

$ wget "https://gist.githubusercontent.com/varenc/243eeed5622f0e749367b2f9e9d73a38/raw/icloud3_quick_fix.sh"
$ bash icloud3_quick_fix.sh
from txtai import Embeddings, LLM
# Data to index
data = [
"US tops 5 million confirmed virus cases",
"Canada's last fully intact ice shelf has suddenly collapsed, forming a Manhattan-sized iceberg",
"Beijing mobilises invasion craft along coast as Taiwan tensions escalate",
"The National Park Service warns against sacrificing slower friends in a bear attack",
"Maine man wins $1M from $25 lottery ticket",
"Make huge profits without work, earn up to $100,000 a day"
@Monarch73
Monarch73 / installmicrok8s.md
Created April 29, 2024 08:37
Install microk8s in proxmox

Installing microk8s in an LXC container (i.e.: proxmox)

This is an roundition of https://gist.github.com/acj/3cb5674670e6145fa4f355b3239165c7 which got a bit messy

  1. Create a LXC container through the Proxmox web interface (ie.: ubuntu.23-10-lts)
    • untick "unpriviledged" container
    • in memory, set swap to 1024
    • set mem to at least 4096
    • in network, make sure you assign static ip-adress to the container
  • create container but don't start it.
@disler
disler / README.md
Created March 31, 2024 14:34
Use these Prompt Chains to build HIGH QUALITY AI Agents (Agentic Building Blocks)

Setup

  1. Create a new directory with these three files (requirements.txt, main.py, README.md)
  2. python -m venv venv
  3. source venv/bin/activate
  4. pip install -r requirements.txt
  5. python main.py
  6. Update main() to run the example prompt chains

Coral TPU on Debian 12 (Bookworm)

This installation is tested on the following Raspberry Pi SBCs:

  • Raspberry Pi 4B
  • Raspberry Pi 5 6.6.51-1+rpt3 (2024-10-08) aarch64 GNU/Linux)

with the following Coral TPUs:

  • Coral USB Accelerator
  • Coral Dual Edge TPU (installed on a Pineboards Hat AI!)
@montasaurus
montasaurus / llmc.sh
Last active April 1, 2025 18:40
AI Shell Command Generator
llmc() {
local system_prompt='Output a command that I can run in a ZSH terminal on macOS to accomplish the following task. Try to make the command self-documenting, using the long version of flags where possible. Output the command first enclosed in a "```zsh" codeblock followed by a concise explanation of how it accomplishes it.'
local temp_file=$(mktemp)
local capturing=true
local command_buffer=""
local first_line=true
local cleaned_up=false # Flag to indicate whether cleanup has been run
cleanup() {
# Only run cleanup if it hasn't been done yet
@suuhm
suuhm / setup_openwrt_lxc_container_proxmox.sh
Last active March 6, 2025 04:23
Setup OpenWrt 23.05 LXC Container in Proxmox - Updated Version: 2024
#!/bin/bash
# Setting Up OpenWRT on a Virtual Machine with Proxmox
# Based on: https://community.bigbeartechworld.com/t/setting-up-openwrt-on-a-virtual-machine-with-proxmox/257
# Set your wished version:
export VER="23.05"
export ARCH="amd64"
export INDEX_URL="https://images.linuxcontainers.org/images/openwrt/$VER/$ARCH/default"
#export BUILDDATE=$(date -d "yesterday" '+%Y%m%d')