pet包
- new2dir make install
- dir2pet
- tgz2pet
- pet2tgz
sfs镜像文件
- mksquashfs dir /mnt/home/dir.sfs
Various things that I read and meet everyday.
Linux技术中坚站 | http://www.chinalinuxpub.com/ |
资讯 - 中国Linux公社 - Powered by SupeSite | http://www.linuxfans.org/cms/index.php |
LinuxSir.Org | http://www.linuxsir.org/main/ |
中国最大的、最权威的开源网站 中国开源项目 | http://www.opensourceproject.org.cn/ |
Linux 学习网 - Linux学习网 | http://www.5dlinux.com/ |
ChinaUnix.net | http://www.chinaunix.net/ |
开源中国社区 | http://www.oschina.net/ |
# Python 3.0 Src 2009/01/27
# Retrive zip files from MinGW Cross Compiler
import os
import io
import re
import urllib.request as request
sBaseUrl = "http://sourceforge.net"
def getUrl(sUrl, sProxy = None):
if sProxy is not None:
proxy_handler = request.ProxyHandler({"http" : sProxy})
opener = request.build_opener(proxy_handler)
request.install_opener(opener)
return request.urlopen(sUrl)
def u2u(sUrl):
return sUrl.replace("&", "&")
def saveToFile(sPath, sText):
fSave = open(sPath, "wb")
fSave.write(sText)
fSave.flush()
fSave.close()
def getLvl2FileName(sText):
oPat = re.compile('<a [^>]+ class="sfx_qalogger_element sfx_qalogger_clickable" href="(.+)" [^>]+>(.+\.zip)<\/a>')
oIter = oPat.finditer(sText)
for oMatch in oIter:
sLvl3Url = u2u(u2u(oMatch.group(1)))
print(" " + sLvl3Url)
hSiteLvl2 = getUrl(sLvl3Url)
saveToFile(oMatch.group(2), hSiteLvl2.read())
if __name__ == "__main__":
# Proxy URLのセット
sProxy = "http://xxx.xxxxx.xxx:8080"
sUrl = "http://sourceforge.net/project/showfiles.php?group_id=204414"
hSite = getUrl(sUrl, sProxy)
sText = str(hSite.read(), "utf-8")
oPat = re.compile('<td class="download"[^>]+><a href="(.+)">Download<\/a><\/td>')
oIter = oPat.finditer(sText)
for oMatch in oIter:
sLvl2Url = u2u(sBaseUrl + oMatch.group(1))
print(sLvl2Url)
hSiteLvl2 = getUrl(sLvl2Url)
getLvl2FileName(str(hSiteLvl2.read(), "utf-8"))
# mkdir -p /mnt/ntserver
# mount -t cifs //ntserver/download -o username=vivek,password=myPassword /mnt/ntserver
# mount -t smbfs -o username=vivek,password=D1W4x9sw //ntserver/download /mnt/ntserver
# cd /mnt/ntserver; ls -l
bjam --toolset=gcc --stagedir=. stage
g++ `pkg-config --cflags opencv` `pkg-config --libs opencv` -o exe_name source.cpp
The Windows Command Line, Batch Files, and Scripting- Using the Command Shell
コンマンドに関するとっても素晴らしいサイトで、これからよく利用できると思います。