Skip to content

Instantly share code, notes, and snippets.

View looztra's full-sized avatar

Christophe Furmaniak looztra

View GitHub Profile
@looztra
looztra / rancher-ui.log
Created December 7, 2016 09:43
Rancher-UI logs after an upgrade from v1.1.3 to v1.2.0
161207 8:40:22 [Note] /usr/sbin/mysqld (mysqld 5.5.53-0ubuntu0.14.04.1) starting as process 23 ...
Uptime: 2 Threads: 1 Questions: 2 Slow queries: 0 Opens: 34 Flush tables: 1 Open tables: 26 Queries per second avg: 1.000
Setting up database
CATTLE_AGENT_PACKAGE_HOST_API_URL=/usr/share/cattle/artifacts/host-api.tar.gz
CATTLE_AGENT_PACKAGE_PYTHON_AGENT_URL=/usr/share/cattle/artifacts/go-agent.tar.gz
CATTLE_API_UI_URL=//releases.rancher.com/api-ui/1.0.8
CATTLE_CATTLE_VERSION=v0.174.3
CATTLE_DB_CATTLE_DATABASE=mysql
CATTLE_DB_CATTLE_MYSQL_HOST=localhost
CATTLE_DB_CATTLE_MYSQL_NAME=cattle
@looztra
looztra / vagrant-up.log
Created December 17, 2016 09:21
dcos-vagrant install logs
└> time vagrant up
Vagrant Patch Loaded: GuestRedHat change_host_name (1.9.1)
Vagrant Patch Loaded: GuestRedHat configure_networks (1.9.1)
Validating Plugins...
Validating User Config...
Using DC/OS Installer: installers/dcos/dcos_generate_config-1.8.7.sh
Using DC/OS Config: etc/config-1.8.yaml
Validating Machine Config...
Configuring VirtualBox Host-Only Network...
>>> Creating VirtualBox Network
@looztra
looztra / .fishrc
Created October 7, 2017 15:04
Kubectl and Minikube update fish functions
function minikube-update -d 'Update minikube to latest release'
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 ; and chmod +x minikube ; and mv minikube ~/.local/bin/
end
function kubectl-update -d 'Update kubectl to latest release'
curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl ; and chmod +x kubectl ; and mv kubectl ~/.local/bin/
end
@looztra
looztra / cron--hello-from-k8s-cluster.yml
Last active October 24, 2017 07:21
cronjobs and api batch/v2alpha1 and minikube
---
apiVersion: batch/v2alpha1
kind: CronJob
metadata:
name: hello
spec:
schedule: "*/1 * * * *"
jobTemplate:
spec:
template:
@looztra
looztra / extract.fishrc
Last active November 27, 2017 10:35
Fish Functions to Download docker-machine and docker-compose latest version
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

Installation poste linux

Setup

Git

  • Editer ~/.gitconfig
[user]

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:

[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)
# 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
@looztra
looztra / .circleci--config.yml
Last active February 27, 2019 13:42
Bootstrap repo config
---
version: 2.1
jobs:
eclint:
working_directory: ~/docker-eclint/
docker:
- image: qima/eclint:circleci-2.8.1-7c65341
steps:
- checkout
- run: