Skip to content

Instantly share code, notes, and snippets.

-Xmx24576M -Xms24576M -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200
-XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=40
-XX:G1MaxNewSizePercent=50 -XX:G1HeapRegionSize=16M -XX:G1ReservePercent=15 -XX:G1HeapWastePercent=5
-XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=20 -XX:G1MixedGCLiveThresholdPercent=90
-XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem
-XX:MaxTenuringThreshold=1 -Daikars.new.flags=true -Dusing.aikars.flags=https://mcflags.emc.gs
-XX:+IdleTuningGcOnIdle -XX:+UseAggressiveHeapShrink -XX:-OmitStackTraceInFastThrow
-XX:+UseFastAccessorMethods -XX:+OptimizeStringConcat -Xaot -XX:+UseCompressedOops -XX:ObjectAlignmentInBytes=256
-XX:SharedCacheHardLimit=800M -XX:+UseCodeCacheFlushing -Xshareclasses:none
-XX:+TieredCompilation -XX:InitialTenuringThreshold=5 -Dlog4j2.formatMsgNoLookups=true
-XX:-DisableExplicitGC -XX:InitiatingHeapOccupancyPercent=35 -XX:+UnlockExperimentalVMOptions
-XX:MaxGCPauseMillis=50 -Djava.net.preferIPv4Stack=true -XX:-ParallelRefProcEnabled
-XX:+UseTLAB -XX:ReservedCodeCacheSize=70M -Xgcpolicy:gencon -Xmns800M -Xmnx800M
-XX:ConcGCThreads=2 -XX:+UseZGC -XX:AllocatePrefetchStyle=1 -XX:-ZProactive
-XX:+UseTransparentHugePages -Xlp -Xlp64k -Xnoclassgc -Xcompressedrefs
-XX:MinHeapFreeRatio=25 -XX:MaxHeapFreeRatio=50 -XX:UsePerfData -Xgcthreads2 -Xcompactgc
-XcompilationThreads4 -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200
-XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30
-XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5
-XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90
-XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem
-XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true
-XX:MinHeapFreeRatio=25 -XX:MaxHeapFreeRatio=50 -XX:UsePerfData -Xgcthreads2 -Xcompactgc
-XcompilationThreads4 --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled
-XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+ExplicitGCInvokesConcurrent
-XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4
-XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90
-XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem
-XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true
-XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20
echo 'Books
Business
Developer\ Tools
Education
Entertainment
Finance
Food\ &\ Drink
Games
Graphics\ &\ Design
Health\ &\ Fitness
git submodule update --init --recursive
set -e
# Determine shell profile
try_profile() {
if [ -z "${1-}" ] || [ ! -f "${1}" ]; then
return 1
fi
echo "${1}"

How to run Android Studio Emulator (AVD) without lags

Running ARMv7/ARM64 image on x86_64 host with maximum emulation performance:

  1. Close all Google Chrome instances and shutdown your antivirus.

  2. Better create ARMv7 image without Google APIs.

  3. Fix "cannot add library /usr/local/android-sdk/emulator/qemu/darwin-x86_64/lib64/vulkan/libvulkan.dylib: failed":
    λ ln -s ${ANDROID_SDK_ROOT}/emulator/lib64 ${ANDROID_SDK_ROOT}/emulator/qemu/darwin-x86_64/lib64

@vadim-a-yegorov
vadim-a-yegorov / UNIX SEC.md
Created March 17, 2023 04:30 — forked from vadimszzz/UNIX SEC.md
An Architectural Overview of UNIX Network Security

An Architectural Overview of UNIX Network Security

February 18, 1993

Robert B. Reinhardt breinhar@access.digex.com

ARINC Research Corporation 2551 Riva Road Annapolis, MD 21401

@vadim-a-yegorov
vadim-a-yegorov / About SSLs
Created March 17, 2023 04:29 — forked from vadimszzz/About SSLs
About SSLs
Secure Sockets Layer or SSL is a secure protocol, which is the reason why secure E-Commerce and E-Banking is possible. It has become the de facto standard for secure and safe only transactions. When Netscape first developed SSL, the main aim or motive behind it was to ensure that the client and host can communicate or transfer data and information securely.
What SSL does in short would be, encrypt data at the sender’s end and decrypt data at the receiver’s end. This encrypted data cannot be picked up or hijacked in between and any tampering would not only be very difficult, it would easily be detected. Not only that, SSL also provides for two-way authentication i.e. verification of the client’s and the server’s identity.
The various functions or features of SSL can be divided into three main categories-:

DTrace: The Reverse Engineer’s Unexpected Swiss Army Knife

Abstract

This paper will examine how DTrace, a kernelbased dynamic scriptable tracer, can be effectively used for reverse engineering tasks. DTrace offers an unprecedented view of both user and kernel space, which has many interesting implications for security researchers. In this paper we will introduce DTrace, comparing it to existing debuggers and tracers.