git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
<!-- Add the following lines to theme's html code right before </head> --> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> | |
<script src="http://static.tumblr.com/fpifyru/VCxlv9xwi/writecapture.js"></script> | |
<script src="http://static.tumblr.com/fpifyru/AKFlv9zdu/embedgist.js"></script> | |
<!-- | |
Usage: just add <div class="gist">[gist URL]</div> | |
Example: <div class="gist">https://gist.github.com/1395926</div> | |
--> |
HANDY ONE-LINERS FOR RUBY November 16, 2005 | |
compiled by David P Thomas <[email protected]> version 1.0 | |
Latest version of this file can be found at: | |
http://www.fepus.net/ruby1line.txt | |
Last Updated: Wed Nov 16 08:35:02 CST 2005 | |
FILE SPACING: |
JARS_PATH = File.join(RAILS_ROOT, "lib/jars") | |
Dir["#{JARS_PATH}/*jar"].each {|j| require j} #Suck the jars. | |
require "java" | |
import org.apache.pdfbox.pdfparser.PDFParser | |
import org.apache.pdfbox.pdmodel.PDDocument | |
import org.apache.pdfbox.util.PDFTextStripper | |
import org.apache.poi.extractor.ExtractorFactory | |
#importing all the required classes. |
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?