create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| #!/bin/bash | |
| # This script will help you setup Docker for TLS authentication. | |
| # Run it passing in the arguement for the FQDN of your docker server | |
| # | |
| # For example: | |
| # ./create-docker-tls.sh myhost.docker.com | |
| # | |
| # The script will also create a profile.d (if it exists) entry | |
| # which configures your docker client to use TLS | |
| # |
| ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa | |
| ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa | |
| ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa |
| #!/usr/bin/env bash | |
| git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done | |
| git fetch --all | |
| git pull --all |
| These instructions are an amalgamation of those posted at http://jdevel.wordpress.com/2011/03/26/running-opengrok-on-windows/ and my own experience. | |
| To setup OpenGrok on Windows running under Tomcat: | |
| 1. Download OpenGrok binary. Just go to OpenGrok Home and download the latest (0.10, currently) binary | |
| 2. Download ctags. Just go to ctags, download windows zip file and extract it somewhere. | |
| 3. Edit web.xml. You need to extract lib/source.war somewhere and modify WEB-INF/web.xml slightly. I’ve modified the CONFIGURATION param to point to my generated configuration.xml file(more about it later) and added SRC_ROOT and DATA_ROOT to point to folder with sources to index and folder that OpenGrok should keep it’s data in (I’m not sure if these two are needed if you pass in configuration.xml) | |
| <context-param> | |
| <param-name>CONFIGURATION</param-name> | |
| <param-value>D:/GrokTest/configuration.xml</param-value> |
| <!doctype html> | |
| <title>Site Maintenance</title> | |
| <style> | |
| body { text-align: center; padding: 150px; } | |
| h1 { font-size: 50px; } | |
| body { font: 20px Helvetica, sans-serif; color: #333; } | |
| article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
| a { color: #dc8100; text-decoration: none; } | |
| a:hover { color: #333; text-decoration: none; } | |
| </style> |
| # download PCRE and nginx source | |
| sudo mkdir -p /usr/local/src | |
| cd /usr/local/src | |
| # copy PCRE to directory | |
| # eg. cp /tmp/pcre-8.20.tar.gz /usr/local/src/ | |
| tar xzvf pcre-8.20.tar.gz | |
| cd pcre-8.20 | |
| ./configure --prefix=/usr/local | |
| make && sudo make install && make clean |
| # setup vagrant | |
| gem install vagrant | |
| vagrant box add lucid32 http://files.vagrantup.com/lucid32.box | |
| mkdir my_vagrant_test | |
| cd my_vagrant_test | |
| vagrant init lucid32 | |
| vim Vagrantfile | |
| vagrant up | |
| vagrant ssh |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| $ cd git | |
| $ mkdir yourproject.git | |
| $ cd yourproject.git | |
| $ git --bare init |