Skip to content

Instantly share code, notes, and snippets.

View jamesschoch's full-sized avatar

James Schoch jamesschoch

View GitHub Profile
@jamesschoch
jamesschoch / addCVtoTrademeSearch.user.js
Last active February 10, 2026 20:44
Trade Me Property CV Displayer
// ==UserScript==
// @name Trade Me Property CV Displayer
// @namespace https://schoch.co.nz/
// @version 1.3
// @description Adds Capital Value (CV) to Trade Me property search results dynamically
// @author James Schoch
// @match https://www.trademe.co.nz/a/property/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=trademe.co.nz
// @grant none
// @require https://code.jquery.com/jquery-3.6.0.min.js
ffmpeg -framerate 30 -i %04d.png -vcodec libx264 -pix_fmt gray -filter_complex "
>> [0:v]split[a][b];
>> [a]extractplanes=a[alpha];
>> [b]format=pix_fmts=rgb24[rgb];
>> [alpha][rgb]alphamerge[outv]" -map "[outv]" -c:v libx264 -preset medium -crf 23 -c:a copy output.mp4
@jamesschoch
jamesschoch / AddWhitelabelToPATtechPortal.user.js
Last active February 8, 2024 19:45
AddWhitelabelToPATtechPortal.user.js
// ==UserScript==
// @name AddWhitelabelToPATtechPortal
// @namespace https://test-pattech.au.auth0.com
// @version 1.0.0e
// @description Adds a button to reject daycare booking requests.
// @author James Schoch
// @match *://test-pattech.au.auth0.com/*
// @icon https://www.google.com/s2/favicons?domain=tampermonkey.net
// @grant none
// @require http://code.jquery.com/jquery-3.4.1.min.js
This file has been truncated, but you can view the full file.
!function(){var createModuleFactory=function(e){var t;return function(r){return t||e(t={exports:{},parent:r},t.exports),t.exports}},_$lib_678=createModuleFactory(function(t,r){(function(r){(function(){"use strict";var n=_$safer_916.Buffer,i=t.exports;i.encodings=null,i.defaultCharUnicode="\ufffd",i.defaultCharSingleByte="?",i.encode=function(e,t,r){e=""+(e||"");var a=i.getEncoder(t,r),o=a.write(e),s=a.end();return s&&s.length>0?n.concat([o,s]):o},i.decode=function(e,t,r){"string"==typeof e&&(i.skipDecodeWarning||(console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding"),i.skipDecodeWarning=!0),e=n.from(""+(e||""),"binary"));var a=i.getDecoder(t,r),o=a.write(e),s=a.end();return s?o+s:o},i.encodingExists=function(t){try{return i.getCodec(t),!0}catch(e){return!1}},i.toEncoding=i.encode,i.fromEncoding=i.decode,i._codecDataCache={},i.getCodec=function(e){i.encodings||(i.encodings=_$encodings_662({}));for(var t=i._canoni
Arch
First you need to import the keys we use to sign packages.
$ curl -s https://raw.githubusercontent.com/linux-surface/linux-surface/master/pkg/keys/surface.asc \
| sudo pacman-key --add -
It is recommended to check and verify the fingerprint of the key and then locally sign it.
$ sudo pacman-key --finger 56C464BAAC421453