Skip to content

Instantly share code, notes, and snippets.

View iolufemi's full-sized avatar

Olanipekun Olufemi iolufemi

  • VeendHQ Inc
  • United States
  • 06:08 (UTC -05:00)
View GitHub Profile
@iolufemi
iolufemi / SKILL.md
Last active May 29, 2026 03:01
AI backend development skill. Sets up and extends Express REST API and MCP Server Framework projects from GitHub. Use when building a new backend, adding endpoints, CRUD services, models, routes, or MCP tools. Clones the framework if missing, enforces npm run generate first, pending tests before implementation, full tests after build, and loops…
name generate-api-endpoints
description Sets up and extends Express REST API and MCP Server Framework projects from GitHub. Use when building a new backend, adding endpoints, CRUD services, models, routes, or MCP tools. Clones the framework if missing, enforces npm run generate first, pending tests before implementation, full tests after build, and loops until npm test, npm run lint, and npm run type-check all pass.
disable-model-invocation true
@iolufemi
iolufemi / Mongodb Compact
Created June 13, 2024 07:59
Recover disk space from mongodb
db = db.getSiblingDB("admin");
dbs = db.runCommand({ "listDatabases": 1 }).databases
// Iterate through each database and get its collections.
dbs.forEach(function(database) {
db = db.getSiblingDB(database.name);
print('OnDB: ' + database.name);
if(database.name == 'admin' || database.name == 'local'){
print('Skipping: ' + database.name);
}else{
@iolufemi
iolufemi / promise.spread.js
Last active May 11, 2023 12:22 — forked from jblashill/promise.spread.js
An extension to the Promise prototype to "spread" resolved data from Promise.all() to multiple function parameters
Promise.prototype.spread = function(fn) {
return this.then(function() {
if (!arguments || arguments.length === 0) {
return Promise.resolve(fn.apply());
}
if(typeof arguments[0] === 'object' && arguments[0].length > 0){
return Promise.all(arguments[0]);
}else{
return Promise.resolve(arguments[0]);
}
@iolufemi
iolufemi / Dockerfile
Created November 5, 2021 22:23
Add Pentaho to Apache Fineract in a Docker Environment
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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
#
@iolufemi
iolufemi / remove.sh
Created October 20, 2021 12:12 — forked from sxiii/remove.sh
Docker Swarm - Remove all Down nodes automatically
#!/bin/bash
# Requirements: linux, docker, grep, awk
# This script removes all "Down" (off) nodes from Docker Swarm
# Useful to clean stuff from time to time, if you have auto-joining nodes for example
sudo docker node rm $(sudo docker node ls | grep Down | awk -F" " '{ print $1 }')
@iolufemi
iolufemi / countries+states
Created August 24, 2020 09:32 — forked from olanipekunife/countries+states
list of countries with states
[
{
"code2": "AF",
"code3": "AFG",
"name": "Afghanistan",
"capital": "Kabul",
"region": "Asia",
"subregion": "Southern Asia",
"states": [
{
@iolufemi
iolufemi / AWSRegionsAndAZs.md
Created July 18, 2019 17:53
List of AWS availability zones for each AWS region
AWS region code AWS region name Number of AZs AZ names
us-east-1 Virginia 4 us-east-1a, us-east-1b, us-east-1c, us-east-1e
us-west-1 N. California 2 us-west-1a, us-west-1b
us-west-2 Oregon 3 us-west-2a, us-west-2b, us-west-2c
eu-west-1 Ireland 3 eu-west-1a, eu-west-1b, eu-west-1c
eu-central-1 Frankfurt 2 eu-central-1a, eu-central-1b
ap-southeast-1 Singapore 2 ap-southeast-1a, ap-southeast-1b
ap-southeast-2 Sydney 2 ap-southeast-2a, ap-southeast-2b, ap-southeast-2c
ap-northeast-1 Tokyo 2 ap-northeast-1a, ap-nort
@iolufemi
iolufemi / temporary-email-address-domains
Created January 23, 2019 09:43 — forked from adamloving/temporary-email-address-domains
A list of domains for disposable and temporary email addresses. Useful for filtering your email list to increase open rates (sending email to these domains likely will not be opened).
0-mail.com
0815.ru
0clickemail.com
0wnd.net
0wnd.org
10minutemail.com
20minutemail.com
2prong.com
30minutemail.com
3d-painting.com
@iolufemi
iolufemi / disposable-email-provider-domains
Created January 23, 2019 09:43
List of disposable email provider domains
0815.ru
0wnd.net
0wnd.org
10minutemail.co.za
10minutemail.com
123-m.com
1fsdfdsfsdf.tk
1pad.de
20minutemail.com
21cn.com