Skip to content

Instantly share code, notes, and snippets.

View netodevel's full-sized avatar
🏠
Working from home

José Vieira Neto netodevel

🏠
Working from home
  • São Paulo, Brasil
View GitHub Profile
@netodevel
netodevel / ideavimrc
Created April 3, 2023 18:40
my ideavim rc
let mapleader=" "
set hlsearch
set scrolloff=3
set ignorecase smartcase
set showmode
set history=1000
set clipboard+=unnamed
set relativenumber
kubectl create deployment nginx --image=nginx
kubectl create service nodeport nginx --tcp=90:80
kubectl get pods
kubectl port-forward ${nome_do_seu_pod} 8083:80
kubectl cluster-info
$ kind create cluster
@netodevel
netodevel / install_kind.sh
Created February 22, 2023 19:04
install kind
$ curl -Lo kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64
$ chmod +x kind
$ sudo mv kind /usr/local/bin/
# Database
quarkus.datasource.db-kind=postgresql
quarkus.datasource.username=admin
quarkus.datasource.password=admin
quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/demo_quarkus
quarkus.datasource.jdbc.max-size=16
# DevServices
quarkus.datasource.devservices=false
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<include file="changelogs/2021-09-12-144812-create-table-users.xml" relativeToChangelogFile="true"/>
</databaseChangeLog>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet id="1" author="nt-cli">
<createTable tableName="users">
<column name="id" autoIncrement="true" type="BIGINT" >
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="name" type="varchar(255)"/>
<column name="email" type="varchar(255)"/>
</createTable>
-- resources
- db
- 2021-09-12-144812-create-table-users.xml
changeLog.xml
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-jdbc-postgresql</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-liquibase</artifactId>
</dependency>