This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class _Stream { | |
public static void main(String[] args) { | |
List<Person> people = List.of( | |
new Person("Jonh", MALE), | |
new Person("Maria", FEMALE), | |
new Person("Aisha", FEMALE), | |
new Person("Alex", MALE), | |
new Person("Alice", FEMALE), | |
new Person("Bob", PREFER_NOT_TO_SAY) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Collections; | |
import java.util.List; | |
import java.util.NoSuchElementException; | |
public class Main { | |
public static void main(String[] args) { | |
List<Integer> lista = new ArrayList<>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install build-essential default-jdk libssl-dev exuberant-ctags ncurses-term ack-grep silversearcher-ag fontconfig imagemagick libmagickwand-dev software-properties-common git vim-gtk3 curl | |
https://asdf-vm.com/#/core-manage-asdf-vm | |
https://www.osradar.com/install-flat-remix-theme-ubuntu/ | |
asdf list ruby | |
asdf global ruby 2.6.3 | |
asdf local ruvy 2.4.4 /dentro diretorio | |
sudo usermod -aG docker $USER | |
docker run hello-world |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo update-alternatives --install "usr/bin/java" "java" "/home/<user>/dev/jdk8/bin/java" 1 | |
sudo update-alternatives --install "usr/bin/javac" "javac" "/home/<user>/dev/jdk8/bin/javac" 1 | |
sudo update-alternatives --install "usr/bin/javaws" "javaws" "/home/<user>/dev/jdk8/bin/javaws" 1 | |
sudo update-alternatives --config java | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tar -xvf jdk-11.0.2_linux-x64_bin.tar.gz | |
sudo mkdir -p /usr/lib/jvm/jdk-11/ | |
sudo mv jdk-11.0.2/* /usr/lib/jvm/jdk-11/ | |
ls /usr/lib/jvm/jdk-11/ | |
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk-11/bin/java" 1010 | |
java -version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails + Docker | |
* docker run -it -v ${PWD}:/usr/src/app -w /usr/src/app rails rails new --skip-bundle my_awesome_app | |
---- | |
Dockerfile | |
FROM ruby:2.3 | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"workbench.colorTheme": "Dracula", | |
"workbench.startupEditor": "newUntitledFile", | |
"window.zoomLevel": 0, | |
"editor.fontFamily": "Fira Code", | |
"editor.fontLigatures": true, | |
"editor.fontSize": 18, | |
"editor.lineHeight": 24, | |
"workbench.iconTheme": "vscode-icons", | |
"editor.formatOnSave": true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: java | |
jdk: | |
- oraclejdk8 | |
install: | |
- mvn -N io.takari:maven:wrapper | |
- ./mvnw install -DskipTests=true -Dmaven.javadoc.skip=true -B -V |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2018-07-16 13:24:52 INFO RequestMappingHandlerMapping:543 - Mapped "{[/group/{idGroup}/permission/{idGroupPermission}],methods=[DELETE]}" onto public br.com.automtech.automatic.infra.response.BaseResponse<java.lang.Boolean> br.com.automtech.automatic.controller.GroupController.deleteGroupPermission(java.lang.Long,java.lang.Long,java.security.Principal,javax.servlet.http.HttpServletRequest) | |
2018-07-16 13:24:52 DEBUG RequestMappingHandlerMapping:245 - 4 request handler methods found on class br.com.automtech.automatic.controller.InfraController: {public br.com.automtech.automatic.infra.response.BaseResponse br.com.automtech.automatic.controller.InfraController.getPermissionsByUser(java.security.Principal,javax.servlet.http.HttpServletRequest) throws java.lang.Exception={[/infra/permissions],methods=[GET]}, public br.com.automtech.automatic.infra.response.BaseResponse br.com.automtech.automatic.controller.InfraController.getAllMenus(java.security.Principal,javax.servlet.http.HttpServletRequest) throws java.lang |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jenkins 2.19.4 | |
Criar uma maquina linux com ubuntu | |
putty | |
puttygen | |
pegar nome publico | |
------------------------ | |
sudo apt-get install python-software-properties | |
------------------------ | |
sudo add-apt-repository ppa:openjdk-r/ppa | |
------------------------ |