This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Where is the location of your current shall. Useful if we need to revert | |
echo $0 | |
# Install ZSH | |
sudo apt-get install zsh | |
# Instal GIT | |
sudo apt-get install git-core | |
# Install OhMyZSH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding:utf-8 | |
''' | |
xls文件导出工具 | |
将会把指定的excel目录下的所有xls文件转成需要的文件(这里直接转成了代码文件方便使用) | |
对xls文件的要求: | |
第一行:无用 备注等 | |
第二行:类型 int float string struct |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os | |
def BatchRename(path): | |
#设置路径 | |
os.chdir(path) | |
fileList = os.listdir(path) | |
for root,subdirs,files in os.walk(path): | |
for fileItem in files: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local p = "E:/work/client/trunk/heroPro/src/logic/" | |
local m_package_path = package.path | |
package.path = string.format("%s;%s?.lua;%s?/init.lua", | |
m_package_path, p, p) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
rem reg add HKEY_CLASSES_ROOT\Python.File\shell\Pyc\command /v "" /t REG_SZ /d "\"C:\Python27\python.exe\" \"%~dp0xls_export.py\" \"%%1\"" /f | |
rem reg add HKEY_CLASSES_ROOT\Python.File\shell\Pyc\command /v "" /t REG_SZ /d "\"C:\Python27\python.exe\" \"%~dp0test.py\" \"%%1\"" /f | |
set CUR_PATH=%~dp0 | |
set BAT_NAME=C:\Windows\xls_export.bat | |
set PATHON_NAME=xls_export.py | |
set BAT_REGISTER=C:\Python27\python.exe %CUR_PATH%%PATHON_NAME% %%* | |
echo %BAT_REGISTER%>%BAT_NAME% | |
echo pause>>%BAT_NAME% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding:utf-8 | |
''' | |
xls文件导出工具 | |
将会把指定的excel目录下的所有xls文件转成需要的文件(这里直接转成了代码文件方便使用) | |
对xls文件的要求: | |
第一行:无用 备注等 | |
第二行:类型 int float string struct |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- @Author: wujiyu | |
-- @Date: 2015-11-26 14:14:18 | |
-- @Last Modified by: wujiyu | |
-- @Last Modified time: 2015-12-11 19:53:20 | |
-- 表复制 | |
local tableutil = require "public/util/tableutil" | |
local _e = {} | |
_e.print=print | |
_e.pairs=pairs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- @Author: wujiyu | |
-- @Date: 2015-11-26 14:14:18 | |
-- @Last Modified by: wujiyu | |
-- @Last Modified time: 2015-12-11 19:53:20 | |
-- 表复制 | |
local tableutil = require "tableutil" | |
local _e = {} | |
_e.print=print | |
_e.pairs=pairs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
import os | |
import os.path | |
import re | |
import logging | |
import json | |
import requests | |
import errno | |
postFileSuffix = ".md" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shell实例手册 | |
0说明{ | |
手册制作: 雪松 | |
更新日期: 2014-10-29 | |
欢迎系统运维加入Q群: 198173206 # 加群请回答问题 | |
欢迎运维开发加入Q群: 365534424 # 不定期技术分享 | |
请使用"notepad++"打开此文档,"alt+2"将函数折叠后方便查阅 |