Skip to content

Instantly share code, notes, and snippets.

View kc2zgu's full-sized avatar

Stephen Cavilia kc2zgu

View GitHub Profile
@kc2zgu
kc2zgu / overscan.desktop
Created April 26, 2024 02:00
Rpi 4 overscan (xrandr)
[Desktop Entry]
Type=Application
Exec=overscan.sh
Hidden=false
Name=overscan
Comment=Configure display overscan/margins
@kc2zgu
kc2zgu / rpirev.pl
Last active September 25, 2023 15:04
Raspbery Pi revision decoder
#!/usr/bin/perl
use strict;
use warnings;
open my $cpuinfo, '<', '/proc/cpuinfo';
my $rev;
while (my $line = <$cpuinfo>)
{
if ($line =~ /^Revision\s+:\s+([0-9a-f]+)$/i)
@kc2zgu
kc2zgu / upatch.pl
Created October 31, 2020 04:19
upatch
#!/usr/bin/perl
use v5.20;
use strict;
use warnings;
use Path::Tiny;
use IO::Pipe;
# upatch - the universal/user-friendly/unified/utilitarian patch editor, a package porter's patching pal, in Perl
#!/bin/bash
# dochroot.sh: set up and enter chroot environment for a Gentoo install
#
# Copyright 2019 Stephen Cavilia <sac@atomicradi.us>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.