Skip to content

Instantly share code, notes, and snippets.

View viartemev's full-sized avatar
🚀
work hard

Vyacheslav Artemyev viartemev

🚀
work hard
View GitHub Profile

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@japharr
japharr / .java
Created March 6, 2017 13:24
Spring Data MongoDB month aggregation
Criteria criteria = new Criteria().andOperator(
where("warehouse").is(warehouse),
where("date").gte(currentYear.getStart()),
where("date").lte(currentYear.getEnd())
);
ProjectionOperation dateProjection = project()
.and("amount").as("amount")
.and("date").extractYear().as("year")
.and("date").extractMonth().as("month");
@troyharvey
troyharvey / deployment.yml
Last active July 20, 2024 10:05
Using Kubernetes envFrom for environment variables
# Use envFrom to load Secrets and ConfigMaps into environment variables
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: mans-not-hot
labels:
app: mans-not-hot
spec:
replicas: 1
@gavvvr
gavvvr / visualvm-sdkman-osx.md
Last active May 19, 2023 01:59
Getting visualvm on OSX with SDKMAN!

UPDATE:

Now you can just install Liberica JDK pkg-distibution using brew and will never face the problem mentioned below:

brew tap bell-sw/liberica
brew cask install liberica-jdk11