Skip to content

Instantly share code, notes, and snippets.

@simkimsia
simkimsia / install-cake3-ubuntu-14-04.sh
Last active August 29, 2015 14:07
preparing fresh 14.04 ubuntu install for cake 3
#!/bin/bash
###
#
# forked from https://gist.github.com/1264701/08f93534ba177f173b9382b53c419cd0de5b07ea
#
# Ubuntu 14.04 based web server installation script
# Run this by executing the following from a fresh install of Ubuntu 14.04 server:
#
# bash -c "$(curl -fsSL https://gist.githubusercontent.com/simkimsia/4a3808cd109dbd1a3913/raw/d0a9799cdbf0857043b7b59a489361388c09fc4a/install-cake3-ubuntu-14-04.sh)" <mysqlPassword>
@agarzon
agarzon / CakePHPHelper.php
Created November 5, 2014 14:40
CakePHP helper for Codeception (Unit testing)
<?php
namespace Codeception\Module;
class CakePHPHelper extends \Codeception\Module
{
public function __construct()
{
define('APP_DIR', 'app');
define('DS', DIRECTORY_SEPARATOR);
define('ROOT', getcwd());
@abhi1010
abhi1010 / setup_ifast_demo.sh
Last active September 24, 2015 05:21
reconwise ifast demo setup
git clone https://bitbucket.org/tildesg/reconwisev2.git
cd reconwisev2
git fetch && git checkout ifastdemo
git pull
cd ../
virtualenv -p python3.4 ve_rw2
source ve_rw2/bin/activate
pip install -r reconwisev2/requirements.txt
cd reconwisev2/rw/
mkdir media/log
@jwieringa
jwieringa / gist:3588181
Created September 1, 2012 21:37
Ripped from Specification by Example

Step 1

Identify what the business goal is for building software.

Business goal

Increase repeat sales to existing customers by 50% over the next 12 months

Step 2

From the business goal, derive the scope of the feature(s)

@mauris
mauris / prng01.php
Created September 12, 2012 05:21
Pseudo Random Number Generation (PRNG) using Trigonometry
<?php
function prng01($min = null, $max = null){
if($min === null){
$min = 0;
}
if($max === null){
$max = PHP_INT_MAX;
}
static $seed = 3;
@notthetup
notthetup / HipsterSG.md
Last active December 11, 2015 09:08
List of hipster places to hangout in Singapore.
@JaceTan
JaceTan / PasswordEmail.php
Last active December 15, 2015 20:09
The ultimate forget_password pieces
<?php
//add this file to Lib/Email folder
App::uses('CakeEmail', 'Network/Email');
class PasswordEmail {
private $emailConfig = 'gmail';
private $sender = 'do-not-reply@example.com';
private $from;
@simkimsia
simkimsia / toc_for_lab1.md
Created November 27, 2013 07:03
the TOC for the nov 27 2013 workshop at hackerspace SG on vagrant + virtualbox + phpunit
@aikchun
aikchun / .vim
Last active December 29, 2015 21:19
vimrc
let mapleader=","
" load plugins
execute pathogen#infect()
let g:EasyMotion_leader_key = '<Leader>'
map <F2> :NERDTreeToggle<CR>
let NERDTreeShowLineNumbers=1
let NERDTreeShowHidden=1
" General configuration
@miccheng
miccheng / gist:8253012
Last active January 2, 2016 04:49
Software i use.

#Software#

##Downloads##

  • Java Runtime
  • Chrome
  • Firefox
  • Dropbox
  • Google Drive
  • PHPStorm
  • Alfred v2