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
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* Code Igniter | |
* | |
* An open source application development framework for PHP 4.3.2 or newer | |
* | |
* @package CodeIgniter | |
* @author Elise Bosse | |
* @copyright Copyright (c) 2008, E.Bosse | |
* @license http://www.codeignitor.com/user_guide/license.html |
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
log_format www.{{yoursiteurl}}.com '$remote_addr - $remote_user [$time_local] $request ' | |
'$status $body_bytes_sent $http_referer ' | |
'$http_user_agent $http_x_forwarded_for'; | |
server | |
{ | |
listen 80; | |
server_name www.{{yoursiteurl}}.com {{yoursiteurl}}.com; | |
index index.html index.htm index.php default.html default.htm default.php; | |
root /home/wwwroot/www.{{yoursiteurl}}.com; |
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
SET FOREIGN_KEY_CHECKS=0; | |
-- ---------------------------- | |
-- Table structure for `tbl_city` | |
-- ---------------------------- | |
DROP TABLE IF EXISTS `tbl_city`; | |
CREATE TABLE `tbl_city` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`city_id` int(11) DEFAULT NULL, | |
`city_name` varchar(100) DEFAULT 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
#!/bin/bash | |
#Backup name | |
if [ -n "$1" ]; then | |
BACKUP_NAME=$1 # Name of backup (log file, dest dir, exclude) | |
else | |
exit 1 | |
fi | |
# Optional hostname |
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
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
DocumentRoot "/Users/seeker/vhost/chuang86" | |
ServerName www.v2.chuang86.com | |
ServerAlias v2.chuang86.com | |
ErrorLog "/private/var/log/apache2/v2.chuang86.com-error_log" | |
CustomLog "/private/var/log/apache2/v2.chuang86.com-access_log" common | |
<Directory "/Users/seeker/vhost/chuang86"> | |
Options Indexes FollowSymLinks |
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
// Generated on 2014-03-31 using generator-webapp 0.4.7 | |
'use strict'; | |
// # Globbing | |
// for performance reasons we're only matching one level down: | |
// 'test/spec/{,*/}*.js' | |
// use this if you want to recursively match all subfolders: | |
// 'test/spec/**/*.js' | |
module.exports = function (grunt) { |
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
[ | |
{ | |
id: 1, | |
img: "650b1406baf39292198e3ba5e1e71b06.jpg", | |
time: "1398766500", | |
title: "在线教育", | |
type: "microdata", | |
detail: { | |
id: "1", | |
title: "安居客梁伟平:是谁逼急了房产商", |
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
// Create the image | |
$im = imagecreatetruecolor(40, 40); | |
// Create some colors | |
$white = imagecolorallocate($im, 255, 255, 255); | |
// Set background | |
$rand_color= imagecolorallocate($im, rand(0,220), rand(0,220), rand(0,220)); | |
imagefill($im, 0, 0,$rand_color); |
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
// | |
// ToDoListTableViewController.m | |
// GettingStarted | |
// | |
// Created by seeker single on 6/16/15. | |
// Copyright (c) 2015 GettingStarted.com. All rights reserved. | |
// | |
#import "ToDoListTableViewController.h" | |
#import "ToDoItem.h" |
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 | |
Install_Nginx() | |
{ | |
Echo_Blue "[+] Installing ${Nginx_Ver}... " | |
groupadd www | |
useradd -s /sbin/nologin -g www www | |
Tar_Cd ${Nginx_Ver}.tar.gz ${Nginx_Ver} | |
./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_spdy_module --with-http_gzip_static_module --with-ipv6 --with-http_sub_module ${NginxMAOpt} |
OlderNewer