This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This command allow to connect to a database threw a bastion | |
# dns.db.instance = dns to the db instance | |
# user = user to connect via ssh on the bastion | |
# dns.bastion = dns to connect the bastion | |
ssh -i /path/ssh_key/dev.pem -N -L 5432:dns.db.instance:5432 [email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$#" -ne 3 ]; then | |
echo "Usage : ${0} <Environement> <Classifier> <Desired number of Services instances>" | |
echo " Envionnement : dev / qua / pre / ppd / for" | |
echo " Classifier : 1 or 2" | |
return | |
fi | |
#Bind input parameters |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Console tools ! | |
https://remysharp.com/2018/08/23/cli-improved |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install --global --production windows-build-tools |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BITBUCKET_BASE_URL=https://bitbucket.xxxx.fr | |
CURL_RESULT=$(curl -u $USER:$PASSWORD $BITBUCKET_BASE_URL/rest/api/1.0/projects\?limit\=100 | jq -c .values) | |
FOLDERS=$(echo $CURL_RESULT | jq -r '.[]' | jq -r .key) | |
for KEY in $FOLDERS | |
do | |
mkdir $KEY | |
cd $KEY | |
REPO_IN_FOLDER=$(curl -u $USER:$PASSWORD $BITBUCKET_BASE_URL/rest/api/1.0/projects/$KEY/repos\?limit\=100 | jq -r .values[] | jq .links | jq -c '.clone[]' | jq -r .href | grep https) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"schemas": [ | |
"urn:ietf:params:scim:schemas:core:2.0:User" | |
], | |
"id": "id_1", | |
"userName": "thomas", | |
"name": { | |
"familyName": "Poignant", | |
"givenName": "Thomas" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {compileSorter} = require('scim-query-filter-parser'); | |
const {performance} = require('perf_hooks'); | |
const request = require('request'); | |
const scimUsersFile = 'https://gist.githubusercontent.com/thomaspoignant/471a159501bd4eb7b3499d38f81f927d/raw/bac8e75141e24adf4a372c56ebf0adc78578058f/scimUsers.json'; | |
request.get(scimUsersFile, function (error, response, body) { | |
if (!error && response.statusCode === 200) { | |
const scimUsers = JSON.parse(body); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "schemas": | |
["urn:ietf:params:scim:api:messages:2.0:PatchOp"], | |
"Operations":[ | |
{ | |
"op":"add", | |
"path":"members", | |
"value":[ | |
{ | |
"display": "Babs Jensen", | |
"$ref": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.tpoi.monitoring.service; | |
import java.time.Instant; | |
import java.util.concurrent.atomic.AtomicInteger; | |
import java.util.stream.IntStream; | |
import java.util.stream.Stream; | |
/** | |
* HitCounter count the number of request in a specific range of time. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
api-scenario run \ | |
--scenario=scim-scenario.json \ | |
--variable="auth:token" \ | |
--variable="SCIMBaseURL:http://localhost:3000"\ | |
--variable="InvalidUserEmail:[email protected]" \ | |
--variable="UserIdThatDoesNotExist:id_invalid" \ | |
--variable="randomEmail:[email protected]" \ | |
--variable="randomUsername:randomUsername" \ | |
--variable="randomGivenName:randomGivenName" \ | |
--variable="randomFamilyName:randomFamilyName" \ |