Done on Linux (Ubuntu tested)
cd $HOME
virtualenv --python=/usr/bin/python2.7 pgadmin4
source pgadmin4/bin/activate
RSpec.configure do |config| | |
config.before(:suite) do | |
DatabaseCleaner.clean_with(:truncation) | |
end | |
config.before(:each) do | |
DatabaseCleaner.strategy = :transaction | |
end | |
config.before(:each, js: true) do |
/home/laravel/app/storage/logs/laravel.log { | |
daily | |
missingok | |
rotate 7 | |
maxage 7 | |
compress | |
notifempty | |
create 755 user group | |
su user group | |
} |
Installing Laravel 5.2 on Ubuntu 16.04 and Apache2 | |
This post will document how I installed Laravel 5.2, on Apache2 on an Ubuntu 16.04 server. Will will also install MySQL, as we will need a database, and PHP which is required by Laravel. This will be the starting point of most of my posts, so if you’re following along from scratch…this is “scratch!” | |
First thing you need, of course, is the Ubuntu 16.04 server, with an SSH connection. Follow these excellent instructions and get yourself sorted out with one. Make sure you also give the server a static IP address (step 8., in the linked instructions). Come back when you’re done. | |
… | |
Welcome back! Lets get started. |
https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#_formatting_and_whitespace
Convert LF endings into CRLF when you check out code.
core.autocrlf=true
Convert CRLF to LF on commit but not the other way around.
# Change YOUR_TOKEN to your prerender token and uncomment that line if you want to cache urls and view crawl stats | |
# Change http://example.com (at the end of the last RewriteRule) to your website url | |
<IfModule mod_headers.c> | |
#RequestHeader set X-Prerender-Token "YOUR_TOKEN" | |
</IfModule> | |
<IfModule mod_rewrite.c> | |
RewriteEngine On |
MySQL Unicode character set has following collations mainly:
ref. http://dev.mysql.com/doc/refman/5.6/en/charset-unicode-sets.html
When xxx is utf8, can treat only BMP characters.