Skip to content

Instantly share code, notes, and snippets.

View neggles's full-sized avatar
🐈
cat stuff, mostly

Andi Powers-Holmes neggles

🐈
cat stuff, mostly
View GitHub Profile
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 5.19.0-rc7 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="aarch64-linux-gnu-gcc (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=100300
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=23400
@neggles
neggles / get-compose-v2.sh
Last active April 23, 2022 03:13
get compose v2
#!/usr/bin/env bash
set -e
# choose location for the incantation
DOCKER_CONFIG=${DOCKER_CONFIG:-/usr/local/lib/docker}
# determine core thaumaturgic framework
ARCH=$(uname -m)
ARCH=${ARCH/aarch64/arm64}
/dts-v1/;
/memreserve/ 0x0000000000000000 0x0000000000100000;
/ {
#address-cells = <0x02>;
#size-cells = <0x02>;
compatible = "annapurna-labs,alpine";
clock-ranges;
version = "1.1";
model = "Annapurna Labs Alpine V2 UBNT";
@neggles
neggles / wifi-powersave-off.service
Last active December 3, 2021 01:15
systemd units that disable wifi power saving while started and enable when stopped. single wlan0 version & @interface.service version provided
[Unit]
Description=Disable WiFi power saving.
After=sys-subsystem-net-devices-wlan0.device
PartOf=sys-subsystem-net-devices-wlan0.device
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/iw dev wlan0 set power_save off
ExecStop=/sbin/iw dev wlan0 set power_save on
@neggles
neggles / Set-VGpuEternalTrial.ps1
Last active March 18, 2025 09:52
Sets nVidia vGPU unlicensed state timeout to 24 hours and adds a daily scheduled task to restart the GPU drivers and reset the clock.
<#
.SYNOPSIS
Set vGPU VM instance into eternal trial.
.DESCRIPTION
Configures a Windows vGPU client for a 24-hour trial period and automatic daily driver restarts.
.EXAMPLE
Set-VGpuEternalTrial -RestartTime 2AM
.EXAMPLE
Set-VGpuEternalTrial -RestartTime 3AM -Filter '*GRID*'
.INPUTS
@neggles
neggles / cm-picase-shutdown.md
Last active May 8, 2021 02:50
Enable Cooler Master Pi Case 40 shutdown button without using Pi-Tool

Enable Cooler Master Pi Case 40 shutdown button without using Pi-Tool

Cooler Master's Pi Case 40 is a relatively nice case for the Raspberry Pi 4. It would've been nicer if they hadn't made it impossible to use HATs by swapping the GPIO header rows & misleading backers, stating the pinout would be fixed during the campaign & changing their tune after funding closed, but it's pretty nice otherwise.

It has a built-in GPIO soft power button, for which they have a GUI tool available on GitHub that is pretty horrifically bloated. It lets you set actions to trigger from a few different press events, apply some pretty mediocre preconfigured overclocking profiles, and monitor frequency/temperature.

@neggles
neggles / Profile.ps1
Last active January 9, 2025 19:45 — forked from apfelchips/Profile.ps1
my crossplatform PowerShell Profile
# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
# src: https://gist.github.com/neg2led/71aa954bd93750d3c1dadc9302e52654
# New-Item $(Split-Path "$($PROFILE.CurrentUserCurrentHost)") -ItemType Directory -ea 0; Invoke-WebRequest -Uri "https://git\.io/JOL0Xu" -OutFile "$($PROFILE.CurrentUserCurrentHost)"
Clear-Host # remove advertisements
# bash-like
Set-Alias cat Get-Content -Option AllScope
Set-Alias cd Set-Location -Option AllScope
Set-Alias clear Clear-Host -Option AllScope
@neggles
neggles / certbot-systemd.sh
Created January 13, 2021 06:36
certbot systemd unit creation
#!/bin/bash
set -e
# create service unit file
cat << EOF > /etc/systemd/system/certbot.service
[Unit]
Description=Certbot
Documentation=file:///usr/share/doc/python-certbot-doc/html/index.html
Documentation=https://certbot.eff.org/docs
@neggles
neggles / readme.md
Last active August 5, 2020 01:57 — forked from benstr/readme.md
Gist Markdown Cheatsheet

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Paragraph

@neggles
neggles / New-GPUPDriverPackage.ps1
Last active March 21, 2025 15:20
Hyper-V GPU Virtualization
<#
.SYNOPSIS
Create a GPU-P Guest driver package.
.DESCRIPTION
Gathers the necessary files for a GPU-P enabled Windows guest to run.
.EXAMPLE
New-GPUPDriverPackage -DestinationPath '.'
.EXAMPLE
New-GPUPDriverPackage -Filter 'nvidia' -DestinationPath '.'
.INPUTS