Skip to content

Instantly share code, notes, and snippets.

View ian-h-chamberlain's full-sized avatar
🏔️

Ian Chamberlain ian-h-chamberlain

🏔️
View GitHub Profile
@ian-h-chamberlain
ian-h-chamberlain / remove_less_equal.py
Created May 15, 2024 19:43
fontforge remove `less_equal.alt` lookup
#!/usr/bin/env fontforge
import sys
import fontforge
def main():
for font_name in sys.argv[1:]:
font = fontforge.open(font_name)
@ian-h-chamberlain
ian-h-chamberlain / README.md
Last active December 30, 2023 01:44 — forked from majal/minterpolate
Multi-threaded minterpolate in ffmpeg

Example command

cd ~/Movies/Wallpapers
./minterpolate.sh -r 240 -s '11:48' -t '12:08' -i Morphys_World.webm test.mov
@ian-h-chamberlain
ian-h-chamberlain / lnav-nginx-netdata.json
Created December 20, 2023 14:44 — forked from notyal/lnav-nginx-netdata.json
lnav log format definition for NGINX access.log (netdata vhost format) and NGINX error.log
{
"nginx_access_log" : {
"title" : "NGINX NetData Access Log",
"description" : "NGINX NetData Access Log Format",
"url" : "https://github.com/netdata/netdata/blob/master/collectors/python.d.plugin/web_log/web_log.conf",
"multiline" : false,
"regex" : {
"netdata_vhost" : {
"pattern" : "(?P<host>[a-zA-Z\\d.-_\\[\\]]+)\\s+(?P<server_port>\\d+)\\s+(?P<remote_addr>[\\da-f.:]+)\\s+[\\w\\.\\-]+\\s+(?<remote_user>\\S+)\\s+\\[(?<timestamp>[^\\]]+)\\]\\s+\"(?:\\-|(?<request>\\w+) (?<request_uri>[^ \\?]+)(?:\\?(?<request_uri_query>[^ ]*))? (?<request_version>[\\w\\\/\\.]+))\"\\s+(?P<status>[1-9]\\d{2})\\s+(?P<body_bytes_sent>\\d+)\\s+(?P<request_length>\\d+)\\s+(?P<request_time>\\d+(?:.\\d+)?)\\s+(?:\\-|(?P<upstream_response_time>\\d+(?:.\\d+)?))\\s+\"(?<http_referer>[^\"]+)\"\\s+\"(?<http_user_agent>[^\"]+)\""
}
@ian-h-chamberlain
ian-h-chamberlain / player_movement2.rs
Created August 28, 2022 17:15
bevy_rapier2d add children example
use bevy::prelude::*;
use bevy_rapier2d::prelude::*;
fn main() {
App::new()
.insert_resource(WindowDescriptor {
title: "Player Movement Example".to_string(),
width: 1000.0,
height: 1000.0,
..Default::default()
@ian-h-chamberlain
ian-h-chamberlain / console.log
Last active February 1, 2019 19:32
Cpu profile for unresponsive vscodevim.vim
extensionHost.ts:329 [Extension Host] debugger listening on port 9837
extensionHost.ts:235 Extension Host
extensionHost.ts:236 Debugger listening on ws://127.0.0.1:9837/f82cb762-d8df-4b2a-bf57-1f9efb05d6d0
For help see https://nodejs.org/en/docs/inspector
log.ts:157 INFO no standard startup: not a new window
console.ts:134 [Extension Host] Configuration: debug: 0 errors found with vim configuration
console.ts:134 [Extension Host] Extension Startup: debug: Start
console.ts:134 [Extension Host] ModeHandler: debug: handling key=<ExtensionEnable>.
console.ts:134 [Extension Host] Remapper: debug: trying to find matching remap. keys=<ExtensionEnable>. mode=Normal. keybindings=normalModeKeyBindingsMap.