Skip to content

Instantly share code, notes, and snippets.

@felipelima94
felipelima94 / create-temp-pod.md
Created December 6, 2022 14:55
Criar pod temporario dentro do kubernetes
kubectl run [pod-name] -i --tty -n [namespace] --image [image] --image-pull-policy='IfNotPresent' --restart='Never' --rm -- [commands]
kubectl run "$USER-ubuntu" -i --tty -n [namespace] --image=ubuntu:latest --image-pull-policy='IfNotPresent' --restart='Never' --rm -- bash -c 'apt update;/bin/bash'

Comando para criar pod $USER-ubuntu pega o nome de usuário do seu sistema e concatena com ubuntu

@felipelima94
felipelima94 / semantic-commit.md
Last active October 26, 2023 19:08
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer. Format: <type>(<scope>): <subject> <scope> is optional

Example

feat: add hat wobble
@felipelima94
felipelima94 / DynamoDBConfig.java
Created February 16, 2022 14:08
Spring Boot DynamoDB Config
package com.solinftec.SREClientControlRegistration.utils;
import com.amazonaws.auth.AWSStaticCredentialsProvider;
import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.client.builder.AwsClientBuilder;
import com.amazonaws.services.dynamodbv2.AmazonDynamoDB;
import com.amazonaws.services.dynamodbv2.AmazonDynamoDBClientBuilder;
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;