Skip to content

Instantly share code, notes, and snippets.

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

Fábio Luciano fabioluciano

🏠
Working from home
View GitHub Profile
{
"basics": {
"name": "Thomas Edison",
"label": "Inventor and Businessman",
"picture": "https://example.com/photo.jpg",
"email": "[email protected]",
"phone": "(123) 456-7890",
"website": "https://thomasedison.com",
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
"location": {
@fabioluciano
fabioluciano / gist:f54283d4206904fc6388dfe5c03745ce
Created March 4, 2024 14:59
Logid config for MX Master 3
devices: (
{
name: "Wireless Mouse MX Master 3";
dpi: 1500;
smartshift:
{
on: true;
threshold: 15;
};
hiresscroll:
@fabioluciano
fabioluciano / README.md
Last active April 30, 2024 22:00
ArchInstall

Arch Install

Set Font

setfont ter-g22n

localectl list-keymaps | grep us-acentos loadkeys us-acentos

Keybase proof

I hereby claim:

  • I am fabioluciano on github.
  • I am fabioluciano (https://keybase.io/fabioluciano) on keybase.
  • I have a public key ASA9B8t6bV6ebxMHZrP1JxCO43UZ1GXYi7Zh_AL9pbbIOwo

To claim this, I am signing this object:

@fabioluciano
fabioluciano / kubernetes-bootstrap.sh
Last active August 29, 2024 14:00
Create kubernetes cluster using multipass instances(kvm/qemu) with microk8s ir k3s kubernetes distribution
#!/usr/bin/env bash
set -euxo pipefail
: ${MASTER_NODE_COUNT:=1}
: ${MASTER_NODE_PREFIX:=master}
: ${WORKER_NODE_COUNT:=2}
: ${WORKER_NODE_PREFIX:=worker}
skinparam Activity {
ArrowColor
ArrowFontColor
ArrowFontName
ArrowFontSize
ArrowFontStyle
BackgroundColor
BarColor
BorderColor
BorderThickness
#!/bin/bash
# Bumps the semantic version of the git-project.
# If no semantic version tags exist in the project, the version starts out at v0.0.0
# and is incremented by one for the field indicated by the bump command argument.
find_latest_semver() {
pattern="^$PREFIX([0-9]+\.[0-9]+\.[0-9]+)\$"
versions=$(for tag in $(git tag); do
[[ "$tag" =~ $pattern ]] && echo "${BASH_REMATCH[1]}"
done)
@fabioluciano
fabioluciano / terminate-all-instances.py
Created May 16, 2018 19:01
Terminate all instances in ScalingGroups
import boto3
client = boto3.client('autoscaling')
scaling_groups = client.describe_auto_scaling_groups()
for scaling_group in scaling_groups['AutoScalingGroups']:
print(scaling_group['AutoScalingGroupName'])
client.update_auto_scaling_group(
AutoScalingGroupName = scaling_group['AutoScalingGroupName'],
MinSize=0,
# Commands to display in the IDE
workspace.commands[0].name="build"
workspace.commands[0].commandLine="mvn clean install -f /projects/che/assembly/assembly-main"
# Name of the workspace
workspace.name="che"
# Configure project properties
workspace.projects[0].type = "maven"

Keybase proof

I hereby claim:

  • I am fabioluciano on github.
  • I am fabioluciano (https://keybase.io/fabioluciano) on keybase.
  • I have a public key ASBL49fGCqNIu1WA2zylYfjAHuhSLMVuS5BcjQlOOHub_go

To claim this, I am signing this object: