生活的美妙在于,不知道一下秒是惊艳还是伤神,时光流转,珍惜现在的拥有的时光
全部博文(276)
发布时间:2016-07-01 10:23:39
修改.bashrc 中加入一行 export TERM=xterm 之后退出vim 不再显示内容.t@localhost ~$ vim systemdt@localhost ~$ ......【阅读全文】
发布时间:2016-06-21 12:05:17
(By BEL修改成主机名echo -ne "\033]2;`hostname`\007"......【阅读全文】
发布时间:2016-06-20 17:56:17
使用yum 安装完rundeck后服务配置完成.在浏览器中输入访问网址:youhost:4440,页面跳转至http://localhost:4440/menu/home# su - rundeck$ vim /etc/rundeck/rundeck-config.propertiesgrails.serverURL=http://localhost:4440注释掉上面一行# service rundeckd restartStopping rundeckd: .........【阅读全文】
发布时间:2016-05-25 11:51:53
t@localhost webapp$ tree.├── cgi-bin│ ├── athletemodel.py│ ├── generate_list.py│ ├── generate_timing_data.py│ ├── kelly_c.py│ └── yate.py├── coach.css├── data│ ├── athletes.pickle│ ├── james.txt│ .........【阅读全文】
发布时间:2016-05-23 19:06:49
点击(此处)折叠或打开#!/usr/bin/env python3# -*- coding:utf-8 -*-import osclass athlete: def __init__(self, athlete_name, athlete_dob=None, athlete_times=[]): &.........【阅读全文】
发布时间:2016-05-23 13:48:42
使用函数点击(此处)折叠或打开#!/usr/bin/env python3# -*- coding:utf-8 -*-#函数与处理的数据打包一起.def filetolist(file,listname): try: #.........【阅读全文】
发布时间:2016-05-23 11:50:58
点击(此处)折叠或打开#!/usr/bin/env python3# -*- coding:utf-8 -*-def filetolist(file,listname): try: #打开文件 &n.........【阅读全文】
发布时间:2016-05-13 11:57:06
t@localhost .ssh$ ssh -vT git@github.comOpenSSH_7.2p2, OpenSSL 1.0.2h-fips 3 May 2016...sign_and_send_pubkey: signing failed: agent refused operation...Permission denied (publickey).t@localhost .ssh$ eval "$(ssh-agent -s)"Agent pid 6894t@localhost .ssh$ ssh -vT git@github.comOpenSSH_.........【阅读全文】
发布时间:2016-05-12 15:33:35
几个Python配置工具简介:setuptools、pip、virtualenvYeolar 2012-08-18 10:16 本篇快速总结几个Python的常见配置工具,包括setuptools、pip、virtualenv。setuptoolssetuptools管理Python的第三方包,将包安装到site-pac.........【阅读全文】
发布时间:2016-05-11 10:52:40
文件结构webapp_temlate.pytemplates/├── form.html├── home.html└── signok.htmlwebapp_temlate.py点击(此处)折叠或打开#!/usr/bin/env python3#-*- coding:utf-8 -*-''''''from flask import Flask.........【阅读全文】
发布时间:2016-05-10 19:54:20
点击(此处)折叠或打开#!/usr/bin/env python3#-*- coding:utf-8 -*-''''''from flask import Flaskfrom flask import requestapp = Flask(__name__)@app.route('/'.........【阅读全文】
发布时间:2016-05-10 14:32:03
点击(此处)折叠或打开#!/usr/bin/env python3#-*- coding:utf-8 -*-''''''def application(environ,start_response): start_response('200 ok',[('Content-Type', 'text/html')])&n.........【阅读全文】
发布时间:2016-05-09 16:55:44
客户端socket点击(此处)折叠或打开#!/usr/bin/env python3#-*- coding:utf-8 -*-''''''#导入socket网络编程模块import socket#创建客户端通信对象client_socket = socket.socket(socket.AF_IN.........【阅读全文】
发布时间:2016-05-09 14:22:56
task_master.txttask_worker.txt点击(此处)折叠或打开#!/usr/bin/env python3#-*- coding:utf-8 -*-''''''import time,random,queuefrom multiprocessing.managers import BaseManagertask_.........【阅读全文】
发布时间:2016-05-09 11:00:45
I wrote a little while ago about how, for running PHP, Nginx was not faster than Apache. At first I figured that it would be and then it turned out not to be, though only by a bit.But since Apache also has an event-based MPM I wanted to see if the opposite results were true; that if.........【阅读全文】