Skip to content

Instantly share code, notes, and snippets.

View armdev's full-sized avatar
💪
Always Coding

Armen armdev

💪
Always Coding
View GitHub Profile
@ornicar
ornicar / java.flags.txt
Created December 6, 2022 10:36
java -Xms30g -Xmx30g -XX:+UseG1GC -XX:+PrintCodeCache -XX:NonProfiledCodeHeapSize=512m -XX:NonNMethodCodeHeapSize=32m -XX:ReservedCodeCacheSize=2g -XX:InitialCodeCacheSize=512m -XX:CodeCacheExpansionSize=2m -XX:+PrintFlagsFinal
/opt/jabba/jdk/[email protected]/bin/java -Xms30g -Xmx30g -XX:+UseG1GC -XX:+PrintCodeCache -XX:NonProfiledCodeHeapSize=512m -XX:NonNMethodCodeHeapSize=32m -XX:ReservedCodeCacheSize=2g -XX:InitialCodeCacheSize=512m -XX:CodeCacheExpansionSize=2m -XX:+PrintFlagsFinal
[Global flags]
int ActiveProcessorCount = -1 {product} {default}
uintx AdaptiveSizeDecrementScaleFactor = 4 {product} {default}
uintx AdaptiveSizeMajorGCDecayTimeScale = 10 {product} {default}
uintx AdaptiveSizePolicyCollectionCostMargin = 50 {product} {default}
uintx AdaptiveSizePolicyInitializingSteps = 20 {product} {default}
uintx AdaptiveSizePolicyOutputInterval = 0 {product} {default}
uintx AdaptiveSizePolicyWeight = 10
@ismailyenigul
ismailyenigul / timescaledb-timescaledb-postgresql-adaptor-docker-compose.yml
Last active October 10, 2024 17:27
docker compose for timescaledb and postgresql-adaptor
I choosed host path mapping for postgresql data directory in a separate OS disk to be able to resize partition later.
You can use docker standart volumes too.
# mkdir -p /data/timescaledb
# cat docker-compose.yml
version: '3'
services:
package com.yourproject.datastructures;
import java.io.*;
import java.util.*;
import java.util.function.Consumer;
/**
* Disk-backed array list
* @param <E> element type
*/
@krishnakummar
krishnakummar / create-topology.sh
Created November 17, 2018 09:20
create graphviz block diagram from docker-compose.yml
docker run --rm -it --name dcv -v /home/user/blog:/input pmsipilot/docker-compose-viz render -m image --force docker-compose.yml --output-file=topology.png --no-volumes --no-ports --no-networks
@gaearon
gaearon / index.html
Last active March 10, 2025 04:43
Multiple React components on a single HTML page
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Add React in One Minute</title>
</head>
<body>
<h2>Add React in One Minute</h2>
<p>This page demonstrates using React with no build tooling.</p>
@up1
up1 / 1.txt
Last active March 18, 2024 03:30
TICK stack with Spring Boot 2.0
$docker-compose up -d
Creating network "tick_default" with the default driver
Creating tick_influxdb_1 ... done
Creating tick_telegraf_1 ... done
Creating tick_kapacitor_1 ... done
Creating tick_chronograf_1 ... done
@ygrenzinger
ygrenzinger / CleanArchitecture.md
Last active April 8, 2025 17:22
Summary of Clean Architecture by Robert C. Martin

Summary of book "Clean Architecture" by Robert C. Martin

Uncle Bob, the well known author of Clean Code, is coming back to us with a new book called Clean Architecture which wants to take a larger view on how to create software.

Even if Clean Code is one of the major book around OOP and code design (mainly by presenting the SOLID principles), I was not totally impressed by the book.

Clean Architecture leaves me with the same feeling, even if it's pushing the development world to do better, has some good stories and present robust principles to build software.

The book is build around 34 chapters organised in chapters.

@py-in-the-sky
py-in-the-sky / very_simple_json_parser.py
Last active May 6, 2024 09:09
Very simple JSON parser in Python
"""
The parser below is a predictive, recursive-descent parser. The use of a predictive parser
is possible because JSON has an LL(k) grammar. Specifically, JSON has an LL(1) grammar,
a fact that is hinted at in the `parse_json` function: `parse_json` looks ahead by only
one character (not even a whole JSON token) in order to decide how to parse the string.
See: https://en.wikipedia.org/wiki/Recursive_descent_parser
JSON definition: http://www.json.org/
JSON-Python type mapping: https://docs.python.org/2/library/json.html#encoders-and-decoders
@jonashackt
jonashackt / docker-compose.yml
Created August 30, 2017 09:39
docker-compose.yml for multiple Spring Boot apps on Docker Windows Containers
version: '3.2'
services:
zuul-edgeservice:
build: ./zuul-edgeservice
ports:
- "8080:8080"
tty:
true
@evantobin
evantobin / docker-compose.yaml
Created June 13, 2017 22:12
docker compose for openstf
rethinkdb:
image: rethinkdb:2.3
ports:
- "8080:8080"
- "28015:28015"
- "29015:29015"
restart: always
volumes:
- "/srv/rethinkdb:/data"
command: "rethinkdb --bind all --cache-size 2048"