Skip to content

Instantly share code, notes, and snippets.

🦄
React'ing.

Robert Moggach robmoggach

🦄
React'ing.
Block or report user

Report or block robmoggach

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@robmoggach
robmoggach / RRM_utils.py
Created Feb 19, 2018 — forked from evitolins/RRM_utils.py
Maya Python Snippets
View RRM_utils.py
'''
This fixes a RRM bug (v1.4.7) where saved RRM setups do not preserve a
module's 'pinned' status.
'''
import maya.cmds as cmds
import maya.mel
def RRM_fixPinBug(objs):
for obj in objs:
trans = cmds.xform(obj,q=True, r=True, translation=True)
maya.mel.eval("RRM_PinProxies(1, 0);")
@robmoggach
robmoggach / ffmpeg-html5
Last active Oct 17, 2019 — forked from yellowled/ffmpeg-html5
Convert videos to proper formats for HTML5 video on Linux shell using ffmpeg. Will probably convert this to a bash script later, but for the time being, here's some examples. Not sure there have actually sensible dimensions and bitrates for web video.
View ffmpeg-html5
#!/usr/bin/env bash
FULLFILE="$1"
FILENAME=$(basename "$FULLFILE" | cut -d. -f1)
# webm
for size in 640x360; do
ffmpeg -i $FULLFILE -f webm -vcodec libvpx -acodec libvorbis -ab 128000 -crf 22 -s ${size} ${FILENAME}-${size}.webm
done
View vimeo_api.py
import os
import time
import urllib2
try:
import simplejson as json
except ImportError:
import json
import vimeo
@robmoggach
robmoggach / osx_automount_nfs.md
Created Jan 11, 2016 — forked from L422Y/osx_automount_nfs.md
Automounting NFS share in OS X into /Volumes
View osx_automount_nfs.md

I have spent quite a bit of time figuring out automounts of NFS shares in OS X...

Somewhere along the line, Apple decided allowing mounts directly into /Volumes should not be possible:

/etc/auto_master (see last line):

#
# Automounter master map
#
+auto_master		# Use directory service
View macosx-ipnat
$ sudo sysctl -w net.inet.ip.forwarding=1
$ sudo natd -interface en1
$ sudo ipfw add divert natd ip from any to any via en1
You can’t perform that action at this time.