Skip to content

Instantly share code, notes, and snippets.

View pedrodsrodrigues's full-sized avatar

Pedro Rodrigues pedrodsrodrigues

View GitHub Profile
@pedrodsrodrigues
pedrodsrodrigues / machineEnvironment_wsl_ubuntu.sh
Last active October 30, 2023 22:46
Prepare your (WSL) Ubuntu Machine Environment
#!/usr/bin/env bash
touch ${HOME}/.hushlogin
sudo -v
sudo apt-get update && sudo apt-get upgrade -y
### Brew ###
yes | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
(echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> ${HOME}/.profile
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
@pedrodsrodrigues
pedrodsrodrigues / .zshrc
Created May 15, 2023 15:28
Shell Configuration (~/.zshrc)
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@pedrodsrodrigues
pedrodsrodrigues / .aliases
Created May 15, 2023 15:11
Shell Aliases (~/.aliases)
# Zshbase alias
alias zshconfig="code ~/.zshrc"
alias zshreload="source ~/.zshrc"
alias aliasconfig="code ~/.aliases"
alias zrl="source ~/.zshrc; source ~/.aliases"
# Other aliases
alias please="sudo !!"
alias ggclean='git branch --merged | egrep -v "(^\*|master)" | xargs git branch -d'
@pedrodsrodrigues
pedrodsrodrigues / machineEnvironment
Last active October 30, 2023 22:46
Prepare your Machine Environment
# The following process was made for MacOS and some commands might not work in a different OS!
### Requirements: ###
- GIT
### Commands ###
# Brew and ZSH
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install zsh neovim pre-commit postman kubernetes-cli helm tfenv openlens awscli visual-studio-code drawio fly fzf cheatsheet git-crypt gpg-suite nmap thefuck asdf pygments dive gum metasploit owasp-zap gh
yes | /opt/homebrew/opt/fzf/install # Fzf
@pedrodsrodrigues
pedrodsrodrigues / docker-compose.yml
Last active October 13, 2022 14:03
Nginx Mysql Laravel Php7.4 Xdebug - docker-compose
version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
args:
- WITH_XDEBUG=true
env_file: .env