Skip to content

Instantly share code, notes, and snippets.

@oglops
oglops / __init__.py
Last active August 29, 2015 14:26
__init__.py modified for PyQt4-4.11.4-gpl-Py2.7-Qt4.8.6-x64-maya-2016
import os
import QtGui
if 'maya' not in str(QtGui.qApp.applicationName()).lower():
dll = os.path.abspath(__file__ + "/../../../../DLLs")
if dll not in os.environ["PATH"]:
os.environ["PATH"] = dll + os.pathsep + os.environ["PATH"]
print 'Not in Maya,insert Dlls dir to path:\n', os.environ["PATH"]
@oglops
oglops / houdini_setup_win.cmd
Last active August 29, 2015 14:27
initialize houdini 14 environment in any windows command prompt
@echo off
set "H=C:\Program Files\Side Effects Software\Houdini 14.0.395"
:: get houdini version
for %%v in (%H:"=%) do set HOUDINI_VERSION=%%v
:: convert to 8.3 short name
for %%f in ("%H%") do set H=%%~sf
:: replace \ with /
set H=%H:\=/%
set HB=%H%/bin
@oglops
oglops / houdini_setup_win.cmd
Last active August 29, 2015 14:27
有时候也许会想自己指定安装目录在哪
@echo off
if "%~1"=="" (
echo use default houdini install location:
set "H=C:\Program Files\Side Effects Software\Houdini 14.0.395"
) else (
set H=%1
)
:: strip quotes if they exist
set HBASE=%H%
@oglops
oglops / .config
Created September 8, 2015 07:55
crosstools-ng 1.21 config for netcore q3 / uclibc 0.9.30.1 / gcc 4.2.4 / kernel 2.6.32.67 / binutils 2.19.1a
#
# 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 / uClibc-0.9.30.3.buildroot.config
Last active September 8, 2015 08:33
config file for uClibc-0.9.30.3 generated with buildroot, using mip-unknown-linux-uclibc/uClibc-0.9.33.2.config as a template
#
# Automatically generated make config: don't edit
# Version: 0.9.30.3
# Tue Sep 8 16:11:09 2015
#
# TARGET_alpha is not set
# TARGET_arm is not set
# TARGET_avr32 is not set
# TARGET_bfin is not set
# TARGET_cris is not set
@oglops
oglops / configure.ac.patch
Created September 10, 2015 05:17
remove -Werror from ZBar configure.ac
--- configure.ac 2015-09-10 13:08:44.918431422 +0800
+++ configure.new.ac 2015-09-10 13:14:32.289924618 +0800
@@ -3,7 +3,7 @@
AC_INIT([zbar], [0.10], [[email protected]])
AC_CONFIG_AUX_DIR(config)
AC_CONFIG_MACRO_DIR(config)
-AM_INIT_AUTOMAKE([1.10 -Wall -Werror foreign subdir-objects std-options dist-bzip2])
+AM_INIT_AUTOMAKE([1.10 -Wall foreign subdir-objects std-options dist-bzip2])
AC_CONFIG_HEADERS([include/config.h])
AC_CONFIG_SRCDIR(zbar/scanner.c)
@oglops
oglops / cpld.bash
Created September 10, 2015 10:34
I call it cpld a simple utility for copying shared library dependencies to a given folder
#!/bin/bash
# Author : Hemanth.HM
# Email : hemanth[dot]hm[at]gmail[dot]com
# License : GNU GPLv3
#
function useage()
{
cat << EOU
Useage: bash $0 <path to the binary> <path to copy the dependencies>
@oglops
oglops / conf.mk
Created September 11, 2015 14:02
modified version so that it compiles with my toolchain for netcore q3 and install to my host computer temporarily
# conf.mk
# project build/install configs
# wcm, 2009.09.14 - 2013.01.08
# ===
## build configuration, standard gcc + libc:
CC = mipsel-unknown-linux-uclibc-gcc
CFLAGS = -Wall -Wextra -Wshadow -DNDEBUG -O2
#CFLAGS = -Wall -Wextra -Wshadow -O2
@oglops
oglops / perp.patch
Created September 11, 2015 17:05
for netcore q3 cross compiling
diff -Naur /home/oglop/Downloads/perp-2.07-original/perp-2.07/lasagna/Makefile /home/oglop/Downloads/perp-2.07-new/perp-2.07/lasagna/Makefile
--- /home/oglop/Downloads/perp-2.07-original/perp-2.07/lasagna/Makefile 2013-01-11 23:10:32.000000000 +0800
+++ /home/oglop/Downloads/perp-2.07-new/perp-2.07/lasagna/Makefile 2015-09-12 00:55:07.823993600 +0800
@@ -877,7 +877,7 @@
## generate outvec_STDOUT.h:
outvec/outvec_STDOUT.h : outvec/mk_outvec
- ./outvec/mk_outvec > outvec/outvec_STDOUT.h
+# ./outvec/mk_outvec > outvec/outvec_STDOUT.h
@oglops
oglops / tomato shibby build log
Last active September 14, 2015 09:06
v131 max + SAMBA3
[oglop@localhost src-rt]$
[oglop@localhost src-rt]$ time make bin OPENVPN=y BBEXTRAS=y EBTABLES=y IPV6SUPP=y B=E BUILD_DESC="Max" USB="" NOCAT=y NFS=y SNMP=y DNSCRYPT=y PPTPD=y TOR=y IPSEC=y SAMBA3=y
make[1]: Entering directory `/home/oglop/tomato/tomato/release/src-rt'
echo '#ifndef TOMATO_PROFILE' > router/shared/tomato_profile.h
echo '#define TOMATO_N 1' >> router/shared/tomato_profile.h
echo '#define PROFILE_G 1' >> router/shared/tomato_profile.h
echo '#define PROFILE_N 2' >> router/shared/tomato_profile.h
echo '#define TOMATO_PROFILE PROFILE_N' >> router/shared/tomato_profile.h
echo '#define TOMATO_PROFILE_NAME "N"' >> router/shared/tomato_profile.h
echo '#define TOMATO_BUILD_NAME "E"' >> router/shared/tomato_profile.h