Skip to content

Instantly share code, notes, and snippets.

View pawndev's full-sized avatar
:octocat:
Trying to quit vim

Coquelet Christophe pawndev

:octocat:
Trying to quit vim
View GitHub Profile
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$ref": "#/definitions/Welcome6",
"definitions": {
"YamlAssertBase": {
"type": "object",
"additionalProperties": false,
"properties": {
"tests": {
"type": "array",
#!/bin/bash
#########################################################################
# Copyright (C) 2019-2020 Akito <the@akito.ooo> #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
#!/bin/sh
if [ -d /opt/rke/etc/kubernetes ];
then
K8S_DIR="/opt/rke/etc/kubernetes"
else
K8S_DIR="/etc/kubernetes"
fi
for cert in `find "${K8S_DIR}/ssl" -type f -name *.pem | grep -v "\-key\.pem$" | grep -v kube-admin | sort`; do
md5sum $cert
#!/usr/bin/env python
import argparse
import collections
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument('--debug', type=int, help='')
parser.add_argument('--input', type=str, default='info.log', help='input log file')
args = parser.parse_args()
@pawndev
pawndev / catch-trace.js
Created January 3, 2020 13:48
Log on catch in JavaScript/TypeScript
console.log("error object:");
console.log(err);
console.log();
console.log("error object toString():");
console.log("\t" + err.toString());
console.log();
console.log("error object attributes: ");
console.log('\tname: ' + err.name + ' message: ' + err.message + ' at: ' + err.at + ' text: ' + err.text);
@pawndev
pawndev / README.md
Last active July 10, 2023 12:09
Apache Nifi docker-compose local test

docker compose nifi

To launch this project, simply use the docker-compose cli

docker-compose up

Wait a couple of seconds, then execute the next command :

HTTP/1.1 201 Created
Date: Wed, 13 Mar 2019 16:18:19 GMT
Server: Apache/2.4.27 (Ubuntu)
X-Subject-Token: gAAAAABciS1LloI-ICXgfcRAeQFTX4IEONMM-FhpoBFRjky7239EjZaqLKOQe2ypOFohKngSqTKo7e7xfu7PGggFdnhvxGKKgAyIQnY90Qmn4xny
Vary: X-Auth-Token
Content-Type: application/json
Content-Length: 312
x-openstack-request-id: req-2c026c53-bd6c-4d5c-9826-08c49a44a3d5
Connection: close
version: '2'
services:
nginx:
extends:
file: docker-compose.common.yml
service: nginx
links:
- node
@pawndev
pawndev / index.d.ts
Created February 8, 2019 10:31 — forked from mathieutu/index.d.ts
PackageJson Typescript definitions.
export interface PackageJSON extends Object {
name: string
version?: string
description?: string
keywords?: string[]
homepage?: string
bugs?: string | Bugs
license?: string
author?: string | Author
contributors?: string[] | Author[]
[
{
"assessment":"DEGRADED",
"average":3.4791736666666666,
"healthcheck":{
"name":"Integration (WEB)",
"endpoint":"https://integration.ouicar.fr",
"count":3,
"timeout":10,
"threshold":2