Skip to content

Instantly share code, notes, and snippets.

View BuddhiLW's full-sized avatar

blw BuddhiLW

View GitHub Profile
@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"
@BuddhiLW
BuddhiLW / electron
Created July 16, 2024 21:54
Install electron and permission to run sandbox
#!/usr/bin/bash
sudo npm install -g electron
sudo chown root:root /usr/local/lib/node_modules/electron/dist/chrome-sandbox
sudo chmod 4755 /usr/local/lib/node_modules/electron/dist/chrome-sandbox
@BuddhiLW
BuddhiLW / install-nerd-fonts
Created July 16, 2024 21:18
Install (all) nerdfonts -- can take a while
#!/usr/bin/bash
cd $DOTFILES/gitthings/
git clone https://github.com/ryanoasis/nerd-fonts.git
cd nerd-fonts
./install.sh
@BuddhiLW
BuddhiLW / st
Created July 16, 2024 19:50
Install my st build
#/usr/bin/bash
GITT=$DOTFILES/gitthings
git clone https://github.com/BuddhiLW/st.git $GITT/st
cd $GITT/st
sudo make install
@BuddhiLW
BuddhiLW / ble
Created July 16, 2024 19:47
Install ble.sh -- autocomplete replacement for terminals written in bash itself
#!/usr/bin/bash
BPATH="$HOME/dotfiles/gitthings/ble.sh"
rm -rf $BPATH
git clone --recursive https://github.com/akinomyoga/ble.sh.git $BPATH
cd $BPATH
make