Skip to content

Instantly share code, notes, and snippets.

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

Rafael Mesquita rmsys

🏠
Working from home
  • Rio de Janeiro
View GitHub Profile
@rmsys
rmsys / Ubuntu 20.04 - Basic installs
Last active July 20, 2023 13:30
Ubuntu 20.04 - Basic installs
# Ubuntu 20.04 - Basic installs
0. The begin
sudo apt-get update && sudo apt-get -y upgrade && sudo apt install curl wget git vim
1. zsh + ohmyz
sudo apt-get install zsh
sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
vim ~/.bashrc
@rmsys
rmsys / osx_bootstrap.sh
Created April 23, 2021 21:44 — forked from codeinthehole/osx_bootstrap.sh
Script to install stuff I want on a new OSX machine
#!/usr/bin/env bash
#
# Bootstrap script for setting up a new OSX machine
#
# This should be idempotent so it can be run multiple times.
#
# Some apps don't have a cask and so still need to be installed by hand. These
# include:
#
# - Twitter (app store)
@rmsys
rmsys / install-kubernetes-flannel-centos7.md
Last active June 7, 2023 00:12 — forked from rkaramandi/install-kubernetes-flannel-centos7.md
Installing Kubernetes with the Flannel Network Plugin on CentOS 7

Install Prerequisites on ALL (Worker and Master) Nodes

To development/learning purpose

Remove swap

swapoff -a
vim /etc/fstab
Total Productive Maintenance
- Ordenação: nomeação correta
- Sistematizar: blocos de código no lugar certo
- Limpeza: nada de comentários
- Padronização: time fazendo o mesmo
- Disciplina: faça as regras acima
@rmsys
rmsys / new-openvpn-client.sh
Created September 4, 2017 14:41 — forked from hcooper/new-openvpn-client.sh
Script to automate creating new OpenVPN client certificates and make them easy to download
#! /bin/bash
# Script to automate creating new OpenVPN clients
# The client cert and key, along with the CA cert is
# zipped up and placed somewhere to download securely
#
# H Cooper - 05/02/11
#
# Usage: new-openvpn-client.sh <common-name>
# Set where we're working from