Max memory = [-Xmx] + [-XX:MaxPermSize] + number_of_threads * [-Xss] + [-XX:MaxDirectMemorySize] + [-XX:MaxMetaspaceSize]
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
System Temperatures - Tue Aug 13 13:18:16 CEST 2019 | |
System Load: 0.15, 0.22, 0.20 | |
CPU Temperature: | |
dev.cpu.1.temperature: 37.0C | |
dev.cpu.0.temperature: 37.0C | |
HDD Temperature: | |
ada0: 35 C - WDC WD40EFRX-68N32N0 (WD-WCC7K1VYRPJ3) | |
ada1: 34 C - ST4000VN008-2DR166 (ZDH6FF4Q) |
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
jcmd <pid> VM.system_properties | |
jcmd <pid> VM.flags | |
jcmd <pid> VM.command_line | |
jcmd <pid> GC.run |
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
{ | |
"application_name": "${execution['application']}", | |
"config_url": "${ trigger.artifacts.?[type == 'app-config']. size() > 1 ? trigger.artifacts.?[type == 'app-config'].?[name matches 'dev-\\w+'].![reference][0] : trigger.artifacts.^[type == 'app-config'][reference] }", | |
"image": "${trigger.artifacts.^[type == 'docker'].reference}", | |
"namespace": "dev", | |
"raw_tags": { | |
"spinnaker.io/application": "${ execution['application'] }", | |
"spinnaker.io/cluster": "${execution['application']}", | |
"spinnaker.io/detail": "test", | |
"spinnaker.io/stack": "${execution['application']}" |
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 java.util.concurrent.ThreadFactory | |
import java.util.concurrent.atomic.AtomicInteger | |
class DefaultThreadFactory(name: String) extends ThreadFactory { | |
final private val group = Thread.currentThread.getThreadGroup | |
final private val threadNumber = new AtomicInteger(1) | |
final private def threadName = s"pool-$name-thread-${threadNumber.getAndIncrement}" | |
def newThread(r: Runnable): Thread = { | |
val t = new Thread(group, r, threadName, 0) |
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
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 |
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 java.io.*; | |
import java.net.*; | |
class UDPServer | |
{ | |
public static void main(String args[]) throws Exception | |
{ | |
DatagramSocket serverSocket = new DatagramSocket(9876); | |
byte[] receiveData = new byte[1024]; | |
byte[] sendData = new byte[1024]; |
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
ssh -i ~/.ssh/id_rsa_nq -C -N -L0.0.0.0:1234:qadb.aws.netquestapps.com:3306 bastion-us-east-1.netquest-apps.com |
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
#!/bin/zsh | |
echo "First parameter must be the CSV file containing the names and the ids separated by COMMAS" | |
echo "For example: | |
name,id | |
NAME_1,1234 | |
NAME_2,1235 | |
..." | |
if [[ -z $1 ]]; then |
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 java.nio.charset.Charset; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.spec.InvalidKeySpecException; | |
import java.util.Arrays; | |
import javax.crypto.SecretKeyFactory; | |
import javax.crypto.spec.PBEKeySpec; | |
import org.apache.shiro.codec.Base64; |
NewerOlder