上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 对于大型 Git 仓库,每次执行 Git 命令,都需要经过漫长的等待,特别是要经常执行的 git status 命令。 从 1.7.0 开始,Git 引入 sparse checkout(稀疏检出) 机制,稀疏检出机制允许只检出指定目录或者文件,这在大型 Git 仓库中,将大幅度缩短 Git 执行命 阅读全文
posted @ 2017-10-25 09:33 遥远的绿洲 阅读(433) 评论(0) 推荐(0) 编辑
摘要: Traceback (most recent call last): File "./se3.py", line 16, in <module> dr=webdriver.Firefox(firefox_binary=binary,executable_path=driver_path) File 阅读全文
posted @ 2017-10-23 14:45 遥远的绿洲 阅读(502) 评论(0) 推荐(0) 编辑
摘要: 什么是Unicode字符集?简单地说,它就是把全世界人类发明和使用的现有的所有字符进行了集中收集和逐一编码,这个过程就像把上学时老师把班里学生都叫到一起,统计总数后给每个学生分配一个唯一的学号一样。Unicode字符集里收录的字符可以是文字(如:‘α’、‘魍’等),也可以是符号(如:‘@’、‘$’) 阅读全文
posted @ 2017-10-18 10:54 遥远的绿洲 阅读(298) 评论(0) 推荐(0) 编辑
摘要: vi /etc/httpd/conf.d/welcom.conf <LocationMatch "^/+$"> #Options -Indexes vi /etc/httpd/conf/httpd.conf <Directory "/var/www/html"> Options Indexes Fo 阅读全文
posted @ 2017-10-10 10:22 遥远的绿洲 阅读(326) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python#coding=utf-8#__author__='David Chung'dict1={'pid':1375,'type':'cpu','resource':2048}print "%(pid)s,%(type)s,%(resource)s" %dict1print "{0[pid]},{0[type]}:{0[resource]}".format(di... 阅读全文
posted @ 2017-09-29 11:56 遥远的绿洲 阅读(16194) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python # -*- coding: utf-8 -*- import sys import re import time def print_help(): print 'Usage: ' print ' python mem.py 100MB' print ' pyth 阅读全文
posted @ 2017-09-15 19:39 遥远的绿洲 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 计算pi: time (echo "scale=500;4*a(1)"|bc -l -q) #!/bin/bashfor i in `seq 1 1000`do (time echo "scale=5000; 4*a(1)" | bc -l -q |grep 'real') 2>> pi.logdo 阅读全文
posted @ 2017-09-13 22:00 遥远的绿洲 阅读(1015) 评论(1) 推荐(0) 编辑
摘要: 完整的可以工作的命令行: mount -v -t cifs -o username=clouder,password=123456,iocharset=utf8,sec=ntlm //172.28.127.100/share /mnt/windows 还需要注意的是用户所在 domain , 我这里 阅读全文
posted @ 2017-08-25 16:24 遥远的绿洲 阅读(2841) 评论(0) 推荐(0) 编辑
摘要: 分区:parted /dev/sdbmklabel gptmkpart primary ext4 0% 100%set 1 raid mdadm -Cv /dev/md0 -n 4 -l5 /dev/sd[b-e]1cat /proc/mdstatmdadm -vDs >/etc/mdadm.con 阅读全文
posted @ 2017-08-15 20:13 遥远的绿洲 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 在Linux系统中,为了避免主机时间因为在长时间运行下所导致的时间偏差,进行时间同步(synchronize)的工作是非常必要的。Linux系统下,一般使用ntp服务来同步不同机器的时间。NTP 是网络时间协议(Network Time Protocol)的简称,干嘛用的呢?就是通过网络协议使计算机 阅读全文
posted @ 2017-08-15 09:36 遥远的绿洲 阅读(408) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页