Skip to content

Instantly share code, notes, and snippets.

View rjmoggach's full-sized avatar
🦄
React'ing.

Robert Moggach rjmoggach

🦄
React'ing.
View GitHub Profile
@rjmoggach
rjmoggach / RRM_utils.py
Created February 19, 2018 18:02 — forked from evitolins/RRM_utils.py
Maya Python Snippets
'''
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);")
@rjmoggach
rjmoggach / framestore_setup.md
Last active January 31, 2018 18:06
Configuring A New Framestore for Autodesk Flame

Initial Checks

After Red Hat Installation is complete, login to your new installation.

Default Autodesk Login

User: root Pass: password

1) Check /etc/fstab to verify whether or not StorageMedia entry has been added.

@rjmoggach
rjmoggach / chart_all_coins.sh
Created January 27, 2018 15:30
Chart & Classify Bittrex Coins
#!/usr/bin/env bash
# COINS=( 1ST 2GIVE ABY ADA ADT ADX AEON AGRS AMP ANT )
COINS=( 1ST 2GIVE ABY ADA ADT ADX AEON AGRS AMP ANT \
APX ARDR ARK AUR BAT BAY BCC BCY BITB BLITZ \
BLK BLOCK BNT BRK BRX BSD BTC BTCD BTG BURST \
BYC CANN CFI CLAM CLOAK CLUB COVAL CPC CRB CRW \
CURE CVC DASH DCR DCT DGB DMD DNT DOGE DOPE DTB \
DYN EBST EDG EFL EGC EMC EMC2 ENG ENRG ERC ETC \
@rjmoggach
rjmoggach / overclock_nvidia.sh
Created November 20, 2017 15:33
overclock nvidia bash script
#!/usr/bin/env bash
DEFAULT_FAN=65
DEFAULT_MEM=1500
DEFAULT_GPU=150
DEFAULT_POW=200
echo "Setting up ${GPU_COUNT} GPU(s)..."
GPU_COUNT="$(nvidia-smi -L | wc -l)"
@rjmoggach
rjmoggach / profitcoin.py
Created November 16, 2017 02:45
python script to return currently most profitable coins to mine
#!/usr/bin/env python
import urllib2
import json
import argparse
SRC_META = {
'whattomine': {
'url': "https://whattomine.com/coins.json",
'sort_key': 'profitability',
@rjmoggach
rjmoggach / idmx.py
Created September 28, 2017 14:35
Identity Matrix Locator Creator
import maya.cmds as cmds
import maya.mel as mel
import maya.OpenMaya as OpenMaya
class IdMx():
"""
Identity Matrix Locator Creator Class
written by Robert Moggach, 2010
This creates an animated locator that represents
the identity matrix for two selected
@rjmoggach
rjmoggach / _divider.scss
Created March 11, 2016 22:08
Bootstrap 4 Column Dividers
@import 'variables';
$divider-height: 100%;
@mixin make-column-dividers($breakpoints: $grid-breakpoints) {
// Common properties for all breakpoints
%col-divider {
position: absolute;
content: " ";
top: (100% - $divider-height)/2;
@rjmoggach
rjmoggach / ffmpeg-html5
Last active July 15, 2020 05:16 — 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.
#!/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
import os
import time
import urllib2
try:
import simplejson as json
except ImportError:
import json
import vimeo
@rjmoggach
rjmoggach / osx_automount_nfs.md
Created January 11, 2016 23:15 — forked from L422Y/osx_automount_nfs.md
Automounting NFS share in OS X into /Volumes

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