Skip to content

Instantly share code, notes, and snippets.

View bedhabits's full-sized avatar
🤪

Bernardo bedhabits

🤪
  • Lisbon
View GitHub Profile
# Terminal Cheat Sheet
pwd # print working directory
ls # list files in directory
cd # change directory
~ # home directory
.. # up one directory
- # previous working directory
help # get help
-h # get help
@bedhabits
bedhabits / README.md
Created August 23, 2020 23:15 — forked from ross-u/README.md
webinar-portfolio-html-css-resources
@bedhabits
bedhabits / git-clearHistory
Created May 1, 2020 17:58 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git
@bedhabits
bedhabits / app.rb
Created November 23, 2019 12:12 — forked from jbernardoviana/app.rb
real_estate
require_relative 'router'
require_relative 'controller'
require_relative 'repository'
file_path = 'properties.csv'
repo = Repository.new(file_path)
controller = Controller.new(repo)
router = Router.new(controller)
router.run