Skip to content

Instantly share code, notes, and snippets.

@vai
vai / hls.sh
Created January 31, 2025 15:09 — forked from stenuto/hls.sh
HLS ffmpeg script
#!/bin/bash
# Function to display usage information
usage() {
echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]"
exit 1
}
# Check if at least one argument (input file) is provided
if [ $# -lt 1 ]; then
@vai
vai / resume.json
Created July 9, 2024 17:14
resume.json
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Matthew McLeod",
"label": "Experienced Technical Lead / Principal / Architect",
"image": "/profile/mm.jpeg",
"email": "[email protected]",
"url": "https://mm.qwrk.dev",
"summary": "Hi! \uD83D\uDC4B\n\nI'm Matthew McLeod (or [vai](https://github.com/vai/) on the internet). I've been in tech for nearly 30 years, and most\nrecently spent a few years as Chapter Lead at a global IoT firm. Being a generalist, and usually a technical or\nstrategy lead, I'm used to wearing many hats, and working cross-functional roles.\r\n\r\nSince my last full time position, I've taken some time to build new skills, particularly in automation, and systems \nprogramming. ",
"location": {
@vai
vai / web-rewrite-sample.config
Created October 27, 2015 17:38
Sample Angular rewrites and reverse proxy rules for IIS and Application Request Routing
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By" />
<add name="Access-Control-Allow-Credentials" value="true" />
<add name="Access-Control-Allow-Methods" value="POST,OPTIONS,GET,PUT" />
<add name="Access-Control-Allow-Headers" value="Cache-Control,Pragma,Origin,Authorization,Content-Type,DNT,X-Requested-With,Accept,Accept-Language,Accept-Encoding" />
</customHeaders>
@vai
vai / Main.n
Created January 27, 2013 10:33
#pragma indent
using System.Linq
using System.Console
module Program
Main() : void
// Specify our pairs of ([divisors], text) to override
def pairs = [([3,5], "FizzBuzz"), ([3], "Fizz"), ([5], "Buzz")]
// Allow retrieval of the appropriate word