Skip to content

Instantly share code, notes, and snippets.

View mmdriley's full-sized avatar

Matthew Riley mmdriley

View GitHub Profile
@mmdriley
mmdriley / lscpu.txt
Created August 17, 2023 04:44
m7a.48xlarge
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 48 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 192
On-line CPU(s) list: 0-191
Vendor ID: AuthenticAMD
Model name: AMD EPYC 9R14
CPU family: 25
Model: 17
@mmdriley
mmdriley / enforce_inherit_acl
Last active February 24, 2023 01:12
enforce_inherit_acl
#!/bin/bash
# put in: /volume1/\@appdata/sabnzbd/scripts/
# then enable in UI
set -o errexit -o nounset -o pipefail
# Recurse into subdirs with `find`. It always touches F before F/contents.
find "${SAB_COMPLETE_DIR}" -exec synoacltool -enforce-inherit '{}' ';'
@mmdriley
mmdriley / download_videos.ps1
Created March 14, 2021 04:02
youtube-dl a folder of URL shortcuts
$wscript = New-Object -ComObject WScript.Shell
# Push script parent folder
$MyInvocation.MyCommand.Path | Split-Path -Parent | Push-Location
# Create directories for videos and already-downloaded links
"Videos", "DownloadedLinks" |
% { New-Item $_ -ItemType Directory -ErrorAction SilentlyContinue }
# Download videos
@mmdriley
mmdriley / grub.cfg
Created June 23, 2020 09:27
Make a USB drive that can boot Ubuntu ISOs
# this goes at boot/grub/grub.cfg
# inspired by https://github.com/thias/glim
insmod all_video
set gfxpayload=keep
loadfont unicode
terminal_output gfxterm
@mmdriley
mmdriley / keybase.md
Created June 10, 2019 20:07
Keybase proof

Keybase proof

I hereby claim:

  • I am mmdriley on github.
  • I am mattdr (https://keybase.io/mattdr) on keybase.
  • I have a public key ASBNF8MCWgxwttVRqzHnohUJ7avbaU9wSyZYlT2YXq4sbgo

To claim this, I am signing this object:

@mmdriley
mmdriley / README.md
Last active July 11, 2018 21:52
ECS+ASG in Pulumi

This is an example architecture to connect an EC2 auto-scaling group with an ECS cluster such that all ECS tasks are drained from an EC2 instance before it is removed from the ASG.

@mmdriley
mmdriley / registry_api_v1.md
Last active April 15, 2019 14:57
Docker Registry API walkthrough

Docker Registry API V1 walkthrough

Matthew Riley (mattdr@google.com)

This document summarizes the interactions between the Docker client and the Docker Hub during push and pull commands through version 1 of the registry API. It was compiled to aid in writing a compatible registry server implementation after the existing API documentation proved occasionally incomplete or inaccurate.

Behavior and code links were as of Docker v1.2.0.

docker {push|pull} H:P/R[:T]
Host, Port, Repository ([namespace/]image), Tag