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
## How to install mcrypt in php7.2 | |
## | |
## https://lukasmestan.com/install-mcrypt-extension-in-php7-2/ | |
## | |
# | |
# Check version php and pecl | |
# | |
php -v # if default php is not 7.2 then use /usr/bin/php7.2 instead php |
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
composer global require laravel/installer | |
composer global require cpriego/valet-linux | |
nano ~/.bashrc | |
export PATH="$PATH:~/.config/composer/vendor/bin" | |
source ~/.bashrc |
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
Clone respected git repository | |
git clone https://github.com/martynbiz/human_services_finder.git | |
Install all dependencies | |
bundle install | |
Create db and migrate schema | |
rake db:create | |
rake db:migrate // rake db:schema:load |
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
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc | |
source ~/.bashrc |
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
sudo rm -rf /var/lib/apt/lists/* | |
sudo apt-get update -o Acquire::CompressionTypes::Order::=gz | |
sudo apt-get update && sudo apt-get upgrade |
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 color.ui true | |
git config --global user.name "Wagura Maurice" | |
git config --global user.email "business@waguramaurice.com" | |
git config --global user.signingkey [secret-gpg-key-id] | |
git config --global commit.gpgsign true | |
git config --global gpg.program $(which gpg) | |
ssh-keygen -t rsa -b 4096 -C "business@waguramaurice.com" | |
cat ~/.ssh/id_rsa.pub |
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
The first method is matching (:any)/(:all?): | |
Route::any('(:any)/(:all?)', function($first, $rest=''){ | |
$page = $rest ? "{$first}/{$rest}" : $first; | |
dd($page); | |
}); | |
Not the best solution because it gets broken into multiple parameters, and for some reason (:all) doesn't work by itself (bug?) | |
The second solution is to use a regular expression, this is a better way then above in my opinion. |
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
heroku login | |
heroku git:clone -a egranary | |
cd egranary | |
git remote add egranary git@github.com:alkarimlalani/egranary.git | |
git fetch egranary master | |
git reset --hard egranary/master | |
git push heroku master --force |