Skip to content

Instantly share code, notes, and snippets.

View cchantep's full-sized avatar

Cédric Chantepie cchantep

View GitHub Profile
@cchantep
cchantep / mongo-travis.md
Created June 19, 2016 14:29
How to setup MongoDB in Travis container
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Welcome Message</title>
</head>
<body>
<center>
<table width="600" background="#FFFFFF" style="text-align:left" cellpadding="0" cellspacing="0">
<tr>
@cchantep
cchantep / gist:9345d51889c0148c2256
Last active March 10, 2016 14:02
How to build glib 2.38.2 for winxp.

GLib for Windows XP

GLib is a core framework to build multi-platform application.

This is how to build its 2.38.2 version for Windows XP.

Prerequisites

  • Windows XP OS. For testing purposes, you can consider VM from IEVMS.
  • MSYS2 Base for i686 arch. By time this is written, I use msys2-base-i686-20140507.tar.xz.
  • GCC & make. If not installed in MSYS2, it can be done using pacman: pacman -S gcc make (I have built poppler using GCC 4.5.2 for compat).
@cchantep
cchantep / gist:5d31942847408237ca57
Last active August 29, 2015 14:01
How to build poppler 0.24.5 for winxp.

Poppler for Windows XP

Poppler is a PDF library you can use to code framework or application for several platform.

This is how to build its 0.24.5 version for Windows XP.

Prerequisites

  • Windows XP OS. For testing purposes, you can consider VM from IEVMS.
  • MSYS2 Base for i686 arch. By time this is written, I use msys2-base-i686-20140507.tar.xz.
  • GCC & make. If not installed in MSYS2, it can be done using pacman: pacman -S gcc make (I have built poppler using GCC 4.5.2 for compat).
@cchantep
cchantep / sbt.scala
Last active December 19, 2015 10:19
Loading Maven/POM settings from SBT
// Use Maven groupId as SBT organization
organization <<= (baseDirectory in Compile) { base ⇒
import scala.xml.XML
val pomFile = base / "pom.xml"
XML.loadFile(pomFile) \\ "project" \ "groupId" text
}
// Use Maven artifactId as SBT name
name <<= (baseDirectory in Compile) { base ⇒
import scala.xml.XML