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 | |
class Form{ | |
private $forms = array(); | |
private $element = array(); | |
private $attributes = array(); | |
public $id,$name,$method,$action; | |
public function Form($id = '', $name = '', $method = 'post', $action = ''){ | |
$this->id = $id; | |
$this->name = $name; | |
$this->method = $method; |
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 | |
USER=backup | |
PASS=SaJePoM6BAPOmOFOd7Xo3e1A52vEPE | |
LOGDIR=/backup/dblog | |
DATADIR=/var/lib/mysql | |
LOG=mysql.log | |
LOG_ERROR=mysql_error.log | |
LOG_SLOW_QUERIES=slow.log | |
SOCKET="/var/lib/mysql/mysql.sock" | |
#Number of copies |
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 | |
/* | |
* ===================================== | |
* Website: http://netkiller.github.com | |
* Author: neo <[email protected]> | |
* Email: [email protected] | |
* ===================================== | |
*/ | |
class Logging { |
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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
def t s | |
p s | |
Thread.new { system s } | |
end | |
`find ~/workspace/ -maxdepth 1 -type d`.each_line do |x| | |
#print x |
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 | |
# memcached init file for memcached | |
# | |
# chkconfig: - 100 100 | |
# description: a distributed memory object caching system | |
# author: Neo Chen<[email protected]> | |
# | |
# processname: /usr/sbin/memcached | |
# config: | |
# pidfile: /var/run/memcached |
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 | |
# lighttpd init file for web server | |
# | |
# chkconfig: - 100 100 | |
# description: Security, speed, compliance, and flexibility--all of these describe LightTPD which is rapidly redefining efficiency of a webserver; | |
# as it is designed and optimized for high performance environments. | |
# author: Neo Chen<[email protected]> | |
# | |
# processname: $PROG | |
# config: |
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 | |
################################### | |
# $Id: backup 381 2012-04-03 09:49:08Z netkiller $ | |
# Author: [email protected] | |
# Home: http://netkiller.github.com | |
################################### | |
BACKUP_HOST="localhost" | |
BACKUP_USER="root" | |
BACKUP_PASS="" | |
BACKUP_DIR=/opt/backup |
NewerOlder