Skip to content

Instantly share code, notes, and snippets.

View robbertkl's full-sized avatar

Robbert Klarenbeek robbertkl

  • Barendrecht, The Netherlands
  • 13:14 (UTC +02:00)
  • X @robbertkl
View GitHub Profile
@robbertkl
robbertkl / fix_subs.php
Created February 22, 2020 16:42
Script to manipulate subtitles in .srt files or SRT embedded in .mkv
<?php
try {
$usageException = new \RuntimeException("Usage: php {$argv[0]} file [file [...]]");
if ($argc < 2) throw $usageException;
array_shift($argv);
$filenames = $argv;
foreach ($filenames as $filename) {
@robbertkl
robbertkl / MPCNC.cps.js
Last active February 22, 2020 16:36
MPCNC milling post processor for Autodesk Fusion 360
/**
* Global info
*/
description = "MPCNC";
longDescription = "Basic MPCNC milling post processor.";
vendor = "V1 Engineering";
vendorUrl = "https://www.v1engineering.com";
extension = "gcode";
@robbertkl
robbertkl / authcode.json
Last active September 4, 2021 13:56
Auto updating Magister auth code for use in simplyGits/MagisterJS
"32f895a62ca049"