Skip to content

Instantly share code, notes, and snippets.

View rochejul's full-sized avatar
:octocat:
Exterminate all bugs

Roche julien rochejul

:octocat:
Exterminate all bugs
View GitHub Profile
@rochejul
rochejul / gist:5e020248b47ccbf29578a5dac521c2d7
Last active July 10, 2020 12:44
Groovy script for Jenkins, for "Inject environment variables to the build process" to retrieve the version of the current package.json file (for NodeJs)
import groovy.json.JsonSlurper
import jenkins.*
import jenkins.model.*
import hudson.*
import hudson.model.*
def build = Thread.currentThread().executable
def inputFile = new File(build.workspace.toString() + "/package.json")
def InputJSON = new JsonSlurper().parseText(inputFile.text)
@rochejul
rochejul / gist:028956e5ae3c6c4f7c0385951e14741d
Created February 21, 2017 20:03
gulp-angular-protractor: output for issue 33
C:\Dev\Git\gulp-angular-protractor\examples\example-02>npm test
> example-gulp-protractor@0.0.1 test C:\Dev\Git\gulp-angular-protractor\examples\example-02
> npm run gulp protractor
> example-gulp-protractor@0.0.1 gulp C:\Dev\Git\gulp-angular-protractor\examples\example-02
> node node_modules/gulp/bin/gulp.js "protractor"
[21:01:24] Using gulpfile C:\Dev\Git\gulp-angular-protractor\examples\example-02\gulpfile.js
@rochejul
rochejul / gist:c96c6b80056c7d90753a4a3b248f9cc7
Created February 21, 2017 20:09
gulp-angular-protractor: output for issue 33 (with an assertion in error)
C:\Dev\Git\gulp-angular-protractor\examples\example-02>npm test
> example-gulp-protractor@0.0.1 test C:\Dev\Git\gulp-angular-protractor\examples\example-02
> npm run gulp protractor
> example-gulp-protractor@0.0.1 gulp C:\Dev\Git\gulp-angular-protractor\examples\example-02
> node node_modules/gulp/bin/gulp.js "protractor"
[21:07:00] Using gulpfile C:\Dev\Git\gulp-angular-protractor\examples\example-02\gulpfile.js
@rochejul
rochejul / karma.conf.js
Created May 31, 2017 08:18
Karma custom configuration for PhantomJs (allowing screen size, screenshot, ...)
'use strict';
module.exports = function (config) {
config.set({
// ...
'browsers': ['PhantomJSCustom'],
'customLaunchers': {
'PhantomJSCustom': {
'base': 'PhantomJS',
'options': {
@rochejul
rochejul / gist:06fbf6fc0f9a4769a7dc471453f9f737
Last active May 24, 2024 09:00
Install Chrome headless on various System
// RHEL/CentOS 7 users
yum install https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
yum install xorg-x11-server-Xvfb
// Ubuntu
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update
sudo apt-get install -y google-chrome-unstable
@rochejul
rochejul / locales-subtags.json
Last active February 26, 2018 20:01
List of all locales subtags / tags
[
{
"type": "language",
"descriptions": [
"Afar"
],
"subtag": "aa"
},
{
"type": "language",