Skip to content

Instantly share code, notes, and snippets.

@faermanj
faermanj / entregando_cloud.md
Last active February 6, 2025 14:44
Semana DevOps 2025

Entregando Projetos de Cloud Computing

  1. Por que cloud?
  2. Trabalhando em equipe
  3. Foco na entrega
  4. Framework > Bibliotecas > Linguagem
  5. Cloud Development Kit
  6. Well-Architected
  7. Perguntas?
#!/usr/bin/env bash
set -ex
# This script is used by the bastion host to stop itself
#
TOKEN=$(curl -s \
-X PUT "http://169.254.169.254/latest/api/token" \
-H "X-aws-ec2-metadata-token-ttl-seconds: 21600")
ID=$(curl -H "X-aws-ec2-metadata-token: $TOKEN" \
@faermanj
faermanj / build-and-setup-podman-on-fedora-lima.md
Created January 3, 2024 11:58 — forked from tnk4on/build-and-setup-podman-on-fedora-lima.md
Build Podman with Fedora running on lima and use the container on Podman as a DevContainer from VS Code Remote-Containers.

DevContainer with Podman on Fedora on lima

Environment

  • macOS: Big Sur v11.5.2
  • VS Code: Version: v1.60.0
  • Remote - Containers: v0.194.0
  • lima: v0.6.3

1. Install Podman and lima

# 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