Skip to content

Instantly share code, notes, and snippets.

View eliflores's full-sized avatar

Eli Flores eliflores

View GitHub Profile
@eliflores
eliflores / README.md
Last active February 4, 2021 21:15
Java versions
@eliflores
eliflores / python_intro.py
Created November 11, 2019 19:28
Python Intro from Django Girls Tutorial
def hi(name):
print('Hi ' + name + '!')
girls = ['Ely', 'Abril', 'Anita', 'Meli', 'You']
for name in girls:
hi(name)
print('Next girl')
for i in range(1, 6):
@eliflores
eliflores / oh-my-zsh-install-and-config.md
Last active February 5, 2018 19:58
Install and configure Oh My Zsh in MacOS! :)

Oh My Zsh in MacOS

  1. Run brew install zsh zsh-completions
  2. Run zsh --version - expected output is zsh 4.3.9
  3. Install Oh My Zsh ->
  • Via curl: sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
  1. Setup your favorite theme:
  • In the ~/.zshrc file look for the ENV var: ZSH_THEME= and set it to the name of your favorite theme, mine is: awesomepanda.
  1. Get some of your favorite plugins and set them up in the ~/.zshrc file, e.g.
plugins=(
@eliflores
eliflores / homebrew-install-specific-version-of-postgresql.txt
Created December 16, 2015 02:48
Homebrew - Install Specific Version of PostgreSQL
# These are the steps I followed to install a specific version of PostgreSQL using Homebrew
brew search postgresql
# You will get a list of versions, pick the one you are looking for and use that next
# e.g. 'homebrew/versions/postgresql92'
brew install homebrew/versions/postgresql92
# If you get an error like:
# Error: An unexpected error occurred during the `brew link` step
# The formula built, but is not symlinked ....
@eliflores
eliflores / github-aliases
Last active November 21, 2017 10:38
Github Aliases
# From: https://git-scm.com/book/it/v2/Git-Basics-Git-Aliases
# Run this on your command line:
$ git config --global alias.co checkout ## git co
$ git config --global alias.br branch ## git br
$ git config --global alias.ci commit ## git ci
$ git config --global alias.st status ## git st
$ git config --global alias.pu status ## git pu
## git last -- will give you the last commit
$ git config --global alias.last 'log -1 HEAD'