Skip to content

Instantly share code, notes, and snippets.

@crazycode
crazycode / RULE.md
Last active November 14, 2023 08:25
安装Gerrit2以及使用说明

代码提交要求

  • 一个Commit对应一个修改点(除非是在项目初始阶段或是升级BSP时)。
  • 不要随便修改文件的属性。Windows 修改过的文件属性会变成755,上传代码时请注意修改成文件的原属性,可以用git whatchanged 来查看自己commit修改的文件。 缩进格式跟原文件保持一致。
  • 不要修改跟提交内容无关的代码。

Git commit 注释要求

  • 设置GIT使用vim来编辑commit,请不要使用-m参数 (git config –global core.editor vim)。
# defaults for jenkins continuous integration server
JENKINS_ARGS="-jnlpUrl http://test.lnc.jp:8080/computer/wock/slave-agent.jnlp"
# jenkins home location
JENKINS_HOME=/opt/jenkins-slave
# location of the jenkins war file
JENKINS_WAR=$JENKINS_HOME/slave.jar
# pulled in from the init script; makes things easier.
NAME=jenkins
From 8ab91751069e391a95151c6716a546b1732ade92 Mon Sep 17 00:00:00 2001
From: JP <twitter:canoeberry>
Date: Sun, 19 Jan 2014 11:58:54 +0000
Subject: [PATCH] partial memleak fix
This patch was created by JP (twitter: @canoeberry) based on a memleak fix by Dirk (emacs committer) below:
https://github.com/mirrors/emacs/commit/57ae6509a3b6a274f89b9caea0284c6156470625
This memory leak is fixed in the trunk as of now and will be in the next official release: 24.4.
@crazycode
crazycode / fig.yml
Created April 24, 2015 08:33
fig for gitlab
postgresql:
image: sameersbn/postgresql:9.4
volumes:
- ./postgresql-data:/var/lib/postgresql
environment:
- DB_USER=gitlab
- DB_PASS=secretpassword
- DB_NAME=gitlabhq_production
gitlab:
image: sameersbn/gitlab:7.10.0
@crazycode
crazycode / settings.xml
Created May 10, 2016 05:10
maven $HOME/.m2/settings.xml
<settings>
<mirrors>
<mirror>
<!--This sends everything else to /public -->
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>http://nexus.adxage.local:8381/nexus/content/groups/public</url>
</mirror>
</mirrors>
<profiles>
@crazycode
crazycode / init.gradle
Created May 18, 2016 06:38
.gradle/init.gradle
allprojects {
buildscript {
repositories {
mavenLocal()
maven { url 'http://localhost:8081/nexus/content/groups/public' }
jcenter()
maven { url 'http://repo.spring.io/plugins-release' }
maven { url 'http://repo.spring.io/milestone' }
maven { url "https://plugins.gradle.org/m2/" }
}
@crazycode
crazycode / .editorconfig
Created June 6, 2016 04:00
.editorconfig
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org
root = true
[*]
# Change these settings to your own preference
indent_style = space
@crazycode
crazycode / cloud-registry自启动脚本.sh
Created January 4, 2017 01:37
/etc/init.d/spring-cloud-registry
#!/bin/bash
#
# . ____ _ __ _ _
# /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
# ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
# \\/ ___)| |_)| | | | | || (_| | ) ) ) )
# ' |____| .__|_| |_|_| |_\__, | / / / /
# =========|_|==============|___/=/_/_/_/
# :: Spring Boot Startup Script ::
#
@crazycode
crazycode / spring-boot应用自启动脚本.sh
Created January 4, 2017 01:38
/etc/init.d/spring-rule-gateway
#!/bin/bash
#
# . ____ _ __ _ _
# /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
# ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
# \\/ ___)| |_)| | | | | || (_| | ) ) ) )
# ' |____| .__|_| |_|_| |_\__, | / / / /
# =========|_|==============|___/=/_/_/_/
# :: Spring Boot Startup Script ::
#
@crazycode
crazycode / git-remove-branches
Created April 15, 2019 11:13 — forked from TBonnin/git-remove-branches
Safely remove local fully merged branches
#!/bin/bash
# This has to be run from master
git checkout master
# Update our list of remotes
git fetch
git remote prune origin
# Remove local fully merged branches