Skip to content

Instantly share code, notes, and snippets.

@lordtangent
lordtangent / auto.sshfs
Last active September 5, 2019 01:00
universal sshfs Automount
#!/bin/bash
# /etc/auto.sshfs automount script
# This file must be executable to work! ( chmod 755 )
key="${1/%:/}"
user="${key/@*/}"
t="${key/*@/}"
server="${t/:*/}"
tp="${t/*:/}"
port="${tp/\/*/}"
@lordtangent
lordtangent / find_snippets
Created April 10, 2019 23:10
Useful find snippets
# change file extention with find and bash
find -type f -name *.exr -exec bash -c 'file_name="{}"; echo "${file_name} ${file_name%.exr}.png"' \;
@lordtangent
lordtangent / oiio.txt
Created April 10, 2019 23:08
Reformat images in-place with Open Image IO Tool
# Have a bunch of exr images on disk in the wrong codec that you need to convert?
# you could tie up a Nuke or Fusion and make a new copy of them to convert them, then blow away the originals.
# OR, you could just convert them in place with OpenImageIO http://openimageio.org
# "zip" is 16 line zip "zips" is single scan line zip (Nuke preferes single line zip over everything else)
# "piz" wavelet is more compact but slower to decode.
find . -type f -iname *.exr -exec iconvert -v --inplace --compression zip --scanline '{}' \;

Keybase proof

I hereby claim:

  • I am lordtangent on github.
  • I am lordtangent (https://keybase.io/lordtangent) on keybase.
  • I have a public key ASCvqJkvbE7l0nqPoGx0klQZHkvZfZE_wgnoJJOQay4JPQo

To claim this, I am signing this object: