Skip to content

Instantly share code, notes, and snippets.

View remijouannet's full-sized avatar
🦆
.

Remi Jouannet remijouannet

🦆
.
View GitHub Profile
curl -X POST https://api.eu-west-2.outscale.com/api/latest/ReadVms \
-H 'Content-Type: application/json' -k \
--user ACCESSKEY:SECRETKEY \
--aws-sigv4 "osc" \
--data '{"Filters" : { "VmIds" : [ "i-c84116bd" ] } }'
curl -X POST https://api.eu-west-2.outscale.com/api/latest/ReadVms \
-H 'Content-Type: application/json' -k \
--user ACCESSKEY:SECRETKEY \
--aws-sigv4 "osc"
@remijouannet
remijouannet / CVE-2020-11651_CVE-2020-11652.patch
Created May 4, 2020 13:42
patch for salt 2018.3.* CVE-2020-11651 CVE-2020-11652
diff --git a/salt/tokens/localfs.py b/salt/tokens/localfs.py
index 021bdb9e50..747f8eea1e 100644
--- a/salt/tokens/localfs.py
+++ b/salt/tokens/localfs.py
@@ -12,6 +12,7 @@ import logging
import salt.utils.files
import salt.utils.path
+import salt.utils.verify
import salt.payload
@remijouannet
remijouannet / keybase
Created February 16, 2018 21:30
keybase
### Keybase proof
I hereby claim:
* I am remijouannet on github.
* I am remijouannet (https://keybase.io/remijouannet) on keybase.
* I have a public key ASADueZmTA9HU3xrjihIbfBnQOv_1tRbVsfgNvHORH9f8Qo
To claim this, I am signing this object:
@remijouannet
remijouannet / restart_salt
Last active June 6, 2018 23:02
restart salt-minion from salt-master
salt -C 'not G@kernel:Windows' cmd.run_bg 'salt-call --local service.restart salt-minion'
yes | ssh-keygen -f temp.key -b 4096 -N '' -t rsa -C remijouannet
@remijouannet
remijouannet / terraform_osc.tf
Last active January 27, 2017 00:25
terraform_osc
provider "aws" {
access_key = "AAAAAAAAAAAAAAAAAAAAAAAA"
secret_key = "SSSSSSSSSSSSSSSSS"
region = "eu-west-2"
skip_credentials_validation = true
skip_region_validation = true
endpoins {
ec2 = "fcu.eu-west-2.outscale.com"
}
}
@remijouannet
remijouannet / openssl_multi.md
Created January 18, 2017 22:37
openssl_multi.md

CSR

[req]
req_extensions = v3_req
distinguished_name = req_distinguished_name

[req_distinguished_name]
@remijouannet
remijouannet / keybase.md
Created September 29, 2016 23:28
keybase.md

Please publicly post the following Gist, and name it keybase.md

Keybase proof

I hereby claim:

  • I am remijouannet on github.
  • I am remijouannet (https://keybase.io/remijouannet) on keybase.
  • I have a public key ASDv_hXmdrfk4wW3pkqM37_qcCB8upmn6F-eO6Hlu6OeXwo
@remijouannet
remijouannet / clean_rundeck.sh
Last active February 17, 2018 09:58
Shell script to purge Rundeck execution history, mysql
#!/bin/bash
# keep last 30 executions for each job
set -e
KEEP=60
MYSQLHOST=mysql
MYSQLUSER=rundeck
MYSQLPASSWORD=password
MYSQLDB=rundeck
@remijouannet
remijouannet / openssl.sh
Last active July 26, 2016 10:24
openssl.sh
cat << EOF > openssl.conf
[ req ]
req_extensions = v3_req
distinguished_name = req_distinguished_name
hash = sha256
prompt = no
[ req_distinguished_name ]
countryName = FR
localityName = Paris