Skip to content

Instantly share code, notes, and snippets.

View rekcah78's full-sized avatar
👋
Hello !

Gasmi Christophe rekcah78

👋
Hello !
View GitHub Profile
@rekcah78
rekcah78 / prometheus-adapter.yaml
Created October 15, 2019 08:36
prometheus-adapter helm chart values
rbac:
create: true
prometheus:
url: http://linkerd-prometheus.linkerd.svc.cluster.local
port: 9090
rules:
default: false
custom:
- seriesQuery: 'response_latency_ms_bucket{namespace!="",pod!=""}'
resources:
@rekcah78
rekcah78 / cloud-init.yaml
Last active February 6, 2018 16:35
Wordpress on coreos
#cloud-config
coreos:
units:
- name: wordpress.service
enable: true
command: "start"
content: |
[Unit]
Description=Wordpress
@rekcah78
rekcah78 / backup.sh
Created January 3, 2017 14:23 — forked from MrTrustor/backup.sh
Simple backup with Duplicity and AWS Glacier
#!/bin/bash
# Copyright 2017 Théo Chamley
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in the Software
# without restriction, including without limitation the rights to use, copy, modify, merge,
# publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
# to whom the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or
@rekcah78
rekcah78 / overcloud-deploy.sh
Created June 3, 2016 16:25 — forked from psachin/overcloud-deploy.sh
Overcloud Deploy
openstack overcloud deploy \
--libvirt-type qemu \
--neutron-bridge-mappings provider:br-provider \
--neutron-network-vlan-ranges provider:101:105 \
--compute-scale 2 \
--control-scale 3 \
--ceph-storage-scale 3 \
--templates -e /usr/share/openstack-tripleo-heat-templates/environments/network-isolation.yaml \
-e /home/stack/vlan-provider_ceph/network-environment.yaml \
-e /home/stack/vlan-provider_ceph/environments/extraconfig-json.yaml \
#!/usr/bin/expect
set timeout 20
set host [lindex $argv 0]
spawn ssh "youruser\@sg.bsocom.net"
expect "Connect to :"
send "$host\r";
interact
@rekcah78
rekcah78 / sg-getlist
Last active January 7, 2016 09:17
sg-getlist
#!/usr/bin/expect
set timeout 20
spawn ssh "youuser\@sg.bsocom.net"
expect "Connect to :"
send "list\r";
expect "Connect to :"
send "exit\r";
@rekcah78
rekcah78 / sg-cleanlist
Last active January 7, 2016 09:22
sg-cleanlist
sg-getlist|grep "-"|grep -v "#"|awk -F'- ' '{print $2}'|sort -u>/tmp/sglistok