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 | |
yum install -y ntp | |
ntpdate 0.centos.pool.ntp.org | |
sleep 3 | |
hwclock --systohc |
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
-- -------------------------------------------------------------------------------- | |
-- Routine DDL | |
-- Note: comments before and after the routine body will not be stored by the server | |
-- -------------------------------------------------------------------------------- | |
DELIMITER $$ | |
CREATE DEFINER=`root`@`localhost` PROCEDURE `paginate`( | |
in _table varchar(100), | |
in _where varchar(100), | |
in _order_by varchar(100), |
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 | |
function ajax_lookUpUsername(){ | |
$username = $this->input->post('username'); | |
$this->db->where('username', $username); | |
$query = $this->db->get('accounts'); | |
if ($query->num_rows() > 0){ | |
echo 0; | |
} else { | |
echo 1; | |
} |
NewerOlder