Skip to content

Instantly share code, notes, and snippets.

Christophe Furmaniak looztra

Block or report user

Report or block looztra

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@looztra
looztra / deploy-app.yml
Last active Apr 5, 2019
Faros 0.4.0-rc3 bug report files
View deploy-app.yml
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: api
labels:
app: platform
component: api
annotations:
company.com/owner: devel
@looztra
looztra / alerts.yml
Last active Mar 27, 2019
Some prometheus configuration we may find usefull
View alerts.yml
groups:
- name: node-resources
rules:
- alert: HostCPUUtilisation
expr: 100 - (avg by(instance) (irate(node_cpu{mode="idle"}[5m])) * 100) > 70
for: 20m
labels:
severity: warning
annotations:
description: 'High CPU utilisation detected for instance {{ $labels.instance_id
@looztra
looztra / jq.sh
Last active Mar 26, 2019
List tags and Filter out some patterns with jq
View jq.sh
wget -q https://registry.hub.docker.com/v2/repositories/looztra/yamkix/tags -O - | jq -r '.results[] | select ((.name|endswith("latest")|not) and (.name|startswith("circle")|not)) | .name'
"0.3.0-239836d"
"0.2.2-7b96154"
@looztra
looztra / .circleci--config.yml
Last active Feb 27, 2019
Bootstrap repo config
View .circleci--config.yml
---
version: 2.1
jobs:
eclint:
working_directory: ~/docker-eclint/
docker:
- image: qima/eclint:circleci-2.8.1-7c65341
steps:
- checkout
- run:
View log2stderr_with_loglevel_support.bash
# Borrowed to someone, but I don't remember who it was, sorry :(
# Print message $2 with log-level $1 to STDERR, colorized if terminal
# log DEBUG "DOCKER_HOST ${DOCKER_HOST}"
log() {
local level=${1?}
shift
local code= line="[$(date '+%F %T')] $level: $*"
if [ -t 2 ]
then
case "$level" in
View circleci.jhispter.fail.txt
[INFO] → 588 of 657 modules :: src/main/webapp/app/entities/job-history/job-histor
[INFO] y.service.ts ~ internal
[ERROR] events.js:167
[ERROR] throw er; // Unhandled 'error' event
[ERROR] ^
[ERROR]
[ERROR] Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
[ERROR] at doWrite (_stream_writable.js:406:19)
[ERROR] at writeOrBuffer (_stream_writable.js:394:5)
[ERROR] at Socket.Writable.write (_stream_writable.js:294:11)
View keybase.md

Keybase proof

I hereby claim:

  • I am looztra on github.
  • I am cfurmaniak (https://keybase.io/cfurmaniak) on keybase.
  • I have a public key ASBBqNjcf8rVR4Lsy-ZmPutvVqT1F3PYwoMlK6Jasy1MjAo

To claim this, I am signing this object:

View setup.md

Installation poste linux

Setup

Git

  • Editer ~/.gitconfig
[user]
@looztra
looztra / extract.fishrc
Last active Nov 27, 2017
Fish Functions to Download docker-machine and docker-compose latest version
View extract.fishrc
function compose-update -d 'Update docker-compose to version provided in param or latest release if no param provided'
set compose_version (curl -s https://api.github.com/repos/docker/compose/releases/latest | jq .tag_name | tr -d '"')
if not test -z "$argv"
set compose_version $argv
end
echo "Retreiving docker-compose version $compose_version"
echo "gna"
curl -Lo ~/tmp/docker-compose https://github.com/docker/compose/releases/download/$compose_version/docker-compose-Linux-x86_64
chmod +x ~/tmp/docker-compose ; and mv ~/tmp/docker-compose ~/.local/bin/
which docker-compose
@looztra
looztra / 01-docker-tls.sh
Last active Nov 7, 2017 — forked from zigarn/01-docker-tls.sh
Generate Docker certificates for training on TLS
View 01-docker-tls.sh
#!/bin/env bash
# Configuration
export PUBLIC_DNS=<public hostname>
export PUBLIC_IP=<public host IP>
export PRIVATE_IP=<private host IP>
mkdir docker-ca
chmod 0700 docker-ca/
cd docker-ca/
You can’t perform that action at this time.