Skip to content

Instantly share code, notes, and snippets.

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

Jorge Guimaraes JorgeMGuimaraes

🏠
Working from home
View GitHub Profile
@JorgeMGuimaraes
JorgeMGuimaraes / resume.json
Last active August 4, 2023 02:25
My Resume in json resume format
{
"basics": {
"name": "Jorge Marinho Guimaraes",
"label": "Solutions Architect",
"image": "",
"email": "jmguimaraes@id.uff.br",
"phone": "(912) 555-4321",
"url": "https://johndoe.com",
"summary": "A summary of John Doe…",
"location": {
@JorgeMGuimaraes
JorgeMGuimaraes / extract_links.md
Last active January 26, 2023 19:25
Extract all links from a webpage
@JorgeMGuimaraes
JorgeMGuimaraes / index.html
Created January 24, 2023 19:09
React Quill Resizable Text Area
<div class="app">
</div>
@JorgeMGuimaraes
JorgeMGuimaraes / ssh-keygen.sh
Created December 7, 2022 20:21
Generates a new ssh key pair
#! /bin/bash
#description: Generates a new key based on some standards
# - type ed25519, 256 rounds
# - hostname at the end of file
#
# Also, change key pair permissions and print instructions on how to set the server
# Based on:
# https://cryptsus.com/blog/how-to-secure-your-ssh-server-with-public-key-elliptic-curve-ed25519-crypto.html
#--- Variables ---#

Move or Relocate /var Directory to a New Partition in Linux

Move or Relocate /var Directory to a New Partition in Linux

References

Switch to single-user mode

@JorgeMGuimaraes
JorgeMGuimaraes / install-zsh-oh-my-zsh
Last active September 15, 2022 12:39
Install Zsh shell and OhMyZsh Framework
# This script depends on manual interaction
# Variables
GIT_URL='https://github.com/zsh-users'
PLUGIN_AS='zsh-autosuggestions'
PLUGIN_SH='zsh-syntax-highlighting'
# Install dependencies and Zsh shell
sudo apt update
sudo apt install -y \
@JorgeMGuimaraes
JorgeMGuimaraes / install_jenkins.sh
Last active August 22, 2022 22:17
Jenkins automated installation
#! /bin/bash
# Script to allow user to automate Jenkins install and setup process.
# Based on https://www.digitalocean.com/community/tutorials/how-to-automate-jenkins-setup-with-docker-and-jenkins-configuration-as-code
# but with updates:
# - this script creates / downloads all files
# - using Jenkins Plugin Manager jar (a workaroud for install-plugins.sh)
# variables
jcasc_dir=$HOME/playground/jcasc
#! /bin/bash
cloud_user="ubuntu"
sudo apt remove -y \
docker \
docker.io \
containerd
sudo apt update
@JorgeMGuimaraes
JorgeMGuimaraes / flash_android.md
Created May 18, 2022 00:38
General steps to install/flash a new Android ROM.

Flash Android on Linux

General steps to install/flash a new Android ROM. v0.0

Pre requisites

Android 12:: before enter recovery, remove all lockscreen passwords/PINs in Android.

which adb