Skip to content

Instantly share code, notes, and snippets.

@veysby
veysby / gist:e07fbd134f5482018319
Created December 9, 2014 04:42
Hints: Eclipse | STS on Mac
Key Bingings - Eclipse / Spring Source Tool Suite
Source: http://zeroturnaround.com/rebellabs/top-java-ide-keyboard-shortcuts-for-eclipse-intellij-idea-netbeans/
Eclipse STS
SEARCH
Find Usages ⌘ + Shift + G ⌘ + Shift + G
Find / Replace in file ⌘ + F ⌘ + F
Find / Replace in projects Ctrl + H Ctrl + H
Find next ⌘ + K ⌘ + K
@veysby
veysby / gist:3481683ccadbdb19b5de
Last active August 29, 2015 14:10 — forked from sgergely/gist:3793166
Hints: Midnight Commander on Mac
----- 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
@veysby
veysby / gist:2f15661eac5d4aff2698
Created October 11, 2014 12:45
SH: script base folder
`cd $(dirname $0) && pwd`
@veysby
veysby / gist:9523147395b00ba441d6
Created October 11, 2014 12:34
MSSQL: list schema tables, indexes, etc
SELECT
t .NAME AS TableName,
i .name as indexName,
p .[Rows],
sum(a .total_pages) as TotalPages ,
sum(a .used_pages) as UsedPages ,
sum(a .data_pages) as DataPages ,
(sum( a.total_pages ) * 8) / 1024 as TotalSpaceMB,
(sum( a.used_pages ) * 8) / 1024 as UsedSpaceMB,
(sum( a.data_pages ) * 8) / 1024 as DataSpaceMB