Skip to content

Instantly share code, notes, and snippets.

Avatar
🤪

Bernardo bedhabits

🤪
  • Lisbon
View GitHub Profile
View terminal-cheat-sheet.txt
# 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 Aug 23, 2020 — forked from ross-u/README.md
webinar-portfolio-html-css-resources
View README.md
@bedhabits
bedhabits / git-clearHistory
Created May 1, 2020 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
View git-clearHistory
-- 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 Nov 23, 2019 — forked from jbernardoviana/app.rb
real_estate
View app.rb
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
You can’t perform that action at this time.