Skip to content

Instantly share code, notes, and snippets.

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

Beta Brandão betabrandao

🏠
Working from home
View GitHub Profile
@betabrandao
betabrandao / services.sh
Created February 25, 2024 21:05
Commons Services
#!/bin/bash
# services status
# created by Roberta brandao at gmail dot com
MENU=$1
case $MENU in
battery)
BAT_STS=$(acpi -a | grep 'on-line' | wc -l)
CHARGE=$(echo ${BAT_STS} | sed 's/1/Charging/g;s/0/Discharging/g')
@betabrandao
betabrandao / gpg-ssh-setup.md
Created February 25, 2024 20:48 — forked from mcattarinussi/gpg-ssh-setup.md
A setup guide to use a personal gpg key for ssh authentication

GPG - SSH setup

Generating the master key

Here we create the master key. We want only Certify capability: we use the master key only to create the subkeys, Sign - Encrypt - Authenticate capabilities will be assigned to the subkeys.

Run the following command to start the master key generation process. Select the set your own capabilities creation process (type 8)

  ▶ gpg --full-generate-key --expert

gpg (GnuPG) 2.2.9; Copyright (C) 2018 Free Software Foundation, Inc.

@betabrandao
betabrandao / base64.txt
Created February 25, 2024 20:39
B64 Tests
jA0ECQMCZOquw73Hvkv/0uwByXG7rdlaYh3hT1h2pusR2JHCXb+87nZTBYJBbJ+n+xgSVUuXEsXL
m0kUGLfqq4aDayZUz4HZGIDELmo/N+HFx+aMJs5c3+yC0ynOu2cZzhqg7rbsqSMe1s9mxDgi+rrj
0KLnlmZHHYkuyF1Ub9GzVwP3g1ywDqSu/5Hug0Xq33GshTbKkXYjGu9DeuvP3s397xOuup6iMnIh
x/DfOviEi8ucv90+nuN2R2KJPMHVA4Gjw+DibWwHA0e5aPaoGgzdZqtYNU5eF3ShQx4RYzVgyQTm
Y1zwcurImEMGOPinO9nynF7MSBiclu7Gns2SdmM6EzbeNCgjXM79G1PnEf7UDHKND/lIM1mNiBu7
XAbNRE8gdbFsyEJqIllIky8qrHK3rhh5PLhEWjLcUJPoLQNyCBRyilt70Ids35C/9//ZTuxdb8C+
Xq3N/WwM7rByCPa+U7R1HJwbAh5ReXIJTBUPrsiEmQ0kJ6odKwLGdK3ou8Hk6uWrzBJqwUm51nhQ
jL2vpal7jF7d63Kz3yhI6XmoFMwhWlDP55zRDPZoMaNncBMLclX4zzX1AXQBb4dc1IKd5wHbWy18
x5rtNcQiN+OOExGapB2trYLM9dcuZIIEwq//o1LEcI2cdeHFNjOz7A3wI6o/gsHUdCkNJjcEzo9c
4cZcnczvwhZa7mQVyLljf6M03C20RMp+/evHTt/e9eDE9mviMWS6EYkQHngJdC4YyAkMMZ2BZkU7
@betabrandao
betabrandao / k3sos.md
Created November 27, 2022 17:00
k3sOs with QEmu
@betabrandao
betabrandao / README.md
Last active August 23, 2021 14:38
Config 4G Qualcomm USB router

Configurando a APN no roteador 4G/LTE usb

Baseado no roteador com o firmware MDM9K-CIGO-U-7.3.9-4M do chipset da Qualcomm.

Antes de iniciar, tenha em mãos:

  1. Chip da sua operadora já ativado e funcionando preferencialmente em seu celular;
  2. Um cartão MicroSD de até 32Gb para o modem usar. Sem o cartão MicroSD, o aparelho reinicia continuamente sem explicação lógica. Recomendo algum cartão microSD dedicado para roteador de 2Gb.

Configuração das APNs

@betabrandao
betabrandao / .bash_profile
Last active July 5, 2020 23:50
Automate your PR
#Fiz uma function que abre meus PR com gh e envia mensagem pelo SLACK.
#Para obter sua API do Slack:
#Abra o seu Slack pela web, abra o console e digite: console.log(TS.boot_data.api_token)
function jcm() {
# git commit with JIRA-ID (create your branch using 'feat/JIRAID-title-of-jira-task' before to use this function)
git commit -v -m "$(git rev-parse --abbrev-ref HEAD | cut -d"/" -f2 | cut -d"-" -f-2): $1"
}
function prc() {
# Create a PR and send the link to your Slack squad Channel
@betabrandao
betabrandao / .vimrc
Last active March 28, 2023 23:00
VIM for coding
" ---------------- Gotta be first -----------------------------------
set nocompatible
filetype off
call plug#begin()
" ----- Making Vim look good ------------------------------------------
Plug 'altercation/vim-colors-solarized'

Keybase proof

I hereby claim:

  • I am betabrandao on github.
  • I am betabrandaorio (https://keybase.io/betabrandaorio) on keybase.
  • I have a public key ASDEIDHisG35ddIhwvBtWJBIKwkPS6rqJHyjREb5SxB6Hgo

To claim this, I am signing this object:

@betabrandao
betabrandao / .bashrc
Created November 11, 2019 18:43
Git Aliases
#GIT Alias
# Aliases
alias gcl='git clone'
alias ga='git add'
alias grm='git rm'
alias gap='git add -p'
alias gall='git add ./'
alias gf='git fetch --all --prune'
alias gft='git fetch --all --prune --tags'
alias gfv='git fetch --all --prune --verbose'
@betabrandao
betabrandao / xscreen.sh
Created November 11, 2019 18:40
capture screen interactively choose a rectangle with the mouse to clipboard using scrot and xclip
scrot -s -e 'xclip -selection c -t image/png < $f && rm $f'