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 if (!defined('BASEPATH')) exit('No direct script access allowed'); | |
/* app/libraries/MY_Form_validation */ | |
class MY_Form_validation extends CI_Form_validation { | |
function __construct() { | |
parent::__construct(); | |
} | |
protected function _execute($row, $rules, $postdata = NULL, $cycles = 0) { | |
if (preg_match("/(required_if)/", implode(' ', $rules), $temp)) { |
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 | |
# StackScript: 8644 | |
############################################################## | |
# Generic functions | |
############################################################## | |
function system_update { | |
yum -y 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 | |
dd if=/dev/zero of=/extraswap bs=1M count=512 | |
mkswap /extraswap | |
echo "/extraswap none swap sw 0 0" >> /etc/fstab | |
swapon -a |
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/sh | |
GLOBAL_OUTDIR="`pwd`/dependencies" | |
LOCAL_OUTDIR="./outdir" | |
LEPTON_LIB="`pwd`/leptonica-1.70" | |
TESSERACT_LIB="`pwd`/tesseract-3.03" | |
IOS_BASE_SDK="7.0" | |
IOS_DEPLOY_TGT="7.0" |