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
some test |
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
-- phpMyAdmin SQL Dump | |
-- version 4.0.10deb1 | |
-- http://www.phpmyadmin.net | |
-- | |
-- Host: 127.0.0.1 | |
-- Generation Time: Jan 29, 2015 at 12:12 AM | |
-- Server version: 5.5.40-0ubuntu0.14.04.1 | |
-- PHP Version: 5.5.9-1ubuntu4.5 | |
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; |
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
# Installation: add this to your .bash_aliases or .zshrc | |
# change the following line to point your phpcbf preferred tool | |
alias phpcbf3="/home/steinkel/phpcs-cake3/vendor/bin/phpcbf --standard=CakePHP" | |
# gitco function | |
# allow commit and comment with no quotes | |
# adds refs #id based on current feature/issue/hotfix branch | |
# run phpcbf on touched files | |
function gitco () { |
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 | |
## 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 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 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 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
#!/usr/bin/php | |
<?php | |
/** | |
* This hook is a rewrite of http://git.661346.n2.nabble.com/Odd-results-writing-a-Git-pre-receive-hook-to-syntax-check-PHP-files-td5471120.html | |
* Thanks to Chris Patti for this thread | |
* @todo: detect when a new subdirectory is comitted and process all files recursive | |
*/ | |
function finish($exitCode = 0, $message = '') { | |
if (!empty($message)) { |
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/sh | |
# GITLAB | |
# By: steinkel at gmail.com | |
# App Version: 6.1 stable https://github.com/gitlabhq/gitlabhq/tree/6-1-stable | |
# ABOUT | |
# This script performs a complete installation of Gitlab for ubuntu server 12.04.1 x64: | |
# * packages update | |
# * git, postfix etc |
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 | |
# | |
# 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 && \ |