This file contains 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
MIKE WANT US TO CARE ABOUT: | |
1) INDEXES | |
http://blog.2ndquadrant.com/jsonb-type-performance-postgresql-9-4/ | |
2) TRY TO USE VIEW ON SIMPLE SEARCH | |
http://www.postgresql.org/docs/9.3/static/rules-materializedviews.html | |
GUIDES | |
1) http://schinckel.net/2014/05/25/querying-json-in-postgres/ |
This file contains 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
1) you can then run your change owner command | |
``` | |
sudo chown -R couchdb /var/run/couchdb | |
``` | |
2) Start couchdb | |
``` | |
$ sudo -i -u couchdb couchdb -b |
This file contains 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
1) see the list of opened ports | |
``` | |
$ netstat -ntlp | grep LISTEN | |
tcp 0 0 127.0.0.1:27017 0.0.0.0:* LISTEN - | |
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN - | |
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN - | |
tcp 0 0 127.0.1.1:53 0.0.0.0:* LISTEN - | |
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN - | |
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN - | |
tcp 0 0 127.0.0.1:5433 0.0.0.0:* LISTEN - |
This file contains 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
nano /etc/sudoers.d/<you user name> | |
Adding the line below to that file, assume mysurface is the user that allow to shutdown without password. | |
``` | |
mysurface ALL = NOPASSWD: /sbin/shutdown | |
``` | |
For ubuntu, usually the default user is in the %admin group. Therefore, you can also allow all users from the %admin group to shutdown without password. | |
``` | |
%admin ALL = NOPASSWD: /sbin/shutdown |
This file contains 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
crontab -l view list of cron commands | |
crontab -r remove cron commands | |
crontab -e edit cron commands | |
whenever: | |
``` | |
every :day, at: '00:05am' do | |
# here your reboot | |
end | |
``` |
This file contains 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
http://preloaders.net/en | |
http://loading.io/ | |
http://border-radius.com/ | |
http://www.iconarchive.com | |
http://cssarrowplease.com/ | |
http://apps.eky.hk/css-triangle-generator/ | |
http://fortawesome.github.io/Font-Awesome/icons/ | |
Online addition of text blocks plugin | |
http://fancyproductdesigner.com/jquery/ |
This file contains 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
head -100 log/nginx.error.log | grep "failed" |
This file contains 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
to spec/spec_helper.rb (or rails_helper.rb) | |
ActiveRecord::Base.logger.level = 2 |
This file contains 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
1) RBENV UPGRADE | |
cd ~/.rbenv | |
git checkout master | |
git pull origin master | |
2) RUBY_BUILD UPDATE | |
cd ~/.rbenv/plugins/ruby-build | |
git checkout master | |
git pull origin master |
This file contains 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
git config --global url."https://".insteadOf git:// |