Skip to content

Instantly share code, notes, and snippets.

Hugues Landry hlandry

  • Moncton, NB
Block or report user

Report or block hlandry

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hlandry
hlandry / gist:3785269
Created Sep 26, 2012
Installing Apache Solr for Drupal on Mac OSX
View gist:3785269

Installing Apache Solr on Mac OSX Snow Leopard for Drupal

The apachesolr module for Drupal provides a first class search engine with faceted search and more. This module needs a solr server to work.

This post explains how you can install the module and a solr server on Mac OS 10.6.

Snow Leopard has already Java installed so it's pretty easy to install Apache Solr. You can almost follow the readme coming with the module but this give you a fast way ;).

Install apchesolr module

@hlandry
hlandry / archive-reimport.txt
Created Dec 27, 2011
Archive a repo and re-import it later.
View archive-reimport.txt
# Warning, this was only tested on small project that use only the main branch. use at your own risk...
# First clone your repo
$ git clone <some repo>
$ cd <some repo>
$ git remote -v
origin olduser@oldhost.com:OldRepoName.git (fetch)
origin olduser@oldhost.com:OldRepoName.git (push)
$ git remote rm origin
# Then archive.
# Some time later, when restarting to work on the project, create a blank repo in git hub and do :
@hlandry
hlandry / moving-repository.sh
Created Nov 24, 2010
So to manually move a repository from another server to github. This is not a real script, just commands.
View moving-repository.sh
# First create a repo on github, then, do the following:
git clone --bare git@myoldserver.com:myoldrepo.git
cd myoldrepo.git
git push --mirror git@github.com:myusername/mynewrepo.git
You can’t perform that action at this time.