Skip to content

Instantly share code, notes, and snippets.

@gig3m
gig3m / WindowsSetup.md
Last active September 15, 2018 05:33 — forked from valeryan/WindowsSetup.md
Local WSL Setup

Windows Development Environment Setup

This document outlines the steps I take to setup my environment on windows using WSL. This requires being on the windows 10 Creative update or greater with an Ubuntu 16 installed as WSL.

Windows Setup Prerequisites

  1. Install WSL.
  2. Install Terminus and setup to use bash for windows (optional).
  3. Install Acrylic DNS Proxy.
  4. Download WSL Startup Scripts.
  5. Install Xming (optional).
#showtooltip Frostbolt
/script UIErrorsFrame:Hide()
/cast Presence of Mind
/script UIErrorsFrame:Clear()
/script UIErrorsFrame:Show()
/cast Frostbolt
/cast Freeze
@gig3m
gig3m / Default (OSX).sublime-keymap
Created April 19, 2013 04:41
Sublime Text 2 Vintage Lefty Remap (ijkl movement)
[
{ "keys": ["h"], "command": "enter_insert_mode",
"context":
[
{"key": "setting.command_mode"},
{"key": "selection_empty"}
]
},
{ "keys": ["H"], "command": "enter_insert_mode", "args":
{"insert_command": "vi_move_to_first_non_white_space_character"},
@gig3m
gig3m / .vimrc
Created April 19, 2013 04:16
Remap Vim directionals to ijkl (left handed video games)
noremap h i
noremap i k
noremap k j
noremap j h

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘KB toggle side bar
⌘⇧P command prompt
⌃ ` python console
⌘⇧N new window (useful for new project)
@gig3m
gig3m / Player.rb
Created August 18, 2012 17:33
Player.rb file for Ruby Warrior, through level 6 beginner
DEBUG=true
class Player
def initialize
@last_health = 20
@max_health = 20
@dying_health = 8
@direction = :forward #initial direction
@retreating = 0
end
function paladin_ret(self)
-- Rewrite for CDO by Kyletxag, altered from GoCargo's write.
local myHealthPercent = UnitHealth("player")/UnitHealthMax("player") * 100
local targetHealthPercent = UnitHealth("target")/UnitHealthMax("target") * 100
local myManaPercent = UnitMana("player")/UnitManaMax("player") * 100
local hPower = UnitPower("player","9")
local race = UnitRace("player")
local inqDuration = cdo.buff_duration("player","Inquisition")
-- Interrupt, works equally well with "focus" instead of "target"
function paladin_ret(self)
-- Rewrite for CDO by Kyletxag, altered from GoCargo's write.
local myHealthPercent = UnitHealth("player")/UnitHealthMax("player") * 100
local targetHealthPercent = UnitHealth("target")/UnitHealthMax("target") * 100
local myManaPercent = UnitMana("player")/UnitManaMax("player") * 100
local hPower = UnitPower("player","9")
local race = UnitRace("player")
local inqDuration = cdo.buff_duration("player","Inquisition")
-- Interrupt, works equally well with "focus" instead of "target"
function paladin_ret(self)
-- Rewrite for CDO by Kyletxag, altered from GoCargo's write.
local myHealthPercent = UnitHealth("player")/UnitHealthMax("player") * 100
local targetHealthPercent = UnitHealth("target")/UnitHealthMax("target") * 100
local myManaPercent = UnitMana("player")/UnitManaMax("player") * 100
local hPower = UnitPower("player","9")
local race = UnitRace("player")
local inqDuration = cdo.buff_duration("player","Inquisition")
-- Interrupt, works equally well with "focus" instead of "target"
function paladin_ret(self)
-- Rewrite for CDO by Kyletxag, altered from GoCargo's write.
local myHealthPercent = UnitHealth("player")/UnitHealthMax("player") * 100
local targetHealthPercent = UnitHealth("target")/UnitHealthMax("target") * 100
local myManaPercent = UnitMana("player")/UnitManaMax("player") * 100
local hPower = UnitPower("player","9")
local race = UnitRace("player")
local inqDuration = cdo.buff_duration("player","Inquisition")
local cdProgression
local cdProgressionZeal