bootstrap 模态框
摘要:id name time operation EDIT SERVE...
阅读全文
posted @
2015-12-20 23:26
zhaobin022
阅读(195)
推荐(0)
css clearfix (导航效果)
摘要:老男孩 图片 .clearfix:after{ content: "."; display: block; height: 0; clear: both; visibility: hidden;}
阅读全文
posted @
2015-12-20 21:45
zhaobin022
阅读(183)
推荐(0)
Django 多条件查询(Q)
摘要:from django.db.models import Qcon = Q() q1 = Q()q1.connector = 'OR'q1.children.append(('id', 1))q1.children.append(('id', 10))q1.children.append(('id'
阅读全文
posted @
2015-12-19 17:32
zhaobin022
阅读(1165)
推荐(0)
check datagurad scripts using python
摘要:#!/usr/bin/python# -*- coding: utf-8 -*-import cx_Oracle import stringfrom email import encodersfrom email.header import Headerfrom email.mime.text i...
阅读全文
posted @
2015-12-18 15:29
zhaobin022
阅读(194)
推荐(0)
nagios check_oracle plugin (add check temp tablespace)
摘要:#!/bin/sh## latigid010@yahoo.com# 01/06/2000## This Nagios plugin was created to check Oracle status#export ORACLE_SID=testexport ORACLE_BASE=/test/u...
阅读全文
posted @
2015-12-18 15:27
zhaobin022
阅读(399)
推荐(0)
monitor tomcat sctips
摘要:#!/usr/bin/python#coding=utf-8 import datetime from subprocess import Popen, PIPEimport osimport smtplibfrom email.mime.text import MIMETextfrom emai...
阅读全文
posted @
2015-12-18 15:22
zhaobin022
阅读(305)
推荐(0)
ATM 练习
摘要:bank.py__author__ = 'zhaobin022'import jsonimport toolsimport getpassimport datetimeclass DatabaseHelper: def __init__(self): self.databas...
阅读全文
posted @
2015-12-17 15:01
zhaobin022
阅读(203)
推荐(0)
socket 练习 ftp
摘要:server.py__author__ = 'zhaobin022'#!/usr/bin/env python# -*- coding:utf-8 -*-import SocketServerimport subprocessimport reimport osclass MyServer(Sock...
阅读全文
posted @
2015-12-17 14:57
zhaobin022
阅读(157)
推荐(0)
socket 练习 sendcommand
摘要:__author__ = 'zhaobin022'#!/usr/bin/env python# -*- coding:utf-8 -*-import SocketServerimport subprocessclass MyServer(SocketServer.BaseRequestHandler...
阅读全文
posted @
2015-12-17 09:51
zhaobin022
阅读(272)
推荐(0)
python 计算器练习
摘要:import redef compute_add_sub(s): p = re.compile(r'(.*?)([+-]?\d*\.*\d+[+-]\d+\.*\d*)(.*)') match = p.search(s) if match: pre = match.g...
阅读全文
posted @
2015-12-16 10:52
zhaobin022
阅读(261)
推荐(0)
python requests 调用restful api
摘要:#!/usr/bin/python# -*- coding: utf-8 -*-import jsonimport requestsfrom urlparse import urljoin BASE_URL = 'http://192.168.26.67:8000'AUTH = ('admin', ...
阅读全文
posted @
2015-12-15 11:19
zhaobin022
阅读(6402)
推荐(0)