Skip to content

Instantly share code, notes, and snippets.

Avatar

Eli Flores eliflores

View GitHub Profile
@eliflores
eliflores / python_intro.py
Created Nov 11, 2019
Python Intro from Django Girls Tutorial
View python_intro.py
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 / README.md
Last active Feb 4, 2021
Java versions
View README.md
@eliflores
eliflores / oh-my-zsh-install-and-config.md
Last active Feb 5, 2018
Install and configure Oh My Zsh in MacOS! :)
View oh-my-zsh-install-and-config.md

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 / github-aliases
Last active Nov 21, 2017
Github Aliases
View 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'
@eliflores
eliflores / homebrew-install-specific-version-of-postgresql.txt
Created Dec 16, 2015
Homebrew - Install Specific Version of PostgreSQL
View homebrew-install-specific-version-of-postgresql.txt
# 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 ....