This file contains hidden or 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 | |
## Upgrade to php7.1 and install required dependencies | |
# execute this script using | |
# source <(curl RAW_GIST_URL) | |
read -p "You are about to upgrade to PHP 7.1 OK? " -n 1 -r | |
echo | |
if [[ $REPLY =~ ^[Yy]$ ]] | |
then | |
echo 'y' | sudo add-apt-repository ppa:ondrej/php && \ | |
sudo apt-get update && \ |
This file contains hidden or 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 | |
## Upgrade to php7 and install required dependencies | |
# execute this script using | |
# source <(curl RAW_GIST_URL) | |
read -p "You are about to upgrade to PHP 7 OK? " -n 1 -r | |
echo | |
if [[ $REPLY =~ ^[Yy]$ ]] | |
then | |
echo 'y' | sudo add-apt-repository ppa:ondrej/php && \ | |
sudo apt-get update && \ |
This file contains hidden or 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
public function beforeRender(Event $e) | |
{ | |
if ($this->request->param('action') === 'login' && | |
$this->request->param('controller') === 'Users' && | |
$this->request->param('plugin') === 'CakeDC/Users' | |
) { | |
$this->viewBuilder()->layout('login'); | |
} | |
} |
This file contains hidden or 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
'EmailTransport' => [ | |
'default' => [ | |
'className' => 'Smtp', | |
'host' => 'debugmail.io', | |
'port' => 25, | |
'timeout' => 30, | |
'username' => 'YOUR_DEBUGMAIL_EMAIL', | |
'password' => 'YOUR_DEBUGMAIL_PROJECT_PASSWORD', | |
'client' => null, | |
'tls' => null, |
This file contains hidden or 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
# Use only in your development environment, behind a firewall | |
sudo apt-get install dnsmasq | |
echo 'address=/.3dev/127.0.0.1' | sudo tee -a /etc/dnsmasq.conf | |
echo 'listen-address=127.0.0.1' | sudo tee -a /etc/dnsmasq.conf | |
sudo service dnsmasq restart | |
# now imlazy.3dev will resolve to localhost | |
# install nginx + php7 |
This file contains hidden or 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 | |
# | |
# Hey, this is minimal | |
# curl -L gist-raw-url | bash | |
# | |
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y php5-cli git php5-intl screen cowsay mysql-server php5-mysql && \ | |
echo "downloading composer" && \ | |
curl -sS https://getcomposer.org/installer | php && \ | |
echo "creating CakePHP project" && \ | |
php composer.phar create-project cakephp/app cakefest && \ |
This file contains hidden or 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
# TP-Link MA180 | |
DefaultVendor= 0x2357 | |
DefaultProduct=0x0200 | |
TargetVendor= 0x2357 | |
TargetProduct= 0x0201 | |
MessageContent="5553424312345678000000000000061b000000020000000000000000000000" |
This file contains hidden or 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 | |
$table = Cake\ORM\TableRegistry::get($entity->source()); |
This file contains hidden or 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
-- MySQL dump 10.13 Distrib 5.5.38, for debian-linux-gnu (x86_64) | |
-- | |
-- Host: localhost Database: cfws | |
-- ------------------------------------------------------ | |
-- Server version 5.5.38-0ubuntu0.14.04.1 | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
/*!40101 SET NAMES utf8 */; |
This file contains hidden or 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 | |
# | |
# Hey, this is minimal | |
# curl -L gist-raw-url | bash | |
# | |
#sudo apt-get update | |
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y php5-cli git php5-mcrypt php5-intl screen cowsay mysql-server php5-mysql && \ | |
sudo ln -s /etc/php5/mods-available/mcrypt.ini /etc/php5/cli/conf.d/20-mcrypt.ini && \ | |
echo "downloading composer" && \ | |
curl -sS https://getcomposer.org/installer | php && \ |