Skip to content

Instantly share code, notes, and snippets.

@markswell
markswell / kubernetes.sh
Last active December 25, 2023 20:00
It's a default install Kubernetes k8s script
#!/bin/bash
sudo apt update
sudo apt install -y docker.io
sudo usermod -aG docker $USER
sudo reboot
sudo apt-get install -y apt-transport-https ca-certificates curl gpg
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.29/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.29/deb/ /' | sudo tee /etc/apt/sources.list.d/kubernetes.list
sudo apt update
@markswell
markswell / config_ubuntu_dev.sh
Last active April 14, 2024 12:24
Execute after install ubuntu
#!/bin/bash
sudo apt update && apt upgrade -y
sudo apt install openjdk-17-headless -y
sudo apt install openjdk-11-headless -y
sudo apt install openjdk-8-headless -y
sudo apt install maven -y
sudo apt install gradle -y
sudo apt install git -y
sudo apt install docker docker-compose -y
@markswell
markswell / image.markdown
Last active December 14, 2023 12:14
To integrate Intellij Idea community with wildfly server just put this file into root path of application and run with command ./intellij_wildfly_integration.sh. For debug in your Intellij Idea Community enable debug of wildfly into standalone.xml file and create a configuration of type “Remote JVM Debug” and attach in “Run/Attach to process”.

Captura de tela de 2022-08-22 11-23-33 image

@markswell
markswell / Dockerfile
Created December 22, 2020 03:00
A default Dockerfile to depoly an application on Wildfly standalone
FROM jboss/wildfly:21.0.1.Final
ENV JBOSS_HOME /opt/jboss/wildfly
ENV POSTGRES_VERSION 42.2.9
ENV DB_USER pdv
ENV DB_PASS pdv
ENV DB_HOST localhost
ENV DB_NAME pdv
ENV DB_PORT 5432
ENV USER admim
@markswell
markswell / git.md
Created September 22, 2020 12:19 — forked from leocomelli/git.md
Lista de comandos úteis do GIT

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda