Skip to content

Instantly share code, notes, and snippets.

# docker build --no-cache --progress=plain -f .gitpod.Dockerfile .
FROM gitpod/workspace-full
# System
RUN bash -c "sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3EFE0E0A2F2F60AA"
RUN bash -c "echo 'deb http://ppa.launchpad.net/tektoncd/cli/ubuntu jammy main'|sudo tee /etc/apt/sources.list.d/tektoncd-ubuntu-cli.list"
RUN bash -c "sudo apt-get update"
RUN bash -c "sudo install-packages direnv gettext mysql-client gnupg"
RUN bash -c "sudo pip install --upgrade pip"
@faermanj
faermanj / underjord.rb
Created March 21, 2023 14:00
Underjord SonicPi Demo
# Underjord Demo
# https://www.youtube.com/watch?v=suH_goWVBeA&t=71s
use_bpm 130
live_loop :met do
sleep 1
end
live_loop :hcc2, sync: :met do
sleep 0.5
@faermanj
faermanj / main.java
Created March 17, 2023 16:35
ChatGPT <3
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
@faermanj
faermanj / test-all.yml
Last active February 21, 2023 16:06
Test matrix with github actions
name: Test all versions
on:
workflow_dispatch: {}
jobs:
iterate_and_call:
runs-on: ubuntu-latest
strategy:
matrix:
@faermanj
faermanj / script.sh
Created November 29, 2022 13:45
Install fedora image to raspi card
arm-image-installer --image=/home/faermanj/Downloads/Fedora-Workstation-37-1.7.aarch64.raw.xz --target=rpi4 --media=/dev/sda --resizefs
@faermanj
faermanj / README.md
Created July 23, 2022 14:11
Mentoria Coletiva - Algoritmos e Programação - 23/07/2022
@faermanj
faermanj / aws-nuke.yml
Last active July 3, 2025 07:41
Limpando sua conta da AWS com aws-nuke
accounts:
"192912639870": {} # ccsandbox
account-blocklist:
- "192912699999"
resource-types:
excludes:
- IAMGroup
- IAMGroupPolicy
@faermanj
faermanj / pre-req.js
Created May 3, 2022 13:05
Postman OIDC
var auth_username = pm.variables.get("auth_username")
var auth_password = pm.variables.get("auth_password")
var client_id = pm.variables.get("client_id")
var client_secret = pm.variables.get("client_secret")
var authBody = `username=${auth_username}&password=${auth_password}&grant_type=password&client_id=${client_id}&client_secret=${client_secret}`;
console.log(authBody)
var force_refresh = true
var token_expires_in = pm.environment.get("token_expires_in");
var token_created = pm.environment.get("token_created");
@faermanj
faermanj / README.md
Last active July 12, 2023 14:12
TDC 2022 - Aplicacoes Seguras com Quarkus

Aplicações Seguras com Quarkus e Keycloak

Julio @faermanj
https://faermanj.me
https://caravana.cluoud
https://gist.github.com/faermanj/270a8a8ab817f95fc2e350ec2d481bd2

Agenda

Aplicação estilo "microserviços" ("PetCare")

@faermanj
faermanj / note.sh
Created September 1, 2021 13:54
Delete a versioned bucket
aws s3api put-bucket-versioning --bucket "{{bucket}}" --versioning-configuration "Status=Suspended";
aws s3api delete-objects --bucket "{{bucket}}" --delete "$(aws s3api list-object-versions --bucket "{{bucket}}" --output=json --query='{Objects: *[].{Key:Key,VersionId:VersionId}}')";
aws s3api delete-bucket-policy --bucket "{{bucket}}";
aws s3 rm "s3://{{bucket}}" --recursive;
aws s3 rb "s3://{{bucket}}"