#!/bin/bash
CONTEXT=xxx
pods=$(kubectl --context $CONTEXT get pods --all-namespaces --field-selector=status.phase=Running -o jsonpath='{.items[*].metadata.name}')
namespaces=$(kubectl --context $CONTEXT get pods --all-namespaces --field-selector=status.phase=Running -o jsonpath='{.items[*].metadata.namespace}')
This file contains 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
alert(document.location.href); |
This file contains 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 parse = require("rehype-parse"); | |
const unified = require("unified"); | |
const findAndReplace = require("hast-util-find-and-replace"); | |
const stringify = require("rehype-stringify"); | |
// mapping with texts to replace | |
// todo: generate variations with diacritics | |
const valueMap = [[/réclamation/i, (text) => getTooltipElement(text)]]; | |
// replace matches with this |
This file contains 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
# | |
# Fetch les 100 premiers dossiers d'une démarche DS | |
# | |
# usage: DS_TOKEN=xyz python3 ds-fetch.py | |
# | |
import requests | |
import os | |
import json |
This file contains 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 fetch = require("node-fetch"); | |
// remove some garbage from legifrance urls | |
const cleanUrl = (url) => { | |
if (!url.match(/https?:\/\//)) { | |
return null; | |
} | |
const u = new URL(url); | |
const acceptableKeys = [ | |
"idSectionTA", |
This file contains 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 main | |
import ( | |
"crypto/aes" | |
"crypto/cipher" | |
"crypto/rsa" | |
"crypto/sha256" | |
"encoding/binary" | |
"errors" | |
"fmt" |
This file contains 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
// | |
// attempt to convert original HybridEncrypt source // https://github.com/bitnami-labs/sealed-secrets/blob/946a69eb52f9874fe871d3ce08eb205726380931/pkg/crypto/crypto.go#L35 | |
// online GO REPL : https://repl.it/@revolunet/sealed-secrets-HybridEncrypt#main.go | |
// algo description : https://github.com/bitnami-labs/sealed-secrets/blob/master/docs/crypto.md | |
// | |
// this give : type: 'Warning' reason: 'ErrUnsealFailed' Failed to unseal: no key could decrypt secret (VALUE) | |
// | |
const crypto = require("crypto"); |
This file contains 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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: external1 | |
spec: | |
type: ExternalName | |
ports: | |
- port: 80 | |
protocol: TCP | |
targetPort: 9243 |
Notes for setting up your private IPFS node
I used docker-go-ipfs with traefik but this helped : https://willschenk.com/articles/2019/setting_up_an_ipfs_node/
Only ports 8080 (API) and 9999 (websocket) are needed for a single private node