Skip to content

Instantly share code, notes, and snippets.

View pythoninthegrass's full-sized avatar

pythoninthegrass

View GitHub Profile
@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 / 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 / .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 / .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 / 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 / automatic.conf
Created August 23, 2023 22:38
Fedora Automatic Security Updates
# /etc/dnf/automatic.conf
# SOURCE: https://www.ctrl.blog/entry/how-to-dnf-automatic.html
[commands]
# What kind of upgrade to perform:
# default = all available upgrades
# security = only the security upgrades
upgrade_type = security
random_sleep = 0
@pythoninthegrass
pythoninthegrass / README.md
Last active August 24, 2023 17:51
mvp for an unauthenticated smb share hosted on fedora linux, mounted on windows, accessible on macos

mvp smb

Setup

# get drive info (sans uuid)
lsblk

# unmount drive if already mounted by os
# `fuser -m <mount point>` to see what's using it
sudo umount <mount point>
@pythoninthegrass
pythoninthegrass / cloud-init.ubuntu.yml
Last active May 16, 2025 08:25
cloud-init (cloud-config) ubuntu template for latest python, docker, ansible, github ssh keys,dns, and shell config
#cloud-config
output: {all: '| tee -a /var/log/cloud-init.log'} # store logs inside vm
timezone: "America/Chicago"
hostname: ubuntu
package_update: true
package_upgrade: true
@pythoninthegrass
pythoninthegrass / ge-proton.sh
Last active September 1, 2023 04:48
Working GE-Proton download snippet for NonSteamLauncher.sh
#!/usr/bin/env bash
set -x # activate debugging (execution shown)
set -o pipefail # capture error from pipes
set -eu # exit immediately, undefined vars are errors
# $USER
[[ -n $(logname >/dev/null 2>&1) ]] && logged_in_user=$(logname) || logged_in_user=$(whoami)
# $UID
@pythoninthegrass
pythoninthegrass / enable_vnc.sh
Created September 14, 2023 05:32
Enable VNC over SSH
#!/usr/bin/env bash
# SOURCE: https://discussion.fedoraproject.org/t/78971/7
sudo dnf -y install gnome-remote-desktop
read -s -p "VNC Password: " VNC_PASSWD
grdctl vnc enable
grdctl vnc disable-view-only
grdctl vnc set-auth-method password
grdctl vnc set-password "${VNC_PASSWD::8}"