Skip to content

Instantly share code, notes, and snippets.

View Vinaum8's full-sized avatar
🎈
Voe alto e seja leve!

Vinícius Fernandes Vinaum8

🎈
Voe alto e seja leve!
View GitHub Profile
@usrbinkat
usrbinkat / README.md
Created June 13, 2024 18:53
Delete Stuck Namespace

Delete Stuck Namespace

Here be dragons. Use with extreme caution.

About

This script is designed to accept namespaces as a list of arguments and will perform a namespace child resource delete loop before terminating the namespace and any finalizers.

Motivation

# Source: https://gist.github.com/baaf4adb25e9efaba886c17a2ad722a5
########################################################
# How To Auto-Scale Kubernetes Clusters With Karpenter #
# https://youtu.be/C-2v7HT-uSA #
########################################################
# Referenced videos:
# - Karpenter: https://karpenter.sh
# - GKE Autopilot - Fully Managed Kubernetes Service From Google: https://youtu.be/Zztufl4mFQ4
@rbudiharso
rbudiharso / mongodb_exporter_systemd_setup.sh
Last active March 20, 2024 17:53
mongodb_exporter systemd setup
#!/bin/bash
# create mongodb_exporter.service
cat > /etc/systemd/system/mongodb_exporter.service <<END
[Unit]
Description=mongodb exporter service
After=network.target
[Service]
ExecStart=/usr/local/bin/mongodb_exporter --collect.database --collect.collection --collect.topmetrics --collect.indexusage --mongodb.uri=mongodb+srv://<username>:<password>@<host:port>/?ssl=false
@bmaupin
bmaupin / install-oracle-client-ubuntu.md
Last active April 29, 2025 23:57
Install Oracle client on Ubuntu

Reference: https://help.ubuntu.com/community/Oracle%20Instant%20Client

Tested on: Ubuntu 18.04, 20.04

  1. Decide which version of the Oracle client to install

  2. Download the Oracle client packages

Embbed Desktop começa a integração no SDK do Flutter
23 de abril de 2019 Jacob Moura
Durante muito tempo o Flutter Embbed Desktop ficou operando de forma totalmente separada do SDK padrão do Flutter, porém a partir da versão 1.5.x o Flutter aplicou várias caracteristicas que diz respeito ao Embbed Desktop, começando a integrar funcionalidades para rodar aplicativos nos computadores. Lembrando que tudo que for falado nesse post é referente ao canal “Master” do Flutter, não aconselhamos o uso desse canal se você não estiver sabendo exatamente o que está fazendo.
Dito isso vamos as caracteristicas:
Testes de Plataforma.
https://i0.wp.com/flutterando.com.br/wp-content/uploads/2019/04/Captura-de-Tela-2019-04-21-a%CC%80s-13.07.12.png?w=354&ssl=1
Agora podemos testar se o Flutter está sendo rodado no Windows, no Linux ou no Mac. Antes só poderia ser testado em 3, o Android, iOS e o Fuchsia.
@nitishk72
nitishk72 / main.dart
Created April 20, 2018 14:41
Async http request
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import 'dart:convert';
main(){
runApp(new AppName());
}
class AppName extends StatefulWidget{
@override
State<StatefulWidget> createState() {
@mry
mry / docker-compose.yml
Created January 6, 2018 12:26
Sample Bookstack docker-compose.yml
version: '2'
services:
mysql:
container_name: bookstack-mysql
restart: unless-stopped
image: mysql:5.7.12
environment:
- MYSQL_ROOT_PASSWORD=YourRootPassw0rd!
- MYSQL_DATABASE=bookstack
@eddmann
eddmann / modify-ec2-instance-type.js
Created November 3, 2017 15:32
Scheduled EC2 Instance Type Modification using Lambda and CloudWatch Events
// Demonstration video can be found at: https://youtu.be/_gJyK1-NGq8
// ModifyEC2InstanceType
const AWS = require('aws-sdk');
exports.handler = (event, context, callback) => {
const { instanceId, instanceRegion, instanceType } = event;
const ec2 = new AWS.EC2({ region: instanceRegion });
@matthewjberger
matthewjberger / instructions.md
Last active November 2, 2025 12:12
Install a nerd font on ubuntu

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache

@RafaelMCarvalho
RafaelMCarvalho / postgres-bdr-setup.md
Last active January 20, 2025 16:26
A PostgreSQL BDR step-by-step Debian setup guide. May become a small post someday.

1. Configure SO locale

export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
dpkg-reconfigure locales