Skip to content

Instantly share code, notes, and snippets.

View pythoninthegrass's full-sized avatar

pythoninthegrass

View GitHub Profile
@pythoninthegrass
pythoninthegrass / bootstrap.sh
Last active August 21, 2023 04:21
Basic environment setup for ChimeraOS
#!/usr/bin/env bash
# SOURCES
# https://www.makeuseof.com/install-and-use-yay-arch-linux/
# https://github.com/ChimeraOS/chimeraos/wiki/Development#unlocking-the-filesystem
# https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck
# shellcheck disable=all
cat << 'DESCRIPTION' >/dev/null
@pythoninthegrass
pythoninthegrass / .bash_profile
Last active August 16, 2023 06:31
ChimeraOS shell config. TODO: bootstrap.sh (e.g., asdf, python/poetry, fzf, thefuck, xclip, p7zip, lazydocker)
[[ -s ~/.bashrc ]] && source ~/.bashrc
@pythoninthegrass
pythoninthegrass / .gitignore
Last active July 22, 2025 08:05
Generates self-signed certs for local development
# ETC
**/certs/*
# INCLUDE
# General
.DS_Store
.AppleDouble
.LSOverride
@pythoninthegrass
pythoninthegrass / requirements.txt
Last active August 2, 2023 03:49
Programmatically get all the routes from the web server
beautifulsoup4==4.12.2
requests==2.31.0
@pythoninthegrass
pythoninthegrass / launch-GRD.sh
Created July 30, 2023 19:32 — forked from greyltc/launch-GRD.sh
configures then activates gnome-remote-desktop from the command line
#!/usr/bin/env bash
# run this on the remote terminal machine, as auser with sudo powers, probably through a remote ssh shell
# this will overwrite all the settings it touches
# the name of the user to run these commands as
TARGET_USER=jane
# we need an inlocked desktop session. we can either start a new autologin one or unlock an existing one
@pythoninthegrass
pythoninthegrass / README.md
Last active September 7, 2025 13:18
Setup RDP on ChimeraOS
# unlock pacman
sudo frzr-unlock

# install pipewire
sudo pacman -S pipewire pipewire-media-session gst-plugin-pipewire 

# add pipewire group
sudo usermod -a -G pipewire $USER
@pythoninthegrass
pythoninthegrass / bootstrap
Last active July 13, 2023 23:18
Setup Docker on Vanilla OS
#!/usr/bin/env bash
# SOURCES:
# https://handbook.vanillaos.org/2022/02/05/install-docker.html
cat << 'DESCRIPTION' >/dev/null
Install docker on vanilla os
This script will install docker on vanilla os. It will also add the current user to the docker group so that docker commands can be run without sudo.
DESCRIPTION
@pythoninthegrass
pythoninthegrass / av_scan_windows.sh
Last active July 7, 2023 02:52
Run clamscan daemon (clamdscan) to scan Windows partition from a Linux live USB.
#!/usr/bin/env bash
# shellcheck disable=SC1091,SC2120,SC2317
# SOURCES
# https://askubuntu.com/a/978750
# https://unixcop.com/enabling-exfat-support-on-ubuntu-22-04/
# https://askubuntu.com/a/51926
# https://wiki.archlinux.org/title/ClamAV
# https://github.com/extremeshok/clamav-unofficial-sigs/blob/master/INSTALL.md
@pythoninthegrass
pythoninthegrass / video2gif
Last active June 27, 2023 01:03
Convert video to gif file
#!/usr/bin/env bash
# SOURCES
# https://superuser.com/a/1154859
# https://engineering.giphy.com/how-to-make-gifs-with-ffmpeg/
# https://www.displayninja.com/what-is-aspect-ratio/
# https://ffmpeg.org/general.html#toc-Supported-File-Formats_002c-Codecs-or-Features
# shellcheck disable=SC2086
@pythoninthegrass
pythoninthegrass / swap_off.sh
Last active June 26, 2023 17:06 — forked from anildigital/cleanup_swap.md
Cleanup swap space on macOS
#!/usr/bin/env bash
# To see current swap usage
sysctl -a | grep swap
# Monitor swap usage
vm_stat 60
# Use only when when your system is in a very bad shape
sudo pkill -HUP -u _windowserver