This howto describes installing the extra kernel modules for the Tomato open-source router firmware. We will install them in the /opt/extras area.
- Router running Shibby's fork of TomatoUSB
- entware installed to a USB stick mounted at /opt
| import maya.cmds as cmds | |
| import maya.utils as mutils | |
| def AEaddModelPanelModule( plug, uiLabel, annot): | |
| paneLayoutName = cmds.paneLayout(h=300) | |
| modelPanel = "customModelPanel" | |
| if cmds.modelPanel(modelPanel, q=1, ex=1): | |
| cmds.modelPanel(modelPanel, e=1, p=paneLayoutName) | |
| else: |
| class MayaRefParser(object): | |
| ''' | |
| This parses .ma file and get refrenced files info, store them in itself | |
| ''' | |
| def __init__(self , maFile=None): | |
| self.header = '' | |
| self.refHeader = '' | |
| self.otherHeader = '' | |
| self.contents = '' | |
| self.contentsLineNum = 0 |
| #!/usr/bin/env python | |
| from PyQt4.QtCore import * | |
| from PyQt4.QtGui import * | |
| from PyQt4 import QtGui, QtCore | |
| import sys | |
| import re | |
| import signal | |
| signal.signal(signal.SIGINT, signal.SIG_DFL) |
| # author: [email protected] The Tree Widget guy | |
| # todo | |
| # ctrl+d remove multiple line | |
| # double click go to line | |
| # ctrl+g go to line | |
| # ctrl+r sublime style | |
| try: | |
| qApp.removeEventFilter(filter) |
| from PyQt4.QtCore import Qt,QObject,QEvent | |
| from PyQt4.QtGui import QTextCursor,qApp | |
| import maya.cmds as mc | |
| import maya.mel as mel | |
| import maya.OpenMayaUI as apiUI | |
| import sip | |
| class CustomFilter(QObject): |
| import maya.mel as mm | |
| from numbers import Number | |
| import collections | |
| import sys | |
| import logging | |
| _logger = logging.getLogger(__file__) | |
| consoleHandler = logging.StreamHandler() | |
| _logger.addHandler(consoleHandler) | |
| _logger.setLevel(logging.INFO) |
| import os | |
| import sys | |
| from PyQt4.QtCore import * | |
| from PyQt4.QtGui import * | |
| from PyQt4 import uic | |
| import textwrap | |
| from functools import partial | |
| from PyQt4.QtCore import * | |
| from PyQt4.QtGui import * | |
| import maya.cmds as mc | |
| import maya.mel as mel | |
| class CustomFilter(QObject): | |
| def eventFilter(self, obj, event): |
| # !/bin/env bash | |
| imgur(){ | |
| for i in "$@";do | |
| curl -# -F "image"=@"$i" -H "Authorization: Client-ID 3e7a4deb7ac67da" https://api.imgur.com/3/upload.xml|\ | |
| grep -Eo '<[a-z_]+>http[^<]+'|sed 's/^<.\|_./\U&/g;s/_/ /;s/<.*>//' | sed 's/^.*imgur\.com\//http:\/\/imgur.com\//g;s/\.[^.]*$//' | xargs xdg-open | |
| done | |
| } | |
| imgur "$@" |