Source: https://stackoverflow.com/a/78071275
Make Ruby LSP work even old ruby projects.
Outside your main project, create a folder with these two files:
.ruby-version
with a version >=3.0.0
3.0.0
Source: https://stackoverflow.com/a/78071275
Make Ruby LSP work even old ruby projects.
Outside your main project, create a folder with these two files:
.ruby-version
with a version >= 3.0.0
3.0.0
Sources:
# Change to the directory containing the Vagrantfile
~$ cd vagrant/machine
# Get the SSH config that Vagrant uses
~/vagrant/machine$ vagrant ssh-config
How to add SSL to your local development environment using Ruby on Rails with Puma
Sources:
brew install mkcert
brew install nss
mkcert -install
SELECT user,authentication_string,plugin,host FROM mysql.user; | |
UPDATE mysql.user SET plugin = 'mysql_native_password', authentication_string = PASSWORD('mypassword') WHERE User = 'root'; | |
FLUSH PRIVILEGES; |
// A SCSS (Sass) version of the floating-labels.css from https://getbootstrap.com/docs/4.0/examples/floating-labels/ | |
.form-label-group { | |
margin-bottom: 1rem; | |
position: relative; | |
& > input, | |
& > textarea, | |
& > label { | |
padding: #{$input-btn-padding-y} #{$input-btn-padding-x}; |
certbot --nginx --expand -d example.com,www.example.com,blog.example.com |
@setup | |
$server = 'myserver'; | |
$repository_path = "~/git/myapp.git"; | |
$application_path = "~/webroot/myapp.com/www"; | |
$env = $env ?? 'production'; | |
$branch = $branch ?? 'master'; | |
$branch = ($env == 'production') ? 'production' : $branch; | |
$shared_dirs = [ |
curl -sS https://getcomposer.org/installer | /usr/local/php7.0/bin/php
mkdir bin
mv composer.phar bin/composer
/usr/local/php7.0/bin/php ~/bin/composer
<?php | |
// Code postaux des villes des Antilles-Guyane | |
// Sources : | |
// http://fr.wikipedia.org/wiki/Liste_des_communes_de_la_Guadeloupe | |
// http://fr.wikipedia.org/wiki/Liste_des_communes_de_la_Guyane | |
// http://fr.wikipedia.org/wiki/Liste_des_communes_de_la_Martinique | |
$villes = [ | |
// Guadeloupe |
More complete info here http://cluster015.ovh.net/infos/ (thanks to @42antoine)
/usr/local/php5.3/bin/php => PHP 5.3.29 (cli) (built: Nov 21 2017 08:55:07)
/usr/local/php5.4/bin/php => PHP 5.4.45 (cli) (built: Nov 21 2017 08:35:51)
/usr/local/php5.5/bin/php => PHP 5.5.38 (cli) (built: Nov 21 2017 08:46:45)