This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # Simple program to find resistance | |
| # Author: Sam Saint-Pettersen, Feb 2026 | |
| # R = pL/A for a given resistivity in ohm metre (i.e. pCu or pAl). | |
| import os | |
| import sys | |
| # Resistivities | |
| resists: dict[str,float] = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- languages.yaml 2026-02-01 16:31:21.483241400 +0000 | |
| +++ ../onefetch_c3/languages.yaml 2026-01-26 17:25:19.510650800 +0000 | |
| @@ -263,30 +263,32 @@ | |
| C3: | |
| type: programming | |
| ascii: | | |
| - {0} .d8{1}888{2}b. {3} .d8{4}888{5}b. | |
| - {0}d88P{1} Y{2}88b {3}d88P{4} Y{5}88b | |
| - {0}888 {1} {2}888 {3} {4} .d{5}88P | |
| - {0}888 {1} {2} {3} {4}888{5}8" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [workspace.package] | |
| authors = ["o2sh <ossama-hjaji@live.fr>"] | |
| edition = "2024" | |
| license = "MIT" | |
| version = "2.26.1" | |
| repository = "https://github.com/o2sh/onefetch" | |
| [workspace] | |
| members = ["ascii", "image", "manifest"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Dockerfile to build Python 3.13.9 from source with an Alpine image. | |
| FROM alpine:latest | |
| # Install build dependencies for python and git | |
| RUN sed -i '2s/^# *//' /etc/apk/repositories | |
| RUN apk update && apk add --no-cache build-base zlib-dev openssl-dev git | |
| # Create python directory. | |
| RUN mkdir -p /usr/build/python | |
| WORKDIR /usr/build/python |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Window Tiling: Emulates Windows 7 Snap feature JASON CAVETT --> | |
| <keybind key="W-J"> | |
| <action name="UnmaximizeFull"/> | |
| <action name="MaximizeVert"/> | |
| <action name="MoveResizeTo"> | |
| <width>50%</width> | |
| </action> | |
| <action name="MoveToEdgeWest"/> | |
| </keybind> | |
| <keybind key="W-L"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Openbox | |
| Tint2 | |
| Urxvt | |
| lxappearance | |
| breeze dark | |
| for system-wide mouse configuration, one can edit /usr/share/icons/default/index.theme | |
| tint2conf is the customizer | |
| sudo xbps-query -Rs rxvt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Update Brave browser on a Void system. | |
| install_latest_brave_deb() { | |
| # Get machine architecture. | |
| local arch | |
| arch=$(uname -m) | |
| if [ "$arch" == "x86_64" ]; then | |
| arch="amd64" | |
| elif [ "$arch" == "aarch64" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| killall -9 grub-mount |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Rotten Tomatoes Links for Jellyfin | |
| // @namespace https://github.com/stpettersens | |
| // @version 2025-11-12 | |
| // @description This script adds a Rotten Tomatoes link for TV and movies on Jellyfin. | |
| // @author Sam Saint-Pettersen | |
| // @match https://jellyfin.mmedia.stpettersen.xyz/* | |
| // @icon https://www.rottentomatoes.com/assets/pizza-pie/images/favicon.ico | |
| // @grant none | |
| // @run-at document-start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Rotten Tomatoes Links for Jellyfin | |
| // @namespace https://github.com/stpettersens | |
| // @version 2025-09-15 | |
| // @description This script adds a Rotten Tomatoes link for TV and movies on Jellyfin. | |
| // @author Sam Saint-Pettersen | |
| // @match https://jfdemo.stpettersen.xyz/* | |
| // @icon https://www.rottentomatoes.com/assets/pizza-pie/images/favicon.ico | |
| // @grant none | |
| // @run-at document-start |
NewerOlder