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
terraform { | |
required_providers { | |
vault = { | |
source = "hashicorp/vault" | |
version = "3.8.2" | |
} | |
} | |
} | |
# delay token creation | |
resource "time_sleep" "test" { |
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
# Usage: node vtree.mjs <backend>[/path] [MAX_CALL_TO_VAULT_PER_CICLE] | |
# example: node vtree.mjs kv-store/some-subfolder | grep mysecret | |
import { spawn } from "child_process"; | |
const BASE_PATH = process.argv[2]; | |
const MAX_PER_CICLE = process.argv[3] || 100; | |
const listVault = (basePath) => | |
new Promise((res, rej) => { |
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 | |
# usage: gset.sh <GOPASS_KEY_PATH> <IDENTIFIER> <VALUE> | |
# set a unique value on an item | |
# for password use '-o' as key | |
GOPASS_KEY=$1 | |
IDENT=$(echo "$2" | sed 's_/_\\\\/_g') | |
VALUE=$(echo "$3" | sed 's_/_\\\\/_g') |
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
( | |
(a, ks = '38384040373937396665', e = document.body, k = 0) => | |
e.addEventListener('keydown', ke => | |
+ks.slice(k*2,k*2+2) === ke.keyCode | |
? ++k >= ks.length/2 | |
? a(e,k = 0) | |
: null | |
: k = 0 | |
) | |
)(x => x.style.fontFamily = 'monospace') |
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
export default class CircularWaiter { | |
_canvas: any | |
_ctx: any | |
_intervalHandler: any | |
_timeLeft: number | |
_timeTodo: number | |
_cs: any | |
weight: number | |
_options: any |
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 [[ -z "${CPNV_USERNAME}" ]]; then | |
echo You can define CPNV_USERNAME to avoid this step | |
echo -n 'Username: ' | |
read username | |
else | |
username="${CPNV_USERNAME}" | |
echo "Username: $username" | |
fi | |
echo -n 'Password: ' |
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
module.exports = class Pos { | |
static get version(){return '1.0.0';} | |
constructor(x,y,z) { | |
this.x=x; | |
this.y=y; | |
this.z=z||0; | |
} | |
get norme(){ | |
return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z); | |
} |