Skip to content

Instantly share code, notes, and snippets.

View fzrhrs's full-sized avatar

fzrhrs

View GitHub Profile
@fzrhrs
fzrhrs / django.md
Last active November 9, 2016 03:28
Setup django on Mac

Python 2.7 django pip install django

to use mysql pip install MySQL-Python or maybe pip install mysqlclient

database example:

@fzrhrs
fzrhrs / ghostonmac.md
Created April 16, 2016 01:39
Ghost on Mac and Heroku

Local mac: npm install --production

sudo echo node_modules > .gitignore git init git add . git commit -m 'Initial commit'

heroku create app-name

count rows SELECT COUNT(column_name) FROM table_name;

@fzrhrs
fzrhrs / Github
Last active November 16, 2016 09:35
Github
git show commithash
git log --author=name
git log --grep=word
(undo last commit)
git reset --soft HEAD~1
(ammend last commit message)

List of brew packages I have to have:

  • brew install tree
  • brew install postgresql
  • brew install mysql
  • brew install qt

To install a gem in a global gemset

rvm @global do gem install ...

To use a specific gemset

rvm use [email protected]