Skip to content

Instantly share code, notes, and snippets.

View normoes's full-sized avatar
💭
working

Norman Schenck normoes

💭
working
View GitHub Profile
@normoes
normoes / binary_math.md
Last active March 14, 2018 09:07
remember me: binary math

binary math

source

2's complement

101 -> 010 + 1 = 011
11010 -> 00101 + 1 = 00110

binary subtraction

hidden files

create an archive using tar (including hidden files)

taken from Digitesters

Normally:

tar czf backup.tar.gz /backup/*

This way all files are tarred except the hidden files.

@normoes
normoes / password creation.md
Last active July 13, 2021 18:40
passwords and encrypted passwords

password creation

cli password generation

apg -a 1 -m 15 -n 15

Output

HrTvb(r&xb1~}Xr
`i;af,/z%bi8(`x
@normoes
normoes / java_springboot_mongodb_aggregates.md
Last active June 19, 2024 04:01
mongodb aggregates using MongoRepository in Java spring boot

mongodb aggregates using MongoRepository in Java spring boot


Some prerequisites and assumptions

Use the following dependencies within your pom.xml:

  • spring-boot-starter-parent 1.5.7.RELEASE
  • spring-boot-starter-data-mongodb