Skip to content

Instantly share code, notes, and snippets.

set-option -g default-shell /usr/bin/fish
set -s escape-time 1
set -g prefix C-v
setw -g mode-keys vi
set-option -g base-index 1
setw -g pane-base-index 1
@RoryDungan
RoryDungan / Internal-DeferredShading.shader
Created September 29, 2016 03:37
Unity 5.3+ cel shading
Shader "Custom/Internal-DeferredShading" {
Properties {
_LightTexture0 ("", any) = "" {}
_LightTextureB0 ("", 2D) = "" {}
_ShadowMapTexture ("", any) = "" {}
_SrcBlend ("", Float) = 1
_DstBlend ("", Float) = 1
}
SubShader {
@RoryDungan
RoryDungan / Preferences.sublime-settings
Last active April 5, 2016 01:51
Sublime Text 3 settings
{
"added_words":
[
"favourite"
],
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"ignored_packages":
[
],
@RoryDungan
RoryDungan / .vimrc
Last active November 12, 2016 02:16
.vimrc
" Indentation
set smartindent
" set tabstop=2
" set shiftwidth=2
set tabstop=4
set shiftwidth=4
set expandtab
set autoindent
" Enable autocompletion for file paths
@RoryDungan
RoryDungan / mouse.sh
Created January 4, 2016 09:03
Fix crazy fast cursor movement with Razer DeathAdder mouse on Ubuntu
#!/bin/bash
xinput list |
grep -E 'DeathAdder.*pointer' |
awk -F"=" '{print $2}' |
awk '{print $1}' |
while read -r id
do
xinput --set-prop $id "Device Accel Constant Deceleration" 3
xinput --set-prop $id "Device Accel Velocity Scaling" 1
done