原创 統計python腳本中 shell命令輸出文本的行數

統計python腳本中 shell命令輸出文本的行數 username=xxxx Count_num=len(os.popen('cat CaseBuildFailed.list | cut -d " " -f1-3 | g

原创 gitlab 使用API批量創建羣組和代碼庫

使用gitlab的API批量創建組 寫入所有羣組到文件lllll中: vi lllll 使用gitlab的API批量創建羣組: for i in `cat lllll`;do echo $i": ";curl --request

原创 java 1.7 sdk download url 下載地址

https://www.oracle.com/java/technologies/javase/javase7-archive-downloads.html

原创 gunicorn 啓動flask 失敗

gunicorn 啓動flask 失敗, print("\nError: %s" % str(e), file=sys.stderr) [xxxxxxxx jenkins]$ sudo gunicorn -c gunicorn.p

原创 sonarqube 升級問題

升級版本時數據庫數據比較大時,修改elasticsearch/config/jvm.options Xmx 參數可以加快BulkIndexer 的速度,可以達到30000 items/sec左右; web[][o.s.s.es.

原创 gitlab 登錄數據庫psql -d gitlabhq_production 報錯

gitlab 登錄數據庫psql -d gitlabhq_production 報錯: $ psql -d gitlabhq_production psql: could not connect to server: Conne

原创 repo init error: no signature found

原因也很簡單,repo的版本太低了;執行以下的command就可以解決了。 下載最新的repo到/sbin目錄下 sudo curl http://commondatastorage.googleapis.com/git-rep

原创 Jenkins Job Http Api

Jenkins Job 創建 curl -X POST http://localhost:8080/jenkins/createItem?name=Justatest --user dongwuming:dongwuming

原创 CentOS 安裝 SonaType Nexus Maven Repository以及舊庫遷移

轉載:http://www.cnblogs.com/zhangqingsh/archive/2013/03/14/2959301.html CentOS下安裝SonaType Nexus: 1.1 下載SonaTYpe Nex

原创 python 調用 shell python shell 間變量傳遞

Python -> shell: 1.環境變量 import os var=123或var=’123’ os.environ[’var’]=str(var) #environ的鍵值必須是字符串 os.system(

原创 SonarQube的安裝、配置與使用

SonarQube是管理代碼質量一個開放平臺,可以快速的定位代碼中潛在的或者明顯的錯誤,下面將會介紹一下這個工具的安裝、配置以及使用。 準備工作; 1、jdk(不再介紹) 2、sonarqube:http://www.sonarq

原创 Grep 搜索內容高亮紅色顯示輸出

Grep 搜索內容高亮紅色顯示輸出: grep xxx ----color=auto 或在權限配置文件加上: vi ~/.bash_profile export GREP_OPTIONS='--color=auto' sourc

原创 Ubuntu下解決adb devices:???????????? no permissions的方法

問題:連接android手機後,使用adb devices,出現了?????,nopermissions沒有權限的問題,如圖: 原因:經過百度得,原因是ubuntu這樣的系統都是默認以非root身份在運行的,要使用usb調試,需

原创 sonarqube Gradle plugin 配置方法

org.sonarqube Gradle plugin for running SonarQube analysis. http://redirect.sonarsource.com/doc/gradle.html Gradle

原创 sonatype nexus api

Get status curl http://localhost:8081/nexus/service/local/status should display something like Sonatype Nexus Pr