Skip to content

Instantly share code, notes, and snippets.

@sgergely
sgergely / gist:3793166
Created Sep 27, 2012
Midnight Commander Keyboard Shortcuts for Mac OSX
View gist:3793166
----- 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
@msluyter
msluyter / gist:1925069
Created Feb 27, 2012
Sublime Text 2 - Useful Shortcuts
View gist:1925069

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
@sasezaki
sasezaki / phpunit34.sh
Created Dec 9, 2011
Use old PHPUnit (3.4 & 3.5) by installed via pyrus
View phpunit34.sh
#!/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
@lucasfais
lucasfais / gist:1207002
Created Sep 9, 2011
Sublime Text 2 - Useful Shortcuts
View gist:1207002

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
@dimkalinux
dimkalinux / manifest.xml
Created Jun 18, 2011
Extension template for PunBB 1.3
View manifest.xml
<?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>
@getify
getify / gist:713779
Created Nov 24, 2010
loading google analytics using LABjs
View gist:713779
<!DOCTYPE html>
<html>
<head>
<title>LABjs Demo</title>
</head>
<body>
<!-- some stuff -->
<script src="/js/LAB.js"></script>