download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.
Pragma: akamai-x-cache-on, akamai-x-cache-remote-on, akamai-x-check-cacheable, akamai-x-get-cache-key, akamai-x-get-extracted-values, akamai-x-get-nonces, akamai-x-get-ssl-client-session-id, akamai-x-get-true-cache-key, akamai-x-serial-no |
package com.csabapalfi.dropwizard; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import com.google.common.collect.ImmutableMap; | |
import com.yammer.dropwizard.Service; | |
import com.yammer.dropwizard.cli.ServerCommand; | |
import com.yammer.dropwizard.config.Bootstrap; | |
import com.yammer.dropwizard.config.Configuration; | |
import com.yammer.dropwizard.config.Environment; |
download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
var gulp = require('gulp'); | |
// build tasks | |
var childProcess = require('child_process'); | |
gulp.task('jekyll', function(cb) { | |
var child = childProcess.exec('jekyll build', function(error, stdout, stderr) { | |
cb(error); | |
}); | |
}); |
paginate: 10 |
require 'fileutils' | |
OUT_DIR = 'public' | |
desc 'Prepare and upload the static site to S3' | |
task :upload, [:name] do |t, args| | |
raise Exception.new('You must provide the name of site to upload to, e.g., be rake upload[www]') unless args[:name] | |
puts "Removing existing output directory" | |
FileUtils.rm_rf OUT_DIR if File.exists?(OUT_DIR) |
import java.security.Key; | |
import java.util.Properties; | |
import javax.crypto.Cipher; | |
import javax.crypto.spec.SecretKeySpec; | |
import javax.persistence.AttributeConverter; | |
import javax.persistence.Converter; | |
import org.slf4j.Logger; |
Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.
cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/