Skip to content

Instantly share code, notes, and snippets.

View thestonefox's full-sized avatar

The Stonefox thestonefox

View GitHub Profile
@thestonefox
thestonefox / thestonefox-solarized-tmux
Created February 8, 2014 13:17
Alternative Solarized tmux theme
#### COLOUR (Solarized 256)
# default statusbar colors
set-option -g status-bg colour235 #base02
set-option -g status-fg colour136 #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg colour244 #base0
set-window-option -g window-status-bg default
@thestonefox
thestonefox / docker-root-ssh-access
Created February 21, 2014 14:27
SSH Access For Docker
#Setup SSH Access
RUN apt-get -q -y update
RUN apt-get install -q -y openssl whois openssh-server vim nano
RUN mkdir -p /root/.ssh
RUN chown -R root:root /root/.ssh
RUN chmod -R 600 /root/.ssh/
RUN mkdir -p /var/run/sshd
RUN printf "#!/bin/bash \
\n echo \"root:password\" |chpasswd \
@thestonefox
thestonefox / env_setup.sh
Last active August 29, 2015 14:05
Base Environment Setup
#!/bin/bash
echo "Moving to home directory"
cd ~/
echo "Setting up git defaults"
git clone https://github.com/thestonefox/git-config.git
ln -s git-config/.gitconfig ~/.gitconfig
ln -s git-ignore/.gitignore ~/.gitignore
git-config/helpers.sh
@thestonefox
thestonefox / nodejs-install
Last active August 29, 2015 14:15
Ubuntu NodeJS Install (Requires sudo su)
apt-get install -y python-software-properties python &&
add-apt-repository ppa:chris-lea/node.js &&
echo "deb http://us.archive.ubuntu.com/ubuntu/ precise universe" >> /etc/apt/sources.list &&
apt-get -q -y update &&
apt-get install -y nodejs
@thestonefox
thestonefox / phantomjs-install
Created February 11, 2015 09:16
Install PhantomJS (Run as sudo su)
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2 &&
mv phantomjs-1.9.7-linux-x86_64.tar.bz2 /usr/local/share/. &&
cd /usr/local/share/ &&
tar xjf phantomjs-1.9.7-linux-x86_64.tar.bz2 &&
ln -s /usr/local/share/phantomjs-1.9.7-linux-x86_64 /usr/local/share/phantomjs &&
ln -s /usr/local/share/phantomjs/bin/phantomjs /usr/bin/phantomjs
@thestonefox
thestonefox / apt-install
Created February 12, 2015 07:01
Recommended Ubuntu Dependencies
sudo apt-get update && sudo apt-get install git-core curl git build-essential libssl-dev libreadline-dev autoconf bison libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libncurses5-dev automake libtool libpq-dev fontconfig docker.io
@thestonefox
thestonefox / CustomTip.cs
Created July 16, 2016 08:23
A basic concept of how to implement a custom tip in VRTK
using UnityEngine;
using System.Collections;
using VRTK;
public class CustomTip : MonoBehaviour {
private VRTK_WorldPointer pointer;
private GameObject cubeCursor;
private GameObject capsuleCursor;
private MeshRenderer sphereCursor;
@thestonefox
thestonefox / SteamVR_FirstPersonController.cs
Last active March 13, 2017 11:49
A Unity3d 5.3 script to add SteamVR functionality such as object interaction/grabbing/throwing, laser pointer and teleport movement with blink (Requires Unity SteamVR plugin)
//=============================================================================
//
// Purpose: Add player ability on SteamVR CameraRig to:
//
// * Trackpad press down: project laser pointer from Touch Controller
// * Trackpad release: teleport player with blink to laser point destination
// * Trigger click: grab any object that has a custom "Grabbable" tag applied
// * Trigger release: release the current grabbed object with relative force
// * Application Menu: reset the position of last grabbed object to controller
//
@thestonefox
thestonefox / unitykeys.py
Created November 17, 2017 14:15
Blender 2.79 Key mappings to mimic Unity3d view navigation
import bpy
import os
def kmi_props_setattr(kmi_props, attr, value):
try:
setattr(kmi_props, attr, value)
except AttributeError:
print("Warning: property '%s' not found in keymap item '%s'" %
(attr, kmi_props.__class__.__name__))
except Exception as e:
@thestonefox
thestonefox / gist:b694688fe4b0f9d31e768cf5e59039a4
Created October 23, 2018 21:03
VRTK Education Content Plans
  • Tutorials [Leaning Oriented] (Videos)
    • Small/Medium projects that go from blank state to a completed goal oriented project (e.g. make a kitchen you can teleport around and interact with things)
    • Predominately videos on the VRTK Youtube channel maybe split into a series (playlist) of videos perhaps no more than 10/15 minutes long each.
    • Feasible to have written tutorials but they would probably form chapters of a book
  • How To Guides [Goal Oriented] (Videos/Written)
    • Step by step guides on how to do something with VRTK such as set up a CameraRig, setup teleporting, set up a pointer. More advanced How To Guides could be how to customise a pointer, how to change the underlying structures of the interactable prefab, etc.
  • Perhaps a even split between written guides with video versions simply going through the guides. The written guide could contain a link to the video and the video could contain a link to the written guide. These guides would be self contained and the vide