Skip to content

Instantly share code, notes, and snippets.

View RagingRoosevelt's full-sized avatar
🤓

Theodore S Lindsey RagingRoosevelt

🤓
View GitHub Profile
@RagingRoosevelt
RagingRoosevelt / lock_screen.sh
Last active December 31, 2024 11:13
Shell script to help with locking linux session, similar to Cold Turkey. Validated in Pop!_OS 22.04
#!/usr/bin/bash
# Figure out the current file name and path
# https://stackoverflow.com/a/4774063
script_path="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
script_filename=${0##*/}
script_full_path=$script_path/$script_filename
# Shows the help page for this script
@RagingRoosevelt
RagingRoosevelt / fan_grill.py
Last active April 13, 2023 21:10
fan grill with hexagon cut pattern
if "show_object" not in locals():
from cq_server.ui import ui, show_object
from fnmatch import translate
from os import link
import cadquery as cq
from math import cos, sin, tan, radians as rad, floor, ceil
from collections import namedtuple
DimsCube = namedtuple('DimsCube', ['l', 'w', 't'])