I will assume that you have already installed BashOnWindows. Note: Some AntiVirus prohibits successfull installation, like Avast. Uninstall Avast.
- Run bash.exe in Administrator Mode
# apt-get install lamp-server^
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
## SOURCE: xe.com | |
--> | |
<currency-symbol count="115"> | |
<entry code="ALL" unicode-decimal="76, 101, 107" unicode-hex="4c, 65, 6b">Albania Lek</entry> | |
<entry code="AFN" unicode-decimal="1547" unicode-hex="60b">Afghanistan Afghani</entry> | |
<entry code="ARS" unicode-decimal="36" unicode-hex="24">Argentina Peso</entry> | |
<entry code="AWG" unicode-decimal="402" unicode-hex="192">Aruba Guilder</entry> | |
<entry code="AUD" unicode-decimal="36" unicode-hex="24">Australia Dollar</entry> |
<?php | |
/** | |
* Dot notation for access multidimensional arrays. | |
* | |
* $dn = new DotNotation(['bar'=>['baz'=>['foo'=>true]]]); | |
* | |
* $value = $dn->get('bar.baz.foo'); // $value == true | |
* | |
* $dn->set('bar.baz.foo', false); // ['foo'=>false] | |
* |
List of PHP 7 Packages: https://launchpad.net/ubuntu/+source/php7.0 | |
Disclaimer: I get unreliable results when I don't run these commands seperately and in order. | |
vagrant ssh | |
sudo apt-get update | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get install php7.0 | |
sudo apt-get update |
/*! | |
* Copyright 2012, Chris Wanstrath | |
* Released under the MIT License | |
* https://github.com/defunkt/jquery-pjax | |
*/ | |
(function($){ | |
// When called on a container with a selector, fetches the href with | |
// ajax into the container or with the data-pjax attribute on the link |
#! /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 |
# 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/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 |
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
use Illuminate\Auth\Middleware\AuthenticateWithBasicAuth; | |
use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException; | |
/** | |
* Class BasicAuth |
<?php | |
namespace App\Support\Repository\Contracts; | |
interface CriteriaInterface | |
{ | |
/** | |
* The criteria to be applied must go inside this method. | |
* | |
* @param mixed $queryBuilder Current query builder. |