Skip to content

Instantly share code, notes, and snippets.

View brianly's full-sized avatar
🦙
Don't get much time to hack right now due to 👶

Brian Lyttle brianly

🦙
Don't get much time to hack right now due to 👶
View GitHub Profile
@brianly
brianly / Compare-Handbrake-Directories.ps1
Last active September 15, 2026 16:17
Compares the size of files before and after encoding across the input and output directories specified. Use it to identify files that Handbrake or ffmeg failed to encode to a smaller file size. This tool is most useful when you have an arbitrary list of input files with different formats and dimensions and aren't choosing settings appropriate fo…
<#
.SYNOPSIS
Compares files in a source directory against files in a target directory,
matching them by the source file's base name (the part before the first
period), even when the target file name has an extra suffix like
"_720p" or "-1080p".
.DESCRIPTION
For every file in the source directory, the script looks for files in the
target directory whose name starts with the source file's base name
@brianly
brianly / stew.md
Last active January 12, 2026 02:59

Crockpot Stew Recipe

This was taken from a Reddit thread.

INGREDIENTS

  • 2 lbs. red potatoes
  • 1 yellow onion
@brianly
brianly / unifi_ubuntu_2004.sh
Last active February 9, 2022 18:24 — forked from davecoutts/unifi_ubuntu_2004.sh
Install Ubiquiti Unifi Controller on Ubuntu 20.04
# Install Ubiquiti Unifi Controller on Ubuntu 20.04.
# As tested on a fresh install of ubuntu-20.04.1-live-server, February 9th 2022.
# Thanks to https://gist.github.com/tmuncks for posting the updated install steps.
sudo apt update
sudo apt install --yes apt-transport-https
echo 'deb https://www.ui.com/downloads/unifi/debian stable ubiquiti' | sudo tee /etc/apt/sources.list.d/100-ubnt-unifi.list
sudo wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ui.com/unifi/unifi-repo.gpg
@brianly
brianly / docker node tip.txt
Created November 14, 2021 20:56 — forked from rain-1/docker node tip.txt
Easily build NodeJS projects inside a docker container
Here's a quick dockerfile:
----------------8<-------------[ cut here ]------------------
FROM debian:latest
RUN apt-get update && apt-get install -y nodejs npm
----------------8<-------------[ cut here ]------------------
save that as Dockerfile and do: docker build -t node-builder .
@brianly
brianly / amznymous.md
Created May 21, 2020 19:44 — forked from bricker/amznymous.md
An Amazon Programmer's Perspective (http://pastebin.com/BjD84BQ3)

Originally posted at http://pastebin.com/BjD84BQ3

Trigger warning: mention of suicidal ideation

tl;dr: I burned out as a developer at Amazon at the end of my second year. I’ve since found a healthy and sustainable work-life balance and enjoy work again. I write this to A) raise awareness, especially for new-hires and their families, and B) help give hope and advice to people going through the same at Amazon or other companies.

Hello, world

There’s been no shortage of anecdotes, opinions, and rebuttals regarding Amazon’s corporate culture as of late. I write this not to capitalize on the latest news-feed fad, but to share what I had already written and promptly deleted. I didn’t think anyone would want to hear my story, but it’s apparent people are going through a similar experience and don’t have a voice.

I’m a Software Development Engineer II at Amazon; SDE II basically means a software developer with at least 2–3 years of industry experience. I started at Amazon as an SDE I.

@brianly
brianly / LIMITS.md
Created March 13, 2020 16:48 — forked from keithchambers/LIMITS.md
LIMITS.md

Limits for Microsoft Yammer

This article describes some of the limits that apply to Yammer.

Groups

Feature Maximum limit
Number of users per Office 365 Group 100,000
@brianly
brianly / watchgroup.py
Created April 5, 2019 14:17
Use the Yammer REST API to dump new thread starters. Requires a modern version of Python 3.
import requests
from dataclasses import dataclass
from time import sleep
TOKEN = ''
GROUP_ID = '15824708'
@brianly
brianly / gameoflife.js
Created December 10, 2018 21:27 — forked from ponyta/gameoflife.js
Conway's Game of Life
// source can be found at https://git.chunli.me/life.git/
// For a demo, please see https://chunli.me/life/
// initialization
let canvas = document.querySelector("#canvas");
var ctx = canvas.getContext("2d");
var running = false;
var UPDATE_INTERVAL = 100; // time between updates in ms
var CELL_SIZE = 10; // 10x10px cell size
// game grid size
@brianly
brianly / how_to_take_an_etl_trace.md
Created July 31, 2018 21:31 — forked from nolanlawson/how_to_take_an_etl_trace.md
Instructions for taking an ETL trace for Edge or IE

How to take a trace of a website issue in Edge/IE

Taking a trace

Method 1: Feedback Hub

  1. In Feedback Hub, click "Add new Feedback"
  2. Choose "Microsoft Edge" as the category
@brianly
brianly / itinerary.txt
Last active July 18, 2018 14:33
Optimises for no driving and train-friendly towns (frequency, options for day tripping, if we choose). Very city-centric outside of our bike tour. Skips Brussels. Uses Amsterdam as a base at the end of our trip reducing how much we have to change accommodation.
Thu, Aug 23
Fly to AMS
Fri, Aug 24
Arrive early to AMS
Overnight in Amsterdam
Sat, Aug 25
Overnight in Amsterdam