`
scm002
  • 浏览: 309831 次
社区版块
存档分类
最新评论
文章列表

Shipyard 安装

    博客分类:
  • Tool
url -s https://shipyard-project.com/deploy | bash -s Deploying Shipyard  -> Starting Database  -> Starting Discovery  -> Starting Cert Volume  -> Starting Proxy  -> Starting Swarm Manager Unable to find image 'swarm:latest' locally latest: Pulling from library/swarm 3ff891db ...

date显示当前日期

echo `date +%F\ %T`    查找当前文件数量 echo `find ./ -type f -print|wc -l`
shell编程中条件表达式的使用   if  条件then Commandelse Commandfi                              别忘了这个结尾 If语句忘了结尾fitest.sh: line 14: syntax error: unexpected end of fi  
Group1. access gerrit sql database   cmd: ssh -p 29418 150.236.40.165 gerrit gsql2. gerrit> delete from ACCOUNT_GROUP_NAMES where name='group name';3. gerrit> delete from ACCOUNT_GROUPS where name='group name';Project1. access gerrit sql database 
https://github.com/sonyxperiadev/pygerrit   Pygerrit provides a simple interface for clients to interact with Gerrit Code Review via ssh or the REST API. This repository is no longer actively maintained. Development has moved to pygerrit2. Prerequisites Pygerrit has been tested on Ubuntu 10.4 ...

python 格式化json

#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import json     reload(sys) sys.setdefaultencoding("utf-8")   with open('output.json') as f:   data = json.load(f)   #print json.dump(json.load(data)) print json.dumps(data, indent=4, sort_keys=False, ensure_ ...
http://blog.sina.com.cn/s/blog_88b00ea80101d2l3.html http://dongyupu.github.io/2015/08/15/Gerrit-Review-connect-Jira/   Gerrit and Jira connect , there are many ways In Jira : JIRA Gerrit Plugin In gerrit :Plugin to integrate with Atlassian JIRA google Answers: http://stackoverflow. ...
http://www.camdemy.com/media/7427 JSON,一個輕量級的資料交換語言,目前許多網站AJAX request的回應結果都是JSON格式   以下是一個標準的JSON格式   1 2 3 4 5
http://www.cnblogs.com/xwdreamer/p/3469951.htmlhttps://www.digitalocean.com/community/tutorials/how-to-install-and-co...https://www.digitalocean.com/community/tutorials/how-to-authenticate-c... LDAP (Lightweight Directory Access Protocol) 是一个集中用户管理系统。试想,当企业中搭建了多个服务比如redmine和gitlab,每个都需要重新开一个账号是非常麻烦 ...
参考:http://stackoverflow.com/questions/5863426/get-commit-list-between-tags-in-git   git log --pretty=oneline tagA...tagB If you just wanted commits reachable from tagB but not tagA: git log --pretty=oneline tagA..tagB or git log --pretty=oneline ^tagA tagB
Jenkins, the continuous integration server, provides a nice package to run it on Mac OS X. It installs as a launch daemon and runs smoothly. But when a new version of Jenkins is available, there is no automatic upgrade feature. So here is how to upgrade this kind of installtion: Download the lates ...
Python开发中时长遇到要下载文件的情况,最常用的方法就是通过Http利用urllib或者urllib2模块。 当然你也可以利用ftplib从ftp站点下载文件。此外Python还提供了另外一种方法requests。 下面来看看三种方法是如何来下载zip文件的: 方法一:

Apache ubuntu setup

apt-get install apache2 cd /var/www/html mkdir test 修改根目录: 在 /etc/apache2/sites-available 中修改 000-default.conf 中的DocumentRoot /var/www/html 修改为想要的目录  比如:DocumentRoot /var/www/html/test   接下来重启apache,sudo apache2ctl -k restart 即可
http://stackoverflow.com/questions/28503736/how-can-i-set-jenkins-build-description-while-triggering-build-via-curl     You can always have a variable and pass the build description into the variable on the initial invocation. Then at the end of your build, output the variable to console and catc ...
在以前发的博文里提到如何在gerrit里集成gitweb。集成之后发现只有我的root用户(gerrit里注册的第一个用户)才能够点gitweb链接正常打开gitweb页面。其他的普通用户点gitweb链接显示404错误。经过网上调查发现2.5开始使用gitweb需要有【refs/*】下所有的read权限。参考链接1 里有下面一段话『This is due to a change on the level of security applied by GitServlet: now the GitWeb makes sure that the user has full access to AL ...
Global site tag (gtag.js) - Google Analytics