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
// lineSpliter project main.go | |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
"path/filepath" | |
"strconv" | |
"strings" |
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/sbin/php | |
<?php | |
/* | |
* Rsync备份脚本 | |
*/ | |
set_time_limit(0); | |
date_default_timezone_set('Asia/Shanghai'); | |
define('CONF_SRC', 'backup_src'); | |
define('CONF_DST', 'backup_dest'); |
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 | |
#以下信息请自行修改 | |
MYSQL_DIR=/usr/local/mysql #mysql目录 | |
MYSQL_USER=root #mysql用户名 | |
MYSQL_PASS=123456 #mysql密码 | |
BACKUP_DIR=/backup #存放备份文件的目录 | |
#以上信息自行修改 | |
#定义数据库的名字和旧数据库的名字 | |
DataBakName=Data_$(date +”%Y%m%d”).tar.gz |
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
termcap vt102 '' | |
hardstatus on | |
hardstatus alwayslastline | |
hardstatus string '%{=b}%{b}%-w%{.BW}%10>[%n %t]%{-}%+w%< %=%{G}%H %{-b}%{w}%Y/%m/%d %c:%s' | |
vbell off | |
defscrollback 1000 | |
windows | |
# 退出vim/nano之后自动刷新屏幕 | |
altscreen on |
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
water = ice + fire | |
water = egg + hourglass | |
fire : final | |
earth : final | |
air : final | |
steam = water + fire | |
steam = water + energy | |
lava = earth + fire | |
pressure = earth + earth | |
pressure = air + air |
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 | |
/** | |
* @author Anush Prem <goku.anush@gmail.com> | |
* @package Solver | |
* @subpackage Sudoku | |
* @version 0.1 | |
*/ | |
/** |
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 | |
/** | |
* Created by JetBrains PhpStorm. | |
* User: Horsley | |
* Date: 12-4-30 | |
* Time: 下午3:47 | |
* To change this template use File | Settings | File Templates. | |
*/ | |
$act = $_GET['action']; | |
switch($act){ |
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/php | |
<?php | |
/** | |
* Created by JetBrains PhpStorm. | |
* User: horsley | |
* Date: 13-1-30 | |
* Time: 上午1:00 | |
* To change this template use File | Settings | File Templates. | |
* | |
* cron -e and add this file , remember chmod + 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 | |
/** | |
* A simple PHP script to get vps's status from solus api | |
* | |
*/ | |
set_time_limit(180); | |
$serv_array = array( | |
array(//an vps | |
'api_server' => 'https://solus.hostigation.com:5656', //panel login page |
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
// Implementation of a UDP proxy | |
package main | |
import ( | |
"flag" | |
"fmt" | |
"log" | |
"net" | |
"os" |