This file contains hidden or 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
| // Discovering the path of JVM (if the server's `java` executable isn't the right version) | |
| import java.io.File; | |
| public class HackyLs { | |
| public static void main(String[] args) { | |
| // Input the directory you want to list here | |
| String jvmDirectoryPath = "/opt/"; | |
| File jvmDir = new File(jvmDirectoryPath); |
This file contains hidden or 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
| snippet ife | |
| if err != nil { | |
| ${1:panic(${0:err})} | |
| } |