Skip to content

Instantly share code, notes, and snippets.

View hlandry's full-sized avatar

Hugues Landry hlandry

View GitHub Profile
@hlandry
hlandry / moving-repository.sh
Created November 24, 2010 03:35
So to manually move a repository from another server to github. This is not a real script, just commands.
# 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
@hlandry
hlandry / archive-reimport.txt
Created December 27, 2011 16:24
Archive a repo and re-import it later.
# 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 / gist:3785269
Created September 26, 2012 00:24
Installing Apache Solr for Drupal on Mac OSX

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