- https://gist.github.com/sushanthmangalore/69871cbc87c97cbca67a130469fdee90
- Guide to the Most Important JVM Parameters
- Minimum flags to record GC logs (plus enabling safepoint stats)
- Java 8
-Xloggc:/path/to/gc.log # <Location to write your GC log to> -XX:LogFile=<Location to write your Safepoint log to> -XX:+UseGCLogFileRotation
π―
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
0xf6135a4598782bb2a263281fc5f8520b8760f385 |
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
Transformation Priority Premise | |
({}β>nil) no code at all->code that employs nil | |
(nil->constant) | |
(constant->constant+) a simple constant to a more complex constant | |
(constant->scalar) replacing a constant with a variable or an argument | |
(statement->statements) adding more unconditional statements. | |
(unconditional->if) splitting the execution path | |
(scalar->array) | |
(array->container) |
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
rsync -vpcrazh --progress [source folder] [destination folder] | |
or | |
rsync --verbose --perms --checksum --recursive --archive --compress --human-readable --progress [source folder] [destination folder] | |
-v, --verbose increase verbosity | |
-p, --perms preserve permissions | |
-c, --checksum skip based on checksum, not mod-time & size |
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
$ tree -fL 2 build | |
build | |
βββ build/linux-x86_64-normal-server-release | |
βββ build/linux-x86_64-normal-server-release/bootcycle-spec.gmk | |
βββ build/linux-x86_64-normal-server-release/build.log | |
βββ build/linux-x86_64-normal-server-release/build.log.old | |
βββ build/linux-x86_64-normal-server-release/buildtools | |
βββ build/linux-x86_64-normal-server-release/compare.sh | |
βββ build/linux-x86_64-normal-server-release/config.h | |
βββ build/linux-x86_64-normal-server-release/config.log |
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
$ gedit .bashrc | |
$ export SOURCE_CODE=$HOME/dev/jigsaw | |
$ export JAVA_HOME=$SOURCE_CODE/m2/build/linux-x86_64-normal-server-release/images/jdk | |
Ensure -XX:MaxPermSize=128m is removed from MAVEN_OPTS or any other XXX_OPTS env variables | |
git clone https://github.com/forge/core.git forge-core | |
Change the $HOME/.m2/settings.xml file | |
<settings> |
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
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.mockito.Mock; | |
import org.mockito.Mockito; | |
import org.mockito.runners.MockitoJUnitRunner; | |
@RunWith(MockitoJUnitRunner.class) | |
public class ParameterizedMocks { | |
@Mock | |
private UserService userService; |
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
Feature: Update local repo on the Betterrev server with changesets from the OpenJDK mercurial repos | |
As the Adopt OpenJDK user (on the Betterrev server) | |
I would like to retrieve changesets from the OpenJDK mercurial repos into my local repos | |
So that my local repos are always in sync with the OpenJDK mercurial repos | |
Core | |
==== | |
Scenario: Script to connect to the OpenJDK mercurial repos is available | |
Given (the actor) is running and has the necessary configuration in place |
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
assertThat <- function(actualValue, expectedValue) { | |
if (as.character(actualValue) == as.character(expectedValue)) { | |
print("TEST PASSED: actual and expected values match.") | |
} else { | |
print("TEST FAILED: actual and expected values do not match.") | |
} | |
} | |
is <- function(value) { | |
return(value) |
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
> x <- seq(0,10,length=250); | |
> y <- x <- seq(-3,3, length=50); | |
> f <- function(x,y) { return (dnorm(x) * dnorm(y))}; | |
> z <- outer(x,y,f); | |
> par(bg = "white"); | |
> persp(x,y,z,zlim=c(0,0.25), theta=50, phi=10); |