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 | |
################################### | |
# $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 |
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 | |
# 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 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 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 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 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 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 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 Withdrawal{ | |
public $money = 0; | |
function __construct($money){ | |
$this->money = $money; | |
} | |
public function total(){ | |
return $this->money; | |
} |
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
$ cat schedule.sh | |
#!/bin/bash | |
############################################## | |
# $Author: netkiller $ | |
# $Id: shell.xml 449 2012-08-10 10:38:08Z netkiller $ | |
# http://netkiller.github.io | |
############################################## | |
NAME=schedule | |
BASEDIR='/www' | |
PROG=$(basename $0) |
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
import javax.crypto.Cipher; | |
import javax.crypto.spec.SecretKeySpec; | |
import java.util.Base64.*; | |
//import org.apache.commons.codec.binary.Base64; | |
/** | |
* @author netkiller | |
* | |
*/ |
OlderNewer