Skip to content

Instantly share code, notes, and snippets.

@andineck
andineck / update_ubuntu.sh
Created August 17, 2015 05:11
update ubuntu
sudo apt-get update # Fetches the list of available updates
sudo apt-get upgrade # Strictly upgrades the current packages
sudo apt-get dist-upgrade # Installs updates (new ones)
@andineck
andineck / 0-readme.md
Last active September 2, 2015 08:27
github: add repo via command line

github cmd

  1. how to create and init a git repository
  2. how to create and init a git repository for an organization
@andineck
andineck / 1-readme.md
Created September 4, 2015 06:42
Argument Parsing with node.js

Argument Parsing with node.js

and the great modules: minimist and subarg

@andineck
andineck / measure.sh
Created September 22, 2015 13:59
measure time
curl -o /dev/null -s -w %{time_total}\\n intesso.com
@andineck
andineck / java.sh
Created November 3, 2015 09:49
Java Ubuntu Version
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
sudo apt-get install oracle-java8-installer
# choose java version
sudo update-alternatives --config java
@andineck
andineck / README.md
Last active January 20, 2024 21:20
Authentication and Authorization Concepts for MicroServices

auth with microservices

Authorization and Authentication are hard. when you only have to implement them once (as you do within a monolith) instead of over and over again, it makes the developer happy :-), and maybe leads to less implementation failures.

When you have a bunch of microservices, this is something that has to be considered.

Implement it once or in every microservice, or something in between?

@andineck
andineck / mongo-db.md
Last active January 12, 2016 06:49
spring notes, mongodb

http://docs.spring.io/spring-data/mongodb/docs/1.5.4.RELEASE/reference/html/mapping-chapter.html

6.3.1 Mapping annotation overview

The MappingMongoConverter can use metadata to drive the mapping of objects to documents. An overview of the annotations is provided below

  • @Id - applied at the field level to mark the field used for identiy purpose.
  • @Document - applied at the class level to indicate this class is a candidate for mapping to the database. You can specify the name of the collection where the database will be stored. @Document(collection = "collectionName")
  • @DBRef - applied at the field to indicate it is to be stored using a com.mongodb.DBRef.
  • @Indexed - applied at the field level to describe how to index the field.