Skip to content

Instantly share code, notes, and snippets.

View evrardjp's full-sized avatar

Jean-Philippe Evrard evrardjp

View GitHub Profile
config.vm.define "caasp", autostart: true do |caasp|
caasp.box = "dcermak/openSUSE-Leap-15.1-Vagrant.x86_64"
caasp.vm.hostname = "caasp"
caasp.vm.provider :libvirt do |domain|
domain.memory = 4096
domain.cpus = 2
domain.storage :file, :size => '5G', :device => 'vdb', :type => 'raw'
end
@evrardjp
evrardjp / min-demo.yaml
Created September 3, 2019 13:32
caasp4-port-forward-min-demo
---
apiVersion: v1
kind: Namespace
metadata:
name: nginx-example
labels:
app: nginx
---
apiVersion: apps/v1beta1
@evrardjp
evrardjp / gist:75df4b2869b7af02e51edf1894c1184f
Created July 17, 2019 14:00
.git/hooks/prepare-commit-msg
#!/bin/sh
curl https://whatthecommit.com/index.txt -o $1
@evrardjp
evrardjp / app.yaml
Created June 26, 2019 14:36
argocd app edit test
# json: cannot unmarshal array into Go struct field HelmParameter.value of type string
destination:
namespace: argocd
server: https://kubernetes.default.svc
project: default
source:
helm:
parameters:
- name: alertmanager.ingress.hosts
value:
@evrardjp
evrardjp / install.log
Last active May 23, 2019 09:06
M2Crypt pip wheel build on ubuntu
(dev-env) jean-philippe@laptop-dell ~/g/e/osa_cli_releases> docker run -it ubuntu:bionic
Unable to find image 'ubuntu:bionic' locally
bionic: Pulling from library/ubuntu
6abc03819f3e: Pull complete
05731e63f211: Pull complete
0bd67c50d6be: Pull complete
Digest: sha256:f08638ec7ddc90065187e7eabdfac3c96e5ff0f6b2f1762cf31a4f49b53000a5
Status: Downloaded newer image for ubuntu:bionic
root@246db2aa1e4d:/# apt update && apt install -y build-essential libblas-dev libffi-dev libssl-dev libsasl2-dev libxml2-dev python-dev pkg-config
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
@evrardjp
evrardjp / install.log
Last active May 23, 2019 09:02
M2Crypt pip wheel build on centos
Welcome to fish, the friendly interactive shell
jean-philippe@laptop-dell ~> docker run -it centos
[root@e2a364752962 /]# yum install blas-devel cyrus-sasl-devel gcc-c++ libffi-devel libgcrypt openssl-devel python-virtualenv python-devel make
Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
* base: centos.mirror.nucleus.be
* extras: centos.mirror.nucleus.be
* updates: centos.mirror.nucleus.be
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
- hosts: galera_all[0]
tasks:
- name: Create DB for service
mysql_db:
login_user: "{{ galera_root_user }}"
login_password: "{{ galera_root_password }}"
login_host: "{{ galera_address }}"
login_port: 3306
name: keystone
state: "present"
cat test.sh
#!/bin/bash
set -e
VAR="aa"
echo ${VAR} ${VAR2+x}
./test.sh; echo $?
0
cat test2.sh
graham@jump:~/repos/github/phhusson/quassel-irssi/core/lib$ git diff
diff --git a/getters.c b/getters.c
index e6bb564..51da7b7 100644
--- a/getters.c
+++ b/getters.c
@@ -160,6 +160,8 @@ void get_variant_t(char **buf, int type) {
case 16:
get_date(buf);
break;
+ case 22:
@evrardjp
evrardjp / gist:22401abf39a9a901a38ee1ee96111db0
Created February 21, 2019 19:48
config template example
set_fact:
foo_contents: "{{ lookup('template','foo.yaml') }}" # or , if non local, slurp the file and b64decode first
# use config template
config_template:
src: 'bar.yaml'
dest: 'bar.yaml'
config_overrides: "{{ foo_contents }}"
config_type: yaml