df -k
sudo mkdir -p /data
You'll find it in this directory, this kind of disk is oftently call sdb
| namespace :figaro do | |
| desc "SCP transfer figaro configuration to the shared folder" | |
| task :setup do | |
| on roles(:app) do | |
| upload! "config/application.yml", "#{shared_path}/application.yml", via: :scp | |
| end | |
| end | |
| desc "Symlink application.yml to the release path" | |
| task :symlink do |
On a specific project I encountered some issues with encoding.
When I used save_and_open_page the html page opens with bad encoding chars ( accent chars ).
To fix this I just add on my layout header this forgotten meta :
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
During some tests I encountered this warning randomly due to faker data.
If you need to install a rails app with a specific rails version
rails _version_ new application_name
like
rails _4.1.10_ new rails_4_1_app
# *branch is your branch
git fetch --all
git reset --hard origin/*branch
git pull origin *branch
````
| <fieldType name="text" class="solr.TextField" positionIncrementGap="100"> | |
| <analyzer> | |
| <!-- analyseur configuré pour le français par Gaël --> | |
| <!-- suppression d'éventuelles balises HTML--> | |
| <charFilter class="solr.HTMLStripCharFilterFactory"/> | |
| <!-- découpage selon les espaces --> | |
| <tokenizer class="solr.WhitespaceTokenizerFactory"/> | |
| <!-- suppression de la ponctuation --> | |
| <filter class="solr.PatternReplaceFilterFactory" pattern="^(\p{Punct}*)(.*?)(\p{Punct}*)$" replacement="$2"/> | |
| <!-- suppression des tokens vides et des mots démesurés --> |
For a fixed navbar witch used position: fixed, user who scrolls the page with chrome will see sort of lag on this element.
Simply use -webkit-transform: translateZ(0); on the fixed element to avoid this problem.
source :