| 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 |
Content :
This file contains hidden or 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
| 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{ |
This file contains hidden or 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
| 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]); | |
| } |
This file contains hidden or 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
| # 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 | |
| # |
This file contains hidden or 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
| #!/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 }') |
This file contains hidden or 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
| [ | |
| { | |
| "code2": "AF", | |
| "code3": "AFG", | |
| "name": "Afghanistan", | |
| "capital": "Kabul", | |
| "region": "Asia", | |
| "subregion": "Southern Asia", | |
| "states": [ | |
| { |
| 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 |
This file contains hidden or 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
| 0-mail.com | |
| 0815.ru | |
| 0clickemail.com | |
| 0wnd.net | |
| 0wnd.org | |
| 10minutemail.com | |
| 20minutemail.com | |
| 2prong.com | |
| 30minutemail.com | |
| 3d-painting.com |
This file contains hidden or 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
| 0815.ru | |
| 0wnd.net | |
| 0wnd.org | |
| 10minutemail.co.za | |
| 10minutemail.com | |
| 123-m.com | |
| 1fsdfdsfsdf.tk | |
| 1pad.de | |
| 20minutemail.com | |
| 21cn.com |
NewerOlder