Skip to content

Instantly share code, notes, and snippets.

Sublime Text 2 – Useful Shortcuts (Mac OS X)

OS X Keys

command
option
control
shift

General

@kjunggithub
kjunggithub / gist:6775197
Last active December 24, 2015 09:09
Sublime Text 2 SublimeLinter User Settings
{
"sublimelinter": true,
"sublimelinter_executable_map":
{
"php":"/usr/local/bin/php",
"css":"/usr/local/bin/node",
"html":"/usr/local/bin/tidy",
"js":"/usr/local/bin/node"
},
"sublimelinter_popup_errors_on_save": true,
@kjunggithub
kjunggithub / Gruntfile.js
Created December 11, 2013 20:44
Gruntfile.js
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
// jshint
jshint: {
options: {
jshintrc: '.jshintrc'
},
all: [
@kjunggithub
kjunggithub / gist:8066375
Last active January 1, 2016 00:28
Set default editor for git
git config --global core.editor "subl -n -w"
git config --global core.editor "vim"
@kjunggithub
kjunggithub / gist:8330157
Last active May 30, 2022 03:40
git hubflow cheaetsheet

Git HubFlow Cheat Sheet

Preparing the repository

Create the repository on GitHub/Bitbucket. Once created, clone the created repository to your local machine using:

git clone git@github.com:username/repository.git

CD into the repository folder and run the init command to enable to hub flow tools:

cd repo_name

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

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

error: function(jqXHR, textStatus, errorThrown) {
console.log('=============');
console.log(arguments);
alert('HTTP Error: '+errorThrown+' | Error Message: '+textStatus);
console.log('=============');
},
@kjunggithub
kjunggithub / gist:dbf31d33aa8fc72c180f
Created May 15, 2014 17:27
start ngrok with subdomain
$ ngrok -subdomain=example 80