Skip to content

Instantly share code, notes, and snippets.

@dyon
dyon / Default.sublime-keymap
Created December 30, 2013 16:41
Sublime Text custom Vintage keymaps
[
/* Vintage mode keybindings */
// Quick exit to command mode
{ "keys": ["j", "k"], "command": "exit_insert_mode",
"context":
[
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operand": false }
]
@dyon
dyon / unison-install.sh
Created November 27, 2013 15:13
Unison (version 2.45.28) install script.
# Install pre-requisites
sudo apt-get install build-essentials ocaml
# Get the sources
wget http://www.seas.upenn.edu/~bcpierce/unison/download/releases/beta/unison-2.45.28.tar.gz
# Untar them
tar xzvf unison-2.45.28.tar.gz
# Cd to the unpacked directory
cd unison-2.45.28
# Build unison (ignore the etags error when finished)
make NATIVE=yes UISTYLE=text
@dyon
dyon / laravel-codeception.md
Last active December 22, 2015 14:48
Laravel 4 code changes to integrate Codeception.

Laravel 4 and Codeception

  • Install Codeception via Composer.
    composer require "codeception/codeception:@stable"
  • Create the bootstrap in the app directory.
    codecept bootstrap app
  • Set the PhpBrowser url config in app/tests/acceptance.suite.yml.
  • Move the codeception.yml file to the root directory.
    mv app/codeception.yml codeception.yml
  • Adjust the paths in codeception.yml to reference app/tests rather than tests.
  • Move TestCase.php to the unit tests directory.
@dyon
dyon / update-trinitycore.sh
Created August 25, 2012 11:44 — forked from Zoidwaffle/update-trinitycore.sh
Attempts to make it easy to maintain an updated TrinityCore server on a Linux system
#!/bin/bash
########################################################################################
# Purpose : Updates TrinityCore
#######################################################################################
# Home for the trinity/server user (suggested user "trinity")
HOME="/home/trinity"
# Location of the ACE library, "/usr/lib" is default for system wide installation
LIBACE="/usr/lib"
@dyon
dyon / launch_sublime_from_terminal.markdown
Created April 22, 2012 10:40 — forked from artero/launch_sublime_from_terminal.markdown
Launch Sublime Text 2 from the Mac OS X Terminal

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.

open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl

You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html

Installation

@dyon
dyon / gist:2043046
Created March 15, 2012 08:53
Resharper 6 - Useful Shortcuts

Resharper 6 – Useful Shortcuts

General

alt+enter View action list
ctrl+alt+space Show suggestions
ctrl+alt+7 Comment/Uncomment code with line comment (// …)
ctrl+alt+8 Comment/Uncomment code with block comment (/* … */) Must define the shortcut in VS Settings for BlockComment command
@dyon
dyon / gist:2016240
Created March 11, 2012 12:19 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt