Skip to content

Instantly share code, notes, and snippets.

@oglops
oglops / ct-ng.config
Created March 10, 2016 08:24
enable libssp
#
# Automatically generated file; DO NOT EDIT.
# Crosstool-NG Configuration
#
CT_CONFIGURE_has_xz=y
CT_CONFIGURE_has_svn=y
CT_MODULES=y
#
# Paths and misc options
@oglops
oglops / ct-ng-1.22-debugger.config
Last active March 25, 2016 06:26
ct-ng 1.22 config file with debugger on/off; uclibc 0.9.33.2 config manually edited, used for shadowsocks cross compiling for tomato routers
#
# Automatically generated file; DO NOT EDIT.
# Crosstool-NG Configuration
#
CT_CONFIGURE_has_xz=y
CT_CONFIGURE_has_svn=y
CT_MODULES=y
#
# Paths and misc options
// Warning: file: /usr/autodesk/maya2015-x64/scripts/startup/initialStartup.mel line 195: Y-axis is already the Up-axis //
updateRendererUI;
updateRendererUI;
updateRendererUI;
file -f -new;
// Warning: file: /usr/autodesk/maya2015-x64/scripts/startup/setNamedPanelLayout.mel line 151: Viewport 2.0 is not supported by your current graphics configuration or graphics driver version.
The application is reverting to the legacy default viewport, please correct your graphics configuration or set the "Default viewport" preference to "Legacy Default Viewport" to prevent this error from recurring. //
// Result: untitled //
commandPort -securityWarning -name commandportDefault;
// Mental ray for Maya: using startup file /usr/autodesk/mentalrayForMaya2015//maya.rayrc.
@oglops
oglops / notepad.html
Created April 12, 2016 07:35 — forked from jdkanani/notepad.html
This bookmarklet gives you a code editor in your browser with a single click.
data:text/html, <style type="text/css">.e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div class="e" id="editor"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("editor");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script>
<!--
For other language: Instead of `ace/mode/ruby`, Use
Markdown -> `ace/mode/markdown`
Python -> `ace/mode/python`
C/C++ -> `ace/mode/c_cpp`
Javscript -> `ace/mode/javascript`
Java -> `ace/mode/java`
Scala- -> `ace/mode/scala`
// ==UserScript==
// @name 和谐华新助手
// @include http://bbs.huasing.org/*
// @version 0.22
// @description Hide posts from penzi
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js
// @grant GM_addStyle
// ==/UserScript==
// 可以自己加的 ^_^ 我这是测试数据而已 不是攻击啊,别喷我
@oglops
oglops / ssh_config
Created April 17, 2016 20:36
centos 7.2 default /etc/ssh/ssh_config
# $OpenBSD: ssh_config,v 1.28 2013/09/16 11:35:43 sthen Exp $
# This is the ssh client system-wide configuration file. See
# ssh_config(5) for more information. This file provides defaults for
# users, and the values can be changed in per-user configuration files
# or on the command line.
# Configuration data is parsed as follows:
# 1. command line options
# 2. user-specific file
@oglops
oglops / PyQt4-Qt4.modified.nsi
Created June 28, 2016 03:58
pyqt 4.11.4 PyQt4-Qt4.nsi
# PyQt4 with Qt4 NSIS installer script.
#
# Copyright (c) 2015 Riverbank Computing Limited <[email protected]>
#
# This file is part of PyQt4.
#
# This file may be used under the terms of the GNU General Public License
# version 3.0 as published by the Free Software Foundation and appearing in
# the file LICENSE included in the packaging of this file. Please review the
# following information to ensure the GNU General Public License version 3.0
@oglops
oglops / mayaRefParser.py
Created June 28, 2016 20:11
a class to parse .ma file to retrieve reference information with regex
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
@oglops
oglops / syncScriptEditor.py
Last active September 6, 2021 03:06
sync maya script editor tabs among multiple maya sessions
import re
import maya.cmds as mc
import maya.mel as mel
def get_optionvar(var, type='iv'):
pref_file = mc.internalVar(userPrefDir=1)+'userPrefs.mel'
values = []
with open(pref_file) as f:
for line in f.readlines():
@oglops
oglops / userSetup.py
Created July 8, 2016 06:55
add two toolbar button to script editor when maya starts up
import maya.utils as mu
import maya.cmds as mc
import maya.mel as mel
def custom_script_editor():
'''launch from maya command line script editor icon.'''
def cmdWnd(arg=None):
mc.ScriptEditor()
import syncScriptEditor as SE
SE.add_script_editor_toolbar()