Skip to content

Instantly share code, notes, and snippets.

View porty's full-sized avatar

Robert McNeil porty

View GitHub Profile
@porty
porty / config
Created April 29, 2025 18:46
Ghostty config
font-feature = -calt
font-feature = -liga
font-feature = -dlig
copy-on-select = clipboard
keybind = super+right=next_tab
keybind = super+left=previous_tab
@porty
porty / quotes.md
Last active August 17, 2023 15:13
Quotes
@porty
porty / convert.sh
Created December 22, 2021 20:31
FFMpeg mov to gif
#!/bin/bash
set -euo pipefail
# https://engineering.giphy.com/how-to-make-gifs-with-ffmpeg/
# convert *.mov to *.gif
for f in *.mov; do
out=${f//.mov/.gif}
// WIP
// build a list of showsa
let shows = [];
document.querySelectorAll(".mix.detail-information").forEach(div => {
let show = {
title: div.querySelector(".show-title").innerText,
soldOut: false
@porty
porty / README.md
Last active April 4, 2023 17:20
Windows 10 tweaks
@porty
porty / thing.go
Created April 26, 2020 02:22
tar archive and zstandard compression of a directory
package main
import (
"archive/tar"
"crypto/sha256"
"errors"
"fmt"
"io"
"log"
"os"
@porty
porty / jira.user.js
Created June 5, 2019 18:35
Userscripts (Tampermonkey)
// ==UserScript==
// @name JIRA thingo
// @namespace https://roflware.com/
// @version 0.1
// @description Adds helpful task(s) to Jira
// @author Robert McNeil
// @match https://jira.cfops.it/browse/*
// @grant none
// ==/UserScript==
@porty
porty / docker-compose.yml
Last active February 11, 2018 07:49
Influx
version: '2'
services:
influxdb:
image: influxdb:alpine
environment:
- HTTP_AUTH_ENABLED=true
ports:
- "127.0.0.1:8086:8086"
volumes:
@porty
porty / osx_in_vm.md
Last active January 23, 2018 03:38
Installing OSX in a VM

Though I couldn't get a SPARSE-based image working, so I just used UDIF (read/write disk image) instead. Took a few goes however as I may not have ejected the previous sparse disks properly.

Virtualbox was pretty slow at loading and in the end it didn't find the installation target disk, so it was all for nothing - possibly because I'm using 5.1.26 instead of the 5.1.28 mentioned in the article.

Keybase proof

I hereby claim:

  • I am porty on github.
  • I am porty (https://keybase.io/porty) on keybase.
  • I have a public key ASA-9k0-bk9lPjNcRVY6NeRGiC25OuDmqrBt9hTX2w_vmQo

To claim this, I am signing this object: