# git_svn_repo should be a clean svn repository
git_svn_repo=<path>
git_repo=<path>
git_remote_repo=<url>
git_user_email=<email>
git_user_name=<name>
cd $git_svn_repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
HOST=$(hostname) | |
function install_postfix() { | |
echo | sudo debconf-set-selections <<__EOF | |
postfix postfix/root_address string | |
postfix postfix/rfc1035_violation boolean false | |
postfix postfix/mydomain_warning boolean | |
postfix postfix/mynetworks string 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
# ---------------------------------------- | |
# 最终的解决方案是利用这个脚本生成的URL, | |
# 通过迅雷下载所有的文件 | |
# ---------------------------------------- | |
Encoding.default_internal = Encoding::UTF_8 | |
Encoding.default_external = Encoding::UTF_8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
hexo clean | |
rm -rf .deploy | |
hexo deploy | |
git add -A . | |
git commit -m "Update sources" | |
git push |
# Fetch all commits
git fetch upstream master
# Find the commit id of last merge
git log
# Generate patches per commit
git format-patch -o <patches dir> <last merge commit id>
SVN_REPO_PATH=/opt/subversion/data/repositories
SVN_REPO_DESC=Subversion Repositories
SVN_REPO_PATH=/svn
SVN_REPO_INDEXED=true
SVN_DEFAULT_USERNAME=svn
SVN_DEFAULT_PASSWORD=svn
svn_list_parent_path=$( [[ "$SVN_REPO_INDEXED" = "true" ]] && echo on || echo off )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var browserify = require('browserify'); | |
var es6ify = require('es6ify'); | |
var gulp = require('gulp'); | |
var source = require('vinyl-source-stream'); | |
gulp.task('build:libs', function(callback) { | |
return browserify({ | |
entries: [ | |
require('es6ify').runtime, | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
readonly DB_FILE="$(pwd)/images.db" | |
readonly IMG_DIR="$(pwd)/images" | |
save-images() { | |
echo "Create ${DB_FILE}" | |
echo "$(docker images|grep -v 'IMAGE ID'|awk '{printf("%s %s %s\n", $1, $2, $3)}'|column -t)" > "${DB_FILE}" | |
echo "Read ${DB_FILE}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-------------------------------------------------------------------------------------------------- | |
# Security | |
sonar.security.realm=LDAP | |
#-------------------------------------------------------------------------------------------------- | |
# LDAP | |
# General Configuration | |
ldap.url=ldap://myopenldap:389 | |
ldap.bindDn=cn=admin,dc=myopenldap,dc=com |
- After openldap is connected from jira
- Create a demo account in jira, then the demo account should be created in openldap also
- Copy the demo account as the the inactive accounts one by one in openldap
- Execute
UPDATE cwd_user SET active=1 WHERE CREDENTIAL='nopass' AND active=0
in jira database (MySQL) - Restart jira server
- Reset inactive accounts password in jira
- Now, it should be working.