Skip to content

Instantly share code, notes, and snippets.

Avatar

Maxime Gréau mgreau

View GitHub Profile
@mgreau
mgreau / tekton-resource-request-issue.yaml
Created Jan 24, 2020
tekton-resource-request-issue.yaml
View tekton-resource-request-issue.yaml
apiVersion: tekton.dev/v1alpha1
kind: TaskRun
metadata:
name: resource-request-issue
spec:
taskSpec:
steps:
- name: minimal-resources-values
image: ubuntu
script: |
@mgreau
mgreau / beats-dependencies-licenses-report.json
Last active Oct 6, 2017
ES / Logstash / Kibana dependencies
View beats-dependencies-licenses-report.json
{
"projectName": "beats",
"dependencies": [
{
"name": "go-winio",
"file": "/home/golang/project/vendor/github.com/Microsoft/go-winio",
"license": {
"id": "MIT",
"text": "The MIT License (MIT)\n\nCopyright (c) 2015 Microsoft\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEME
@mgreau
mgreau / generate-sha1.sh
Last active Sep 28, 2017
./generate-sha1.sh BUCKET_NAME RELEASE_VERSION
View generate-sha1.sh
#!/bin/bash -e
S3_BUCKET=$1
RELEASE_VERSION=$2
readonly S3_BUCKET_FOLDER='downloads'
sync_get_release_files_from_s3(){
# sync locally only ${RELEASE_VERSION} files from downloads
View keybase.md

Keybase proof

I hereby claim:

  • I am mgreau on github.
  • I am mgreau (https://keybase.io/mgreau) on keybase.
  • I have a public key whose fingerprint is 2C29 257D EABE 8034 65B1 8EE6 B144 D374 1E7C D278

To claim this, I am signing this object:

View exo_pipeline_jenkins_docker.groovy
#!groovy
// env.NAME = "${env.JOB_NAME}"
exoCI {
gitUrl = 'https://github.com/exoplatform/maven-sandbox-project.git'
gitBranch = 'develop'
dockerImage = 'exoplatform/ci:jdk8-maven32'
jobName = '$JOB_NAME'
}
@mgreau
mgreau / exo_codenvy_news
Last active May 17, 2016
exo_codenvy_news
View exo_codenvy_news
Hi all,
Hey look, there is a new button on <a href="https://github.com/exo-addons/task">Task GitHub project!</a> :)
<img src="https://community.exoplatform.com/portal/rest/jcr/repository/collaboration/Users/m___/mg___/mgr___/mgreau/Public/exo_task_codenvy_button.png" width="264px" style="border: 1px solid">
Thanks to Codenvy, this link allows to <b>create in 1 click a workspace developer for eXo Add-on.</b>
Then developer can build & run the eXo Tasks Add-on and test it live without installing anything on his local computer.
It's just a first step so I'm looking for volunteers to test this eXo Add-on Workspace and to give me some feedback about custom commands...
You have 2 options to test it:
View gist:2db2835099a56a1c521d84c3b7854265
docker volume create --name=SWF-3612-calendar-workspace
docker run -d -v /home/mgreau/.gnupg/pubring.gpg:/home/exo-release/.gnupg/pubring.gpg:ro \
-v /home/mgreau/.gnupg/secring.gpg:/home/exo-release/.gnupg/secring.gpg:ro \
-v /home/mgreau/.gnupg/gpg.conf:/home/exo-release/.gnupg/gpg.conf:ro \
-v /home/mgreau/.ssh/id_rsa:/home/exo-release/.ssh/id_rsa:ro \
--env-file /home/mgreau/.eXoR/exor-config.properties \
-v SWF-3612-calendar-workspace:/opt/plf-release/workspace \
--volumes-from m2_cache \
--name SWF-3612-calendar \
@mgreau
mgreau / ip.txt
Created Oct 28, 2015
Arquillian Cube - compose
View ip.txt
mvn test -X -e -l output.log -Ddocker.api.url=http://192.168.99.100:2376
------------------------------------------------------
T E S T S
-------------------------------------------------------
[DEBUG] boot classpath: /Users/mgreau/.m2/repository/org/apache/maven/surefire/surefire-booter/2.16/surefire-booter-2.16.jar /Users/mgreau/.m2/repository/org/apache/maven/surefire/surefire-api/2.16/surefire-api-2.16.jar /Users/mgreau/Dev/Sources/PBR/HanoiJUG2015/arquillian-cube/docker/ftest-docker-compose/target/test-classes /Users/mgreau/Dev/Sources/PBR/HanoiJUG2015/arquillian-cube/docker/ftest-docker-compose/target/classes /Users/mgreau/.m2/repository/org/jboss/arquillian/junit/arquillian-junit-container/1.1.9.Final/arquillian-junit-container-1.1.9.Final.jar /Users/mgreau/.m2/repository/org/jboss/arquillian/junit/arquillian-junit-core/1.1.9.Final/arquillian-junit-core-1.1.9.Final.jar /Users/mgreau/.m2/repository/org/jboss/arquillian/test/arquillian-test-api/1.1.9.Final/arquillian-test-api-1.1.9.Final.jar /
@mgreau
mgreau / Gogs-Docker.adoc
Last active Aug 14, 2019
Gogs Docker Env (docker-compose)
View Gogs-Docker.adoc

Replace 192.168.99.100 by your DOCKER_HOST IP

# Configure the server
curl 'http://192.168.99.100:3000/install' \
  -H 'Origin: null' -H 'Accept-Encoding: gzip, deflate' \
  -H 'Accept-Language: fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4' \
  -H 'Upgrade-Insecure-Requests: 1' \
  -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36' \