This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Source: Presentation of Hadi Hariri (https://www.parleys.com/tutorial/intellij-idea-tips-tricks) | |
Set Keymap in Preferences to: Mac OS 10.5+ | |
Recently opened Files --> ⌘E | |
Recently Edited Files --> ⇧⌘E | |
Hide views (e.g. Project) --> ⇧⎋ (⇧ escape-key) | |
In all Navigations, you can use Camel Case (e.g. FIS for FileInputStream) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.commons.vfs2.VFS | |
import org.apache.commons.vfs2.provider.ftp.FtpFileObject | |
import java.util.regex.Pattern | |
def fsManager = VFS.manager | |
def movieDir = fsManager.resolveFile("ftp://root:[email protected]/media/USB2.0Drive") | |
def set = new HashSet<String>() | |
movieDir.children.each { FtpFileObject item -> | |
if (item.name.toString().endsWith(".ts")) { |