Skip to content

Instantly share code, notes, and snippets.

@danielpetisme
danielpetisme / RFC-Golo-Testing.md
Last active October 14, 2015 18:58
RFC Golo Testing

CLI proposal

The command will be obvisouly test. The must have options:

  • --files the test files (don't want to name it --testFiles, just want to be consistent with the golo options.
  • --classpath cf. the golo command.
  • --reporters the list of output format (html, markdown, junit, etc.).

The nice to have ones:

  • --name to run a specific test (could be a case insensitive regexp)
@danielpetisme
danielpetisme / solution
Created October 12, 2015 09:37
Impossible to import Gradle project with intelliJ
Remove the *\** wildcard line 170 of `build.gradle`
replace
`from(project.file("$buildDir/asciidoctor/html5/*")) {`
by
`from(project.file("$buildDir/asciidoctor/html5/")) {`
@danielpetisme
danielpetisme / docker-start.sh
Created August 25, 2015 13:46
My update of the official Docker's start.sh script for Windows. Cygwin-compatible
#!/bin/sh
trap '[ "$?" -eq 0 ] || read -p "Looks like something went wrong... Press any key to continue..."' EXIT
VM=default
DOCKER_MACHINE=docker-machine
V_BOX_MANAGE=VBoxManage
ENV_FILE=~/.docker/$VM-env
BLUE='\033[1;34m'
@danielpetisme
danielpetisme / gist:bdc1ddd0455c00cd5acb
Last active August 29, 2015 14:13
Bower + Symlink = Hate
[user@host$]$ bower install
/home/daniel/npm/node_modules/bower/node_modules/bower-config/lib/util/rc.js:55
throw error;
^
Error: Unable to parse /home/daniel/.bowerrc: Unexpected token !
at parse (/home/daniel/npm/node_modules/bower/node_modules/bower-config/lib/util/rc.js:48:21)
at json (/home/daniel/npm/node_modules/bower/node_modules/bower-config/lib/util/rc.js:70:12)
at rc (/home/daniel/npm/node_modules/bower/node_modules/bower-config/lib/util/rc.js:29:22)
at Config.load (/home/daniel/npm/node_modules/bower/node_modules/bower-config/lib/Config.js:14:20)
@danielpetisme
danielpetisme / gist:8558551
Last active January 4, 2016 02:59
Golosa Test elevator pitch

Golosa Test

The world didn’t need another tesing framework. So we built yet another one. A Golo one: Golosa Test

Golosa Test is a behavior-driven development framework for testing mainly inspired by Jasmine (a JS behavioral testing framework). Since a snippet is worth a thousand words:

module my.awesome.test

#The only import gather all the Golosa SA API
import golosa.test.$
@danielpetisme
danielpetisme / golo.plugin.zsh
Created December 10, 2013 21:26
Golo ZSH integration It relies on the existing golo-bash-completion (it actyually sources it) Source of the idea: http://stackoverflow.com/a/8492043
###################################################################################
# Copyright 2012-2013 Institut National des Sciences Appliquées de Lyon (INSA-Lyon)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@danielpetisme
danielpetisme / gist:6867426
Created October 7, 2013 12:51
Logstash jenkins audit
{
"_index": "jenkins",
"_type": "logs",
"_id": "ogp1oxrmTC2KgDsdj7qQsg",
"_score": 2.3156765,
"_source": {
"message": "Oct 7, 2013 2:45:48 PM job/<JOB_NAME>/ #6690 Started by timer",
"@timestamp": "2013-10-07T12:45:49.390Z",
"@version": "1",
"type": "jenkins",
@danielpetisme
danielpetisme / veewee_installer.sh
Created September 18, 2013 16:54
Veewee installer
#Required packages
yum -y install gcc libxml2 libxml2-devel libxslt libxslt-devel libvirt libvirt-devel
#RVM - Ruby Version Manager
\curl -L https://get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
#Install 1.9.3
rvm install 1.9.3
#Config for rubygems
@danielpetisme
danielpetisme / Rakefile
Created September 18, 2013 16:47
Veewee + OpenStack Rakefile
task :default => [:all]
task :all, [:provider] => [:build, :halt, :shrink]
def isVeeweeFolder()
return if not Dir.exists? './definitions/'
end
def getBoxName()
return File.basename(Dir.glob("./definitions/*").at(0))
@danielpetisme
danielpetisme / RDO OpenStack installation
Last active December 22, 2015 04:29
RDO OpenStack installation
#Install rdo yum repository
sudo yum install -y http://rdo.fedorapeople.org/openstack/openstack-grizzly/rdo-release-grizzly.rpm
#Install the installation manager
sudo yum install -y openstack-packstack
#Run OpenStack installation
packstack --allinone --os-quantum-install=n