Skip to content

Instantly share code, notes, and snippets.

View DavyGuedes's full-sized avatar

M. Davy Guedes D. DavyGuedes

View GitHub Profile
@DavyGuedes
DavyGuedes / ANDROID_HOME
Created December 4, 2021 19:56
Windows
%ANDROID_HOME%\emulator
%ANDROID_HOME%\tools
%ANDROID_HOME%\tools\bin
%ANDROID_HOME%\platform-tools
@DavyGuedes
DavyGuedes / .gitconfig
Last active March 28, 2021 09:25
git alias
[alias]
c = !git add . && git commit -m
s = status #!git status -s
l = !git log --graph --pretty=format:'%C(blue)%h%C(red)%d %C(white)%s - %C(c>
lp = !git log --graph --first-parent --oneline #--pretty=format:'%C(blue)%h%>
t = !sh -c 'git add -a $1 -m $1' -
count = !git shortlog -s --grep
ammend = !git add --all & git commit --amend --no-edit
lg = log --oneline --graph
log = log --oneline --graph
@DavyGuedes
DavyGuedes / epub-to-mobi.sh
Created March 7, 2021 22:03
epub-to-mobi.sh
# https://askubuntu.com/questions/344339/how-do-i-convert-epub-to-mobi-using-calibre
for book in *.epub; do echo "Converting $book"; ebook-convert "$book" "$(basename "$book" .epub).mobi"; done
@DavyGuedes
DavyGuedes / terraform.sh
Created March 6, 2021 21:32
terraform.sh
# source: https://computingforgeeks.com/how-to-install-terraform-on-fedora/
if ! command -v curl &> /dev/null || ! command -v wget &> /dev/null || ! command -v unzip &> /dev/null
then
echo "Please install curl, wget and unzip."
exit
fi
TER_VER=`curl -s https://api.github.com/repos/hashicorp/terraform/releases/latest | grep tag_name | cut -d: -f2 | tr -d \"\,\v | awk '{$1=$1};1'`
echo "Installing terraform ($TER_VER)..."
wget https://releases.hashicorp.com/terraform/${TER_VER}/terraform_${TER_VER}_linux_amd64.zip
# sudo apt install zsh -y
# chsh -s $(which zsh)
# sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
alias cls="clear"
export ZSH="$HOME/.oh-my-zsh"
export PATH="$HOME/bin:$PATH"
plugins=(
git
)
@DavyGuedes
DavyGuedes / .zshrc
Created January 17, 2020 01:10 — forked from diego3g/.zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export ANDROID_HOME=~/Android/Sdk
export PATH="$PATH:$ANDROID_HOME/tools"
export PATH="$PATH:$ANDROID_HOME/platform-tools"
# Path to your oh-my-zsh installation.
export ZSH="/Users/diegofernandes/.oh-my-zsh"
export PATH="$PATH:/usr/local/bin"
@DavyGuedes
DavyGuedes / docker-compose.yml
Created November 2, 2018 23:21
Docker-composer for Wordpress development
version: '3'
services:
wordpress:
depends_on:
- db
image: wordpress:latest
restart: always
volumes:
- ./wp-content:/var/www/html/wp-content
environment:
@DavyGuedes
DavyGuedes / introrx.md
Created April 2, 2018 19:37 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing