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
@neggles
neggles / cuda-install-wsl2.sh
Last active June 23, 2024 07:59
WSL2 ubuntu 22.04 CUDA setup
#!/usr/bin/env bash
set -euo pipefail
# please don't run this script as an actual script. it's not remotely error checked. paste command blocks in one by one
# and make sure the output looks vaguely sane.
# remove this once you've read below!
echo "You didn't actually read the instructions, did you?"; exit 1
# first up, `sudo nano /etc/wsl.conf` and add this:
[boot]
@neggles
neggles / [email protected]
Last active December 14, 2022 23:26
systemd unit to disable EEE on interfaces at startup
[Unit]
Description=Disable EEE on %i on startup
Wants=network.target network-online.target
After=network-online.target
[Service]
Type=simple
RemainAfterExit=true
# Uncomment the below to do a slightly hacky check for whether the link is up.
#ExecStartPre=/bin/bash -c '[ $(cat /sys/class/net/%i/carrier) == "1" ]'
@neggles
neggles / Download-File.ps1
Last active July 19, 2023 06:53
download a file with powershell w/o using invoke-webrequest or DoSing yourself with progress prompts
function Download-File {
[CmdletBinding()]
param (
[Parameter(Mandatory = $True,
Position = 0,
HelpMessage = 'The URI of the file to download.')]
[ValidateNotNullOrEmpty()]
[Alias('Url', 'FileUri')]
[String]$Uri,
# Specifies a path to one or more locations.

Keybase proof

I hereby claim:

  • I am neggles on github.
  • I am neggles (https://keybase.io/neggles) on keybase.
  • I have a public key whose fingerprint is ED29 A853 0357 37FB BDDA 2F52 5322 6877 579F 70B2

To claim this, I am signing this object:

#!/usr/bin/env bash
set -eu
# number of commits to push at once
batch_size=${1:-'100'}
# tgt_remote name to push to
tgt_remote=${2:-'origin'}
# git options
gitopts=${3:-''}
# some definitions for colors
#
# 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
#
# 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
#
# 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
#
# 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
#
# 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