Git Product home page Git Product logo

scripts_lib's Introduction

scripts_lib

日常脚本库,包括python和shell等

  • 1.get_ip_detail

    依赖: python requests

    运行方式:python ip.py

    说明:得到ip地址的详细信息,通过淘宝的ip地址库接口进行查询,ip.txt里面是ip列表

    得到信息如下:

    ip:114.114.114.114 city:南京市 area_id:300000 region_id:320000 area:华东 city_id:320100 country:** region:江苏省 isp: country_id:CN county: isp_id:-1 county_id:-1

  • 2.auto_deploy_public_service

    自动部署公共组件脚本

    组件包括zookeeper,codis,metaq,solr,nodejs

  • 3.auto_modify_tomcat_conf

    批量修改tomcat配置,包括以下:

    三个端口号,过滤jar包,字符集

  • 4.backup_to_HuaWeiYun

    备份代码以及配置到华为云

    首先需要安装华为云的sdk:cd sdk/src && python setup.py install

    然后需要修改key.py里面的信息

  • 5.svn_backup

    svn加密备份脚本:增量备份和全量备份,以及加密

    使用过程中注意脚本中的路径,本脚本中的路径都是我所在公司的路径

scripts_lib's People

Contributors

dgsfor avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.