macOS Mojave 10.14 - kevyworks
1. Install Homebrew
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
<?php | |
/** | |
* Class GoogleUrlApi | |
*/ | |
class GoogleURLAPI | |
{ | |
/** | |
* GoogleUrlApi constructor. | |
* @param $key |
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
use Egulias\EmailValidator\EmailValidator; | |
use Egulias\EmailValidator\Validation\EmailValidation; | |
use Egulias\EmailValidator\Validation\MultipleValidationWithAnd; | |
/** |
<?php | |
namespace App\Libraries; | |
use Illuminate\Support\HtmlString; | |
use Illuminate\View\Compilers\BladeCompiler; | |
use Illuminate\View\Factory; | |
/** | |
* Class BladeComponentsFactory |
<?php | |
namespace App\Support; | |
use Exception; | |
use stdClass; | |
class CurlRequest | |
{ | |
/** @var resource $curlObject cURL request */ |
<?php | |
namespace App\Support\Repository\Contracts; | |
interface CriteriaInterface | |
{ | |
/** | |
* The criteria to be applied must go inside this method. | |
* | |
* @param mixed $queryBuilder Current query builder. |
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
use Illuminate\Auth\Middleware\AuthenticateWithBasicAuth; | |
use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; | |
/** | |
* Class BasicAuth |
#!/bin/bash | |
# usage: tunnel <PORT> | |
PORT=${1:-8000} | |
# https://github.com/localtunnel/localtunnel | |
# Insure localtunnel is installed globally. npm install -g localtunnel | |
if ! [ -x "$(command -v lt)" ]; then | |
echo "Installing localtunnel..." | |
npm install -g localtunnel |
# MOJAVE: https://gist.github.com/kevmt/476716bfb0383d3fda699e4fcacc6470 | |
# install brew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# Terminal Aliases | |
echo "alias artisan='php $PWD/artisan'" >> ~/.bash_profile | |
echo "export NVM_DIR=~/.nvm" >> ~/.bash_profile | |
echo "source $(brew --prefix nvm)/nvm.sh" >> ~/.bash_profile |
#! /bin/sh | |
# A script to monitor uptime of websites, | |
# and notify by email if a website is down. | |
SITES="ADD COMMA-SEPARATED WEBSITES HERE" | |
EMAILS="ADD COMMA-SEPARATED EMAILS HERE" | |
for SITE in $(echo $SITES | tr "," " "); do | |
if [ ! -z "${SITE}" ]; then | |
RESPONSE=$(curl -s --head $SITE) | |
if echo $RESPONSE | grep "200 OK" > /dev/null |