Useful when you want to do cross-domain testing with a single machine
root:~# lsmod
root:~# modinfo dummy
filename: /lib/modules/3.12.8-1-ARCH/kernel/drivers/net/dummy.ko.gz
alias: rtnl-link-dummy
import java.util.EnumSet | |
import java.nio.file.{Files, Path, Paths} | |
import java.nio.file.StandardCopyOption | |
import java.nio.file.attribute.{PosixFilePermission, PosixFilePermissions} | |
// Exception handling omitted for brevity | |
def createTempRedisBinary(binaryName: String = "redis-server-2.8.19"): Path = { | |
val classLoader = Thread.currentThread.getContextClassLoader | |
val inputStream = classLoader.getResourceAsStream(binaryName) | |
val tempBinary = Files.createTempFile("binaryPrefix-", "-binarySuffix") |
// Guava 14.0 - bundled with Spark | |
// https://github.com/google/guava/blob/v14.0/guava/src/com/google/common/io/Resources.java#L191 | |
/** | |
* Returns a {@code URL} pointing to {@code resourceName} if the resource is | |
* found in the class path. {@code Resources.class.getClassLoader()} is used | |
* to locate the resource. | |
*/ | |
public static URL getResource(String resourceName) { | |
URL url = Resources.class.getClassLoader().getResource(resourceName); | |
checkArgument(url != null, "resource %s not found.", resourceName); |
Useful when you want to do cross-domain testing with a single machine
root:~# lsmod
root:~# modinfo dummy
filename: /lib/modules/3.12.8-1-ARCH/kernel/drivers/net/dummy.ko.gz
alias: rtnl-link-dummy
127.0.0.1 download.nus.edu.sg |
Open dialog for font and style selection
:set guifont=*
Display current font selection will be display, for example:
" <font> <type> <size>
" guifont=MonacoB Bold 9
Login to your remote-clusters and run ktutil
. In this example, username is hoa
and realm is SAIKOCAT.COM
[hoa@remote-clusters ~]$ ktutil
ktutil: addent -password -p hoa@SAIKOCAT.COM -k 1 -e aes256-cts
Password for hoa@SAIKOCAT.COM:
ktutil: addent -password -p hoa@SAIKOCAT.COM -k 1 -e rc4-hmac