Skip to content

Instantly share code, notes, and snippets.

@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
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
@sgergely
sgergely / gist:3793166
Created September 27, 2012 09:43
Midnight Commander Keyboard Shortcuts for Mac OSX
----- Esc -----
Quick change directory: Esc + c
Quick change directory history: Esc + c and then Esc + h
Quick change directory previous entry: Esc + c and then Esc + p
Command line history: Esc + h
Command line previous command: Esc + p
View change: Esc + t (each time you do this shortcut a new directory view will appear)
Print current working directory in command line: Esc + a
Switch between background command line and MC: Ctrl + o
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name
@getify
getify / gist:713779
Created November 24, 2010 15:09
loading google analytics using LABjs
<!DOCTYPE html>
<html>
<head>
<title>LABjs Demo</title>
</head>
<body>
<!-- some stuff -->
<script src="/js/LAB.js"></script>
@sasezaki
sasezaki / phpunit34.sh
Created December 9, 2011 12:50
Use old PHPUnit (3.4 & 3.5) by installed via pyrus
#!/bin/sh
PYRUS=/path/to/pyrus.phar
php $PYRUS . set bin_dir ./bin
pear download components.ez.no/Base
pear download components.ez.no/ConsoleTools
php $PYRUS . channel-discover pear.phpunit.de
php $PYRUS . channel-discover components.ez.no
php $PYRUS . channel-discover pear.symfony-project.com
php $PYRUS . install Base-1.8.tgz
php $PYRUS . install ConsoleTools-1.6.1.tgz
@msluyter
msluyter / gist:1925069
Created February 27, 2012 16:22
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after
@dimkalinux
dimkalinux / manifest.xml
Created June 18, 2011 07:45
Extension template for PunBB 1.3
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE extension SYSTEM "ext-1.0.dtd">
<extension engine="1.0">
<id></id>
<title></title>
<description></description>
<author></author>
<version>0.1</version>