Skip to content

Instantly share code, notes, and snippets.

View kaypee90's full-sized avatar
😎

Kaypee kaypee90

😎
View GitHub Profile
@kaypee90
kaypee90 / server.js
Created March 8, 2024 16:38
Node.Js Async Middelware
// server.js
//
const responseTime = require('response-time');
const express = require('express')
const app = express()
app.use(responseTime())
@kaypee90
kaypee90 / gist:72bb93338fa2163df6e9192ccea6c954
Created February 15, 2023 16:54
Solution: ERR_OSSL_EVP_UNSUPPORTED npm error
Resolving Error: Digital envelope routines::unsupported
code: `ERR_OSSL_EVP_UNSUPPORTED'
Solution run this commands:
Powershell: $env:NODE_OPTIONS='--openssl-legacy-provider';
Bash: export NODE_OPTIONS=--openssl-legacy-provider
@kaypee90
kaypee90 / zebrok-k8s-config.yml
Last active February 14, 2021 12:19
k8s setup for Zebrok project in https://github.com/kaypee90/zebrok repo
apiVersion: v1
kind: Namespace
metadata:
name: zebrok
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: worker-app
namespace: zebrok
@kaypee90
kaypee90 / pythonimporttip.md
Last active February 14, 2021 12:07
Python Import Tips

In a folder trying to import from another folder at the same level

example
=========

|   --   module1/
|    |   --   sample1.py
|
|   --   module2/
|     |   --   sample2.py

@kaypee90
kaypee90 / rust_sonarqube.md
Last active June 20, 2023 09:46
Scan Rust Code With Sonarqube

Scan Rust source code with Sonarqube

  • Sonarqube currently does't have rust support.
  • To scan sonarqube you will need Clippy to generate a json report file
  • You will also need Sonar-Rust, a rust plugin for sonarqube to read the results generated in clippy report file.

Resources