Skip to content

Instantly share code, notes, and snippets.

View jeromegamez's full-sized avatar
:octocat:

Jérôme Gamez jeromegamez

:octocat:
View GitHub Profile
@jeromegamez
jeromegamez / Makefile
Last active April 25, 2025 15:30
Local infra for MongoDB with replicasets
SHELL := bash
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
.DELETE_ON_ERROR:
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
.PHONY: mongo-up
mongo-up: ## Spin up MongoDB WITHOUT index checks
docker compose -f compose-mongo.yml up -d

Keybase proof

I hereby claim:

  • I am jeromegamez on github.
  • I am lefoudufafa (https://keybase.io/lefoudufafa) on keybase.
  • I have a public key ASBXmCEV3hjXVyZ2hNGaH73ewq7inQc7BP1QXoNdPpgpcAo

To claim this, I am signing this object:

@jeromegamez
jeromegamez / array_keys_exist.php
Last active May 9, 2017 18:41
PHP: array_keys_exist() - like`array_key_exist(), but for multiple keys
<?php
/**
* Returns TRUE if the given keys are all set in the array. Each key can be any value possible for an array index.
*
* @see array_key_exists()
*
* @param array $array An array with keys to check.
* @param string[] $keys Keys to check.
* @param mixed $missing Reference to a variable that that contains the missing keys.