git-svn の使い方をメモする。他によいプラクティスがあれば指摘していただけるとありがたい。
SVN のブランチと git のブランチが混在しているため、ここではブランチという語を以下のように区別する。
- ブランチ、 SVN ブランチ:$SVN_REPO/branches 以下にあるディレクトリ
- ローカルブランチ:git のローカルブランチ
- リモートブランチ:git のリモートブランチ
| #!/bin/sh | |
| # MongoDB Version | |
| MONGODB_VER='2.2.2' | |
| # Get all the dependencies up to date | |
| yum -y update | |
| yum -y install scons gcc-c++ glibc-devel | |
| # Get the source |
| #!/bin/bash | |
| # Create the directory structure | |
| mkdir -p features/step_definitions | |
| mkdir -p features/support | |
| # Create a placeholder for the step_definitions folder | |
| touch features/step_definitions/"$(basename `pwd`)_steps.rb" | |
| # Create the environment file |
| import java.io.*; | |
| import java.util.*; | |
| import sun.jvm.hotspot.memory.*; | |
| import sun.jvm.hotspot.oops.*; | |
| import sun.jvm.hotspot.debugger.*; | |
| import sun.jvm.hotspot.runtime.*; | |
| import sun.jvm.hotspot.tools.*; | |
| import sun.jvm.hotspot.utilities.*; | |
| public class DirectMemorySize extends Tool { |
There is a long standing issue in Ruby where the net/http library by default does not check the validity of an SSL certificate during a TLS handshake. Rather than deal with the underlying problem (a missing certificate authority, a self-signed certificate, etc.) one tends to see bad hacks everywhere. This can lead to problems down the road.
From what I can see the OpenSSL library that Rails Installer delivers has no certificate authorities defined. So, let's go fetch some from the curl website. And since this is for ruby, why don't we download and install the file with a ruby script?