ITeye博客

scm002-blog

scm002 · 共 196 篇文章

Ubuntu setup kodexplorer

1. Setup XAMPP Download XAMPP: https://www.apachefriends.org/index.html Install XAMPP https://www.apachefriends.org/faq_linux.html 2. Setup KODExplorer Download: http://www.kalcaddle.com/download.html sudo cp -r kodexplorer/ /opt/lampp/htdocs/ chmod 777 kodexplorer chmod -R 777 kodexplorer/data/ 浏览…

2017-06-28 12:40 · KODExplorer · 评论(0)

Copying files from host to Docker container

The cp command can be used for that. For example: docker cp foo.txt mycontainer:/foo.txt docker cp mycontainer:/foo.txt foo.txt https://docs.docker.com/engine/reference/commandline/cp/ http://blog.csdn.net/yangzhenping/article/details/43667785

2017-06-26 14:53 · Docker · 评论(0)

lxml.etree

http://www.cnblogs.com/bluescorpio/archive/2013/06/09/3127964.html http://blog.csdn.net/u012063703/article/details/51754665 http://www.jianshu.com/p/f446663c970f 1. 判断是否有子元素或子节点 使用len(element),这更清楚,也不容易犯错。 >>> print(etree.iselement(root)) # test if it's some kind of Element True >>> if len(root): #…

2017-06-21 10:48 · Python · 评论(0)

How to modify existing, unpushed or pushed commits?

https://stackoverflow.com/questions/179123/how-to-modify-existing-unpushed-commits Amending the most recent commit message git commit --amend will open your editor, allowing you to change the commit message of the most recent commit. Additionally, you can set the commit message directly in the comm…

2017-06-20 16:43 · Git/Gerrit · 评论(0)

git diff提示filemode发生改变(old mode 100644、new mode 10075)

今天在提交代码之前 git status了一下,发现一片红啊~每个git库下的所有文件都飘红了,抽什么疯啊? 我不可能修改那么多~~ git diff 了一下,发现都是 diff --git a/Android.mk b/Android.mk old mode 100644 new mode 100755 原来是filemode的变化,文件chmod后其文件某些位是改变了的,如果严格的比较原文件和chmod后的文件,两者是有区别的,但是源代码通常只关心文本内容,因此chmod产生的变化应该忽略,所以设置一下: 切到源码的根目录下, repo forall -c git config core…

2017-06-10 09:32 · Git/Gerrit · 评论(0)

Playing With Gerrit Jira Plugin

Playing With Gerrit Jira Plugin Aug 5th, 2014 Build and Setup 1 . Clone the Gerrit source: 1 $ git clone https://gerrit.googlesource.com/gerrit 2 . Checkout to version 2.8 (2.8 is the latest stable version), include to update submodules: 1 2 3 $ cd gerrit $ git checkout -b stable-2.8 stable-2.8 $ g…

2017-06-09 16:10 · Git/Gerrit · 评论(0)

Gerrit mysql error: Communications link failure

fatal: DbInjector failed fatal: Unable to determine SqlDialect fatal: caused by com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure fatal: fatal: The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the…

2017-05-24 15:31 · Git/Gerrit · 评论(0)

mysql卸载重装 invoke-rc.d: initscript dkimproxy, action "start" failed. dpkg:处理 dkim

invoke-rc.d: initscript dkimproxy, action "start" failed. dpkg:处理 dkimproxy (--configure)时出错: 子进程 已安装 post-installation 脚本 返回了错误号 2 dpkg:依赖关系问题使得 dtc-toaster 的配置工作不能继续: dtc-toaster 依赖于 dkimproxy;然而: 软件包 dkimproxy 尚未配置。 dpkg:处理 dtc-toaster (--configure)时出错: 依赖关系问题 - 仍未被配置 由于已经达到 MaxReports 限制,没有写入 a…

2017-03-29 20:28 · Tool · 评论(0)

ubuntu12.04下OpenLDAP的安装部署

1、ldap server OS:ubuntu server 12.04 2、ldap 软件: OpenLDAP 2.4.28 一、ldap服务的配置与使用 1、修改主机域名 Java代码 vi /etc/hosts 127.0.1.1 ldapserver.my.com.cn ldapserver 安装软件时默认创建的base DN取决于本机域名,根据实际情况修改域名。 2、软件安装 Java代码 sudo apt-get install slapd ldap-utils 安装过程中会提示输入admin密码。 3、构建初始数据 3.1 查看目录树初始结构: Java代码 root@ldap…

2017-03-29 11:39 · Tool · 评论(0)

查看什么进程占用了3000端口

查看什么进程占用了3000端口 fuser -n tcp 3000 结果为: 3000/tcp: 941 然后kill -9 941

2017-03-24 14:48 · Shell · Linux · 评论(0)

Gerrit replication.config

replication.config [remote "slave "] # url = ssh://user@172.16.2.35:29418/${name}.git url = ssh://gerrit2@172.16.2.35/home/gerrit2/review_site/git/${name}.git push = +refs/heads/*:refs/heads/* push = +refs/tags/*:refs/tags/* mirror = true threads = 2 createMissingRepositories = true adminUrl = ssh:…

2017-03-16 19:15 · Git/Gerrit · 评论(0)

Gerrit命令

查看可见的群组 ssh -p 29418 admin@localhost gerrit ls-groups #创建新的项目,--owner需要的群组必须要在Gerrit已经定义好的 ssh -p 29418 admin@localhost gerrit create-project "test/helloworld" --description "'Tools used by build system'" --owner "user/admin" --parent "All-Projects" #修改项目配置 ssh -p 29418 admin@localhost gerrit set-p…

2017-03-10 10:33 · Git/Gerrit · 评论(0)

Make Gerrit look for new repositories

Command line alternative Copy bare Git repository into ~/gerrit_testsite/git/myproject.git Make Gerrit look for new repositories: $ ssh -p 29418 alexadmin@localhost gerrit flush-caches --cache project_list 创建或copy了新的.git库到gerrit server上后,如果想要在gerrit页面看到,必须重启gerrit才能生效。 运行此命令后,即可在gerrit页面看到,不需要重启ger…

2017-03-08 19:01 · Git/Gerrit · 评论(0)

Python dictdiffer模块比较两个字典

http://dictdiffer.readthedocs.io/en/latest/ Dictdiffer Dictdiffer is a helper module that helps you to diff and patch dictionaries. Installation Dictdiffer is on PyPI so all you need is: $ pip install dictdiffer Usage Let’s start with an example on how to find the diff between two dictionaries usin…

2017-03-04 17:51 · Python · 评论(0)

gitlab 项目迁移

gitlab项目迁移: 一: 场景 目前有2个gitlab server,需要将gitlab-A server项目迁移到另外一个gitlab-B server. 二: 步骤 1. 在gitLab-B上新建组和项目,组和项目名称和gitlab-A的组合项目名称一一对应。 2. 将gitlab-A项目clone到本地 git clone https://github.com/group/hello.git 3. 进入项目hello, 执行一下命令 cd hello git remote set-url origin ssh://git@172.16.2.94:10022/group/hello.…

2017-03-04 11:45 · Git/Gerrit · 评论(0)