Skip to content

Instantly share code, notes, and snippets.

View guillaumerose's full-sized avatar

Guillaume Rose guillaumerose

  • Apple
  • Paris
View GitHub Profile
#!/bin/bash
# Wrapper function for Maven's mvn command.
mvn-color()
{
# Formatting constants
BOLD=`tput bold`
UNDERLINE_ON=`tput smul`
UNDERLINE_OFF=`tput rmul`
TEXT_BLACK=`tput setaf 0`
@guillaumerose
guillaumerose / setup.ps1
Created April 4, 2019 07:30
Ansible setup
$url = "https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1"
$file = "$env:temp\ConfigureRemotingForAnsible.ps1"
(New-Object -TypeName System.Net.WebClient).DownloadFile($url, $file)
powershell.exe -ExecutionPolicy ByPass -File $file
EBUG Still waiting for the cluster to initialize: Multiple errors are preventing progress:
* Could not update prometheusrule "openshift-cloud-credential-operator/cloud-credential-operator-alerts" (186 of 576): the server does not recognize this resource, check extension API servers
* Could not update prometheusrule "openshift-cluster-samples-operator/samples-operator-alerts" (303 of 576): the server does not recognize this resource, check extension API servers
* Could not update servicemonitor "openshift-apiserver-operator/openshift-apiserver-operator" (564 of 576): the server does not recognize this resource, check extension API servers
* Could not update servicemonitor "openshift-authentication-operator/authentication-operator" (493 of 576): the server does not recognize this resource, check extension API servers
* Could not update servicemonitor "openshift-cluster-machine-approver/cluster-machine-approver" (503 of 576): the server does not recognize this resource, check extension API servers
* Could not up
@guillaumerose
guillaumerose / basic.go
Last active August 5, 2020 20:30
ginkgo demo
package test_test
import (
"bytes"
"encoding/json"
"fmt"
"io"
"math/rand"
"os/exec"
"strings"
package main
import (
"fmt"
"log"
"strconv"
"github.com/miekg/dns"
)
@guillaumerose
guillaumerose / readme.md
Last active October 29, 2021 15:52
Microshift with podman machine

5 minutes to OpenShift on a Mac with podman machine and microshift.

Steps:

  1. brew install podman
  2. podman machine init
  3. podman machine start
  4. podman machine ssh

(in the ssh session)