Skip to content

Instantly share code, notes, and snippets.

View CarstenHoyer's full-sized avatar

Carsten Høyer CarstenHoyer

  • Copenhagen, Denmark
View GitHub Profile
#!/bin/bash
# Find all MXF files in the source directory and its subdirectories
src_dir="/Volumes/[name]/"
files=$(find "$src_dir" -type f -not -name ".*" -name "*.mxf")
# Process each file using GNU Parallel
echo "$files" | parallel -j 4 --eta '
# Set the source and destination directories
src_dir="/Volumes/[]/"
# from http://baronwatts.com/exporting-a-curve-from-blender-to-three-js/
import bpy
obj = bpy.context.active_object
if obj.type == 'CURVE':
for subcurve in obj.data.splines:
curvetype = subcurve.type
print('curve type:', curvetype)
const draw = (rc, svg) => {
hatches = [
"hachure",
"zigzag",
"cross-hatch",
"dots",
"sunburst",
"dashed",
"zigzag-line",
];
* {
font-size: 20px;
}
.app, .right-sidebar {
background-color: #1a242e;
}
.left-sidebar {
top: 0;
{
"title": "Jira tickets",
"description": "Detects if an entry does not contain a registered ticket.",
"pattern": "%5C#[A-Z]{3,}-%5Cd+[^%5C[]",
"type": "error",
"message": "Entry contains unmatched ticket pattern."
}
@CarstenHoyer
CarstenHoyer / keybase.md
Last active September 17, 2016 14:45
keybase

Keybase proof

I hereby claim:

  • I am carstenhoyer on github.
  • I am carstenhoyer (https://keybase.io/carstenhoyer) on keybase.
  • I have a public key whose fingerprint is 4A58 3645 D5D1 97CC 5CCA 8C7D 05B1 2070 EE8F 794B

To claim this, I am signing this object:

@CarstenHoyer
CarstenHoyer / run.sh
Created November 14, 2015 11:47
Setup docker machine.
#!/bin/bash
#Check for "valid" input
if [ $# != 2 ];
then
echo 'Error: Provide a name and a driver for the docker-machine.'
exit 1;
fi
DOCKER_MACHINE=$1