Skip to content

Instantly share code, notes, and snippets.

View CorneilleEdi's full-sized avatar
🌟
Solving problems

Ayao Corneille ALLOGBALO CorneilleEdi

🌟
Solving problems
View GitHub Profile
@CorneilleEdi
CorneilleEdi / codenames.txt
Created July 14, 2023 05:22
A list of finctional codenames
neptune
blue_book
overlord
manhattan
barbarossa
desert_storm
paperclip
enduring_freedom
market_garden
rolling_thunder
@CorneilleEdi
CorneilleEdi / java.Makefile
Last active February 9, 2022 09:14
Go to java Makefile
JAVAC=javac
JAVA=java
JAVADOC=javadoc
OUT_DIR=out
DOCS_DIR=docs
SRC_DIR=.
JAVA_FILES=$(notdir $(wildcard $(SRC_DIR)/*.java))
CLASS_FILES=$(JAVA_FILES:%.java=$(OUT_DIR)/%.class)
MAIN_CLASS=Main
@CorneilleEdi
CorneilleEdi / gcrgc.sh
Created October 7, 2021 08:15 — forked from ahmetb/gcrgc.sh
Script to clean up Google Container Registry images pushed before a particular date
#!/bin/bash
# Copyright © 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@CorneilleEdi
CorneilleEdi / meilisearch-nginx-dev.sh
Last active September 10, 2024 15:39
install and setup meilisearch
#!/bin/bash
echo "Downloading MeiliSearch"
#
# Install MeiliSearch
# https://docs.meilisearch.com/create/how_to/running_production.html#step-2-run-meilisearch-as-a-service
#
# Update the list of available packages and their versions
@CorneilleEdi
CorneilleEdi / nestjs.Dockerfile
Last active October 10, 2023 11:24
NestJS Dockerfile with multi-stage
FROM node:16-alpine as builder
RUN apk add curl bash
# install node-prune (https://github.com/tj/node-prune)
RUN curl -sfL https://gobinaries.com/tj/node-prune | bash -s -- -b /usr/local/bin
USER node
WORKDIR /home/node
@CorneilleEdi
CorneilleEdi / api.js
Created March 18, 2020 05:11
JWT authentication handler using Axios interceptors. It refreshes access token on the fly when backend API throws out a 401 error. Multiple requests at the same time supported.
import axios from 'axios';
import JWTDecode from 'jwt-decode';
import { AuthApi } from './auth.api';
import { config } from '../config';
const { API_ENDPOINT } = config[process.env.NODE_ENV];
axios.defaults.baseURL = API_ENDPOINT;
axios.defaults.timeout = 7000;