Skip to content

Instantly share code, notes, and snippets.

View k33g's full-sized avatar
💭
Read my code at https://gitlab.com/k33g

Philippe Charrière k33g

💭
Read my code at https://gitlab.com/k33g
View GitHub Profile
font:
catalog:
OpenSans:
normal: OpenSans-Regular.ttf
bold: OpenSans-Semibold.ttf
italic: OpenSans-LightItalic.ttf
bold_italic: OpenSans-SemiboldItalic.ttf
Emoji:
normal: EmojiOne.ttf
bold: EmojiOne.ttf
@k33g
k33g / setup_runner.sh
Created April 2, 2018 12:03
Runner CI setup
# tapez cette commande pour paramétrer votre runner
gitlab-runner register
# Il va vous être demandé l'url de votre instance GitLab
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
http://gitlab-book.local/
# Ensuite il va vous être demandé le token
Please enter the gitlab-ci token for this runner:
zWUTgq8fJx9utKXhQEyE
@k33g
k33g / hosts
Created April 2, 2018 11:34
hosts file
# http://gitlab-book.local
172.16.245.110 gitlab-book.local
172.16.245.111 book-runner.local
@k33g
k33g / Vagrantfile
Created April 2, 2018 11:27
Vagrantfile to install GitLab and Runne
# 🦊 GitLab Installation 😜
BOX_IMAGE = "bento/ubuntu-14.04"
VERSION = "1.0"
GITLAB_DOMAIN = "gitlab-book.local"
GITLAB_IP = "172.16.245.110"
BOOK_RUNNER_DOMAIN = "book-runner.local"
BOOK_RUNNER_IP = "172.16.245.111"
@k33g
k33g / README.md
Last active March 26, 2018 15:01
Workshop Scala pour le BreizhCamp
@k33g
k33g / Beer.java
Created February 25, 2018 18:36
HappyHourStrategy.java
package pub;
public class Beer {
private double price;
private String brand;
public double getPrice() {
return price;
}
@k33g
k33g / go.sh
Last active January 21, 2018 19:41
go.sh
#!/bin/sh
# Get the id of the runner (if exists)
id=$(curl --header \
"PRIVATE-TOKEN: $PERSONAL_ACCESS_TOKEN" \
"$GITLAB_INSTANCE/api/v4/runners" | python3 -c \
'
import sys, json;
json_data=json.load(sys.stdin)
for item in json_data:
@k33g
k33g / Dockerfile
Created January 21, 2018 17:58
Dockerfile
# Runner for nodejs project
FROM ubuntu:latest
COPY go.sh go.sh
RUN chmod +x go.sh
# Install gitlab-runner and nodejs
RUN apt-get update && \
apt-get install -y curl && \
@k33g
k33g / .gitlab-ci.yml
Last active January 21, 2018 17:41
.gitlab-ci.yml
image: node:latest
stages:
- build
- test
cache:
paths:
- node_modules/
@k33g
k33g / resultats
Created January 21, 2018 17:23
tests
hello value equals 42
✓ should return 42
1 passing (10ms)