Skip to content

Instantly share code, notes, and snippets.

View Era-Dorta's full-sized avatar

Era Dorta Era-Dorta

View GitHub Profile
@Era-Dorta
Era-Dorta / tensorflow_cc_windows
Last active January 8, 2018 18:32
Configuration for a Visual Studio project that depends on tensorflow.dll in C++
Follow instructions in the following link to compile tensorflow.
Build as a shared library -Dtensorflow_BUILD_SHARED_LIB=ON
https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/cmake
Create new empty project in visual studio.
A good example to test as main.cpp would be
https://github.com/tensorflow/tensorflow/blob/r1.2/tensorflow/examples/label_image/main.cc
The following assumes that Tensorflow was downloaded in C:\tensorflow-r1.2
************
@Era-Dorta
Era-Dorta / create-efi-keys.sh
Last active April 16, 2024 08:10
Sign kernel modules on Ubuntu, useful for Nvidia drivers in UEFI system
# VERY IMPORTANT! After each kernel update or dkms rebuild the modules must be signed again with the script
# ~/.ssl/sign-all-modules.sh
# Place all files in ~/.ssl folder
mkdir ~/.ssl
cd ~/.ssl
# Generate custom keys with openssl
openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -subj "/CN=Owner/"
@Era-Dorta
Era-Dorta / mexopts.sh
Created January 8, 2016 15:03
Matlab 2015 custom compiler
#
# mexopts.sh Shell script for configuring MEX-file creation script,
# mex. These options were tested with the specified compiler.
#
# usage: Do not call this file directly; it is sourced by the
# mex shell script. Modify only if you don't like the
# defaults after running mex. No spaces are allowed
# around the '=' in the variable assignment.
#
# Note: For the version of system compiler supported with this release,
@Era-Dorta
Era-Dorta / mayaOnUbuntu.sh
Last active January 20, 2020 14:33 — forked from heiths/mayaOnUbuntu.sh
Updated for Maya 2015 SP5 and ubuntu 14.04
#!/bin/bash
#Heith Seewald 2012
#Garoe Dorta 2015
# Also based on https://gist.github.com/MichaelLawton/ee27bf4a0f591bed19ac
#Feel free to extend/modify to meet your needs.
#Maya on Ubuntu v.1
#This is the base installer... I’ll add more features in later versions.
#if you have any issues, feel free email me at heiths@gmail.com
#### Lets run a few checks to make sure things work as expected.