Skip to content

Instantly share code, notes, and snippets.

View moolex's full-sized avatar
🏠
lazying from home

MOYO moolex

🏠
lazying from home
View GitHub Profile
@moolex
moolex / proxy.check.py
Created January 3, 2013 13:40
自动检测代理速度的Python脚本
#!/usr/bin/python
# -*- coding: utf-8 -*-
# From: ubuntu.org.cn Copyright: GPLv2
import urllib
import re
from datetime import datetime
import socket
def findporxy():
url = "http://www.proxycn.com/html_proxy/http-1.html"
f = urllib.urlopen(url)
@moolex
moolex / mysql.backuper.sh
Created December 3, 2012 10:35
mysql 数据库自动热备份脚本(centos+mysqlhotcopy)
#!/bin/sh
# Moyo <[email protected]> @ 2012/02/22 10:00
# @url http://moyo.uuland.org/system/mysqlhotcopy-auto-sh/
# DEFINED ~~
# 需要备份的数据库列表(空格间隔)
dbns="mysql"
# 备份目录
dbsf=/home/backup/database
@moolex
moolex / www.backuper.sh
Created December 3, 2012 10:28
自动执行本地网站增量备份的脚本(centos+rsync)
#!/bin/sh
# Moyo <[email protected]> @ 2012/02/23 10:00
# @url http://moyo.uuland.org/system/rsync-local-auto-sh/
# DEFINED ~~
# 脚本所在目录
workbase=/home/backup/shell
# 需要备份的网站列表(文件名)
listf=web.rsync.list