This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
execute pathogen#infect() | |
syntax on | |
set number | |
set expandtab | |
set tabstop=2 | |
set background=dark | |
set t_Co=256 | |
let g:solarized_termcolors=256 | |
let g:solarized_termtrans=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function start() { | |
docker build -rm -t myapp_image . | |
docker run -d -name myapp_container myapp_image | |
} | |
function stop() { | |
docker stop myapp_container && docker rm myapp_container | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class ViveCursor : MonoBehaviour { | |
public enum AxisType | |
{ | |
XAxis, | |
ZAxis | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//============================================================================= | |
// | |
// 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 | |
// |
OlderNewer