Skip to content

Instantly share code, notes, and snippets.

View BuddhiLW's full-sized avatar

blw BuddhiLW

View GitHub Profile
@BuddhiLW
BuddhiLW / station
Created August 6, 2025 16:07
Station unifying app install
#!/bin/bash
set -e
APP_NAME="Station"
REPO="getstation/desktop-app"
APPIMAGE_NAME="station.appimage"
APP_DIR="$HOME/.local/bin"
DESKTOP_FILE="$HOME/.local/share/applications/station.desktop"
ICON_URL="https://avatars.githubusercontent.com/u/27734877?s=200&v=4"
#!/usr/bin/bash
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
@BuddhiLW
BuddhiLW / kind
Created August 6, 2025 14:44
KIND install (k8s)
#!/usr/bin/bash
go install sigs.k8s.io/kind@latest
#[ $(uname -m) = x86_64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.29.0/kind-linux-amd64
#chmod +x ./kind
#sudo mv ./kind /usr/local/bin/kind
@BuddhiLW
BuddhiLW / anaconda
Created August 6, 2025 13:21
Anaconda automated install
#!/bin/bash
set -e # stop script, in case of error
TMP="$DOTFILES/tmp"
mkdir -p "$TMP"
cd "$TMP"
URL=$(wget -qO- https://www.anaconda.com/download/success | grep -oP 'https://repo\.anaconda\.com/archive/Anaconda3-[^"]*-Linux-x86_64\.sh' | head -n1)
@BuddhiLW
BuddhiLW / eww
Created March 15, 2025 00:02
eww install ubuntu
#!/usr/bin/bash
sudo apt-get install libdbus-glib-1-dev libdbusmenu-glib-dev libdbusmenu-gtk3-dev
cd $DOTFILES/gitthings
git clone https://github.com/elkowar/eww
cd eww
cargo build --release --no-default-features --features x11
@BuddhiLW
BuddhiLW / pix2tex
Created January 25, 2025 21:33
How to install pix2tex -- transform images to latex equations
#!/usr/bin/bash
conda create -n pix2tex
conda activate pix2tex
pip install 'pix2tex[gui]'
echo "Installing gnome-screenshot as its pix2tex default screenshooter"
sudo apt-get install gnome-screenshot
@BuddhiLW
BuddhiLW / docker-ce-rootless
Created October 2, 2024 17:39
Install docker compose that doesn't 'sudo'
#!/bin/sh
set -e
# Docker CE for Linux installation script (Rootless mode)
#
# See https://docs.docker.com/go/rootless/ for the
# installation steps.
#
# This script is meant for quick & easy install via:
# $ curl -fsSL https://get.docker.com/rootless -o get-docker.sh
# $ sh get-docker.sh
@BuddhiLW
BuddhiLW / tor-browser
Created July 23, 2024 18:47
Install latest Tor Browser version
#!/usr/bin/bash
# Change to the target directory
cd "$DOTFILES/gitthings" || exit 1
# Scrape the Tor Project page to find the latest stable version
version=$(curl -s https://dist.torproject.org/torbrowser/ | grep -oP '(?<=href=")[0-9]+\.[0-9]+\.[0-9]+(?=/")' | sort -V | tail -n 1)
# Check if the version was found
if [ -z "$version" ]; then
@BuddhiLW
BuddhiLW / lc0
Created July 16, 2024 22:16
Install LC0
#!/bin/bash
### PRE-REQUISITE: CUDA
# https://developer.nvidia.com/cuda-downloads
### The directory you want to install LC0 at:
cd $DOTFILES/gitthings/
git clone -b release/0.29 --recurse-submodules https://github.com/LeelaChessZero/lc0.git
cd lc0
@BuddhiLW
BuddhiLW / nibbler
Created July 16, 2024 22:06
Install nibbler from source
#!/bin/bash
cd $DOTFILES/gitthings/
if ! [ -e $PWD/nibbler ]; then
git clone https://github.com/rooklift/nibbler.git
fi
NIBBLER_PATH="$PWD/nibbler"
path_file="/usr/local/bin/nibbler"