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
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.2/install.sh | bash | |
source ~/.bashrc | |
nvm install 5.2.0 | |
# node -v : v5.2.0 | |
# npm -v : 3.3.12 | |
# @see https://github.com/npm/npm/issues/10768 | |
cd /vagrant/project | |
sudo npm install -g gulp |
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
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
use Illuminate\Support\Facades\URL; | |
use Illuminate\Support\Str; | |
class LocalTunnelMiddleware | |
{ |
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
#!/bin/bash | |
echo -e "\E[1;33mIs ${1:-google.com} up?" | |
isUpResult=$(curl -sS http://downforeveryoneorjustme.com/${1:-google.com}) | |
if [[ $isUpResult == *"It's just you."* ]]; then | |
echo -e "\E[1;32mYep, ${1:-google.com} is up" | |
fi |