Skip to content

Instantly share code, notes, and snippets.

Nate Allison juggernate

Block or report user

Report or block juggernate

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
@juggernate
juggernate / 1-macOS-10.14-mojave-setup.md
Created May 1, 2019 — forked from kevinelliott/1-macOS-10.14-mojave-setup.md
macOS 10.14 Mojave Mostly-Automated Setup
View 1-macOS-10.14-mojave-setup.md

To support my open-source work, consider adding me on Patreon.

macOS 10.14 Mojave Mostly-Automated Setup

An easy to refer to document for regularly setting up macOS 10.14 Mojave.

Controversy

The topic of recipe-based frequent fresh reinstalls of macOS is a controversial issue. Some people are against reinstalling macOS, citing that they have never had an issue with Apple provided upgrade installs.

@juggernate
juggernate / MayaDockingClass.py
Created Mar 9, 2018 — forked from liorbenhorin/MayaDockingClass.py
Maya 2017 PySide2 Docking Qt QMainWindow
View MayaDockingClass.py
"""
This is what you need to do in order to get a qt window to dock next to maya channel box,
In all maya versions, including 2017 with PySide2
"""
__author__ = "liorbenhorin@gmail.com"
import sys
import os
import logging
import xml.etree.ElementTree as xml
@juggernate
juggernate / maya_help_chrome.py
Created Mar 8, 2018
Maya Maya on Windows open Help in Chrome instead of IE
View maya_help_chrome.py
import _winreg
htm = _winreg.OpenKey(_winreg.HKEY_CURRENT_USER,"SOFTWARE\\Classes\\.htm", 0, _winreg.KEY_ALL_ACCESS)
_winreg.SetValueEx(htm, '', 0, 1, "ChromeHTML")
_winreg.CloseKey(htm)
@juggernate
juggernate / buildMaya2018.bat
Created Mar 8, 2018
scons build mgear Maya 2018 x64
View buildMaya2018.bat
scons -j8 no-cache=1 with-maya="C:\Program Files\Autodesk\Maya2018" x64=1
@juggernate
juggernate / rename_selected_relation_box.py
Created Sep 11, 2017 — forked from awforsythe/rename_selected_relation_box.py
Allows the user to rename boxes in MotionBuilder relation constraints.
View rename_selected_relation_box.py
'''
rename_selected_relation_box.py
Written by Alex Forsythe (awforsythe.com)
When executed, attempts to locate any selected box within any relation
constraint in the scene. If a selected relation box is found, prompts the user
to enter a new name for that box. Allows relation boxes to be given more
descriptive names. I'd recommend binding this script to a keyboard shortcut
(see MotionBuilder/bin/config/Scripts/ActionScript.txt) for quick access.
'''
@juggernate
juggernate / appify.sh
Created Mar 27, 2017 — forked from oubiwann/appify.sh
appify — create the simplest possible Mac app from a shell script (adds an application icon)
View appify.sh
#!/usr/bin/env bash
VERSION=4.0.1
SCRIPT=`basename "$0"`
APPNAME="My App"
APPICONS="/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericApplicationIcon.icns"
OSX_VERSION=`sw_vers -productVersion`
PWD=`pwd`
function usage {
View 1-macOS-10.12-sierra-setup.md

macOS 10.12 Sierra Setup

Custom recipe to get macOS 10.12 Sierra running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my 10.11 El Capitan setup recipe and 10.10 Yosemite setup recipe. I am currently tweaking this for 10.12 Sierra and expect to refine this gist over the next few weeks.

I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. I generally reinstall each computer from scratch every 6 months, and I do not perform upgrades between releases.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your o

@juggernate
juggernate / gist:bf1eabce167ceaa4d1c6
Created Feb 16, 2016 — forked from clintel/gist:1155906
Fenced code in bullet lists with GitHub-flavoured MarkDown??
View gist:bf1eabce167ceaa4d1c6

Fenced code blocks inside ordered and unordered lists

  1. This is a numbered list.

  2. I'm going to include a fenced code block as part of this bullet:

    Code
    More Code
    
@juggernate
juggernate / accepts.py
Last active Sep 22, 2015
Decorator to check method param types
View accepts.py
def accepts(exception,**types):
def check_accepts(f):
assert len(types) == f.func_code.co_argcount, \
'accept number of arguments not equal with function number of arguments in "%s"' % f.func_name
def new_f(*args, **kwds):
for i,v in enumerate(args):
if types.has_key(f.func_code.co_varnames[i]) and \
not isinstance(v, types[f.func_code.co_varnames[i]]):
raise exception("arg '%s'=%r does not match %s" % \
(f.func_code.co_varnames[i],v,types[f.func_code.co_varnames[i]]))
View rxpy_maya_pyside.py
"""
Mod RxPy timeflies example to work with Qt(PySide) in Autodesk Maya
"""
from rx.subjects import Subject
from rx.concurrency import QtScheduler
import maya.OpenMayaUI as omui
from PySide import QtCore
You can’t perform that action at this time.