This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bundle exec rake db:drop RAILS_ENV=test | |
| bundle exec rake db:create RAILS_ENV=test | |
| bundle exec rake db:schema:load RAILS_ENV=test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| How to create PostgreSQL database when it was installed with homebrew: | |
| createdb -O[your current user name] -Eutf8 funny_database_name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # игнорить все файлы начинающиеся с ".ruby-" в корневой директории | |
| svn pedit svn:ignore . — для выставления игноров на текущую папку | |
| svn pedit svn:ignore ./folder/ — для выставления игноров на папку folder, которая находится в текущей папке. | |
| svn pedit svn:ignore ".ruby-*" . | |
| # статус svn | |
| svn status | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo add-apt-repository ppa:chris-lea/postgresql-9.3 | |
| sudo apt-get update | |
| sudo apt-get install postgresql-9.3 postgresql-server-dev-9.3 postgresql-contrib-9.3 | |
| sudo su -l postgres | |
| psql -d template1 -p 5433 | |
| CREATE EXTENSION IF NOT EXISTS hstore; | |
| CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; | |
| \q |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Add the repo: | |
| $ sudo add-apt-repository ppa:indicator-brightness/ppa | |
| Update the repo index: | |
| $ sudo apt-get update | |
| Install indicator-brightness: | |
| $ sudo apt-get install indicator-brightness |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gem: --no-rdoc --no-ri |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rake db:setup | |
| # produces the error below.....hmmm.....it's a no-worky | |
| psql:/yourprojectpath/yourproject/db/structure.sql:29: ERROR: could not open extension control file "/usr/share/postgresql/9.1/extension/hstore.control": No such file or directory | |
| # hstore postgresql extension needs to be installed, so.... | |
| sudo apt-get install postgresql-contrib | |
| # now your extension should be available to enable so log in with psql | |
| psql -d yourproject_production -U yourdbuser -W | |
| # or |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [user] | |
| name = Dmitriy Polozov | |
| email = polozov.dm@gmail.com | |
| [alias] | |
| st = status | |
| ci = commit -m | |
| cii = commit -am | |
| cia = commit --amend -m | |
| ciah = commit --amend -C HEAD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "button": "button1", | |
| "count": 1, | |
| "modifiers": ["ctrl"], | |
| "press_command": "drag_select", | |
| "command": "goto_definition" | |
| }, | |
| { "keys": ["f1"], "command": "toggle_side_bar" }, | |
| { "keys": ["f2"], "command": "toggle_minimap" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "always_show_minimap_viewport": true, | |
| "ensure_newline_at_eof_on_save": true, | |
| // "font_face": "Meslo", | |
| // "font_face": "Liberation Mono", | |
| "font_size": 9, | |
| "highlight_modified_tabs": true, | |
| "hot_exit": true, | |
| "ignored_packages": | |
| [ |
NewerOlder