Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miks/notes
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/miks/notes
- Owner: miks
- Created: 2016-01-27T07:30:44.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-16T21:09:57.000Z (over 8 years ago)
- Last Synced: 2024-10-31T22:15:59.782Z (2 months ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mass replacement
`perl -pi -e 's/old_string/new_string/g' file_pattern`# Local gem development
`bundle config local.releaf ~/code/releaf`
`bundle config --delete local.releaf`# Branch scoped database
`git config --bool branch.automatching.database true`database.yml
```
<%
# http://mislav.uniqpath.com/rails/branching-the-database-along-with-your-code/
branch = `git symbolic-ref HEAD 2>/dev/null`.chomp.sub('refs/heads/', '')
suffix = `git config --bool branch.#{branch}.database`.chomp == 'true' ? "#{branch}" : "master"
%>development:
adapter: mysql2
encoding: utf8
reconnect: false
database: database_<%= suffix %>
username: root
```# Squash old rails migrations
https://github.com/jalkoby/squasher# Disable rails logger in console
`ActiveRecord::Base.logger = nil`