Skip to content

Instantly share code, notes, and snippets.

View vanWittlaer's full-sized avatar

Benny Poensgen vanWittlaer

View GitHub Profile
@Stanback
Stanback / nginx.conf
Last active October 1, 2024 23:28 — forked from michiel/cors-nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your **location** block(s):
#
# include cors_support;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which
@koehnlein
koehnlein / dbeaver
Last active October 27, 2023 06:49
ddev dbeaver // UPDATE: A better `ddev dbeaver` command is part of DDEV since https://github.com/ddev/ddev/releases/tag/v1.22.4 and nobody should need this snippet from here anymore.
#!/usr/bin/env bash
## Usage: dbeaver
## Description: Open DBeaver and create database connection with the current project
## Example: "ddev dbeaver"
dbeaver -con "name=ddev-${DDEV_PROJECT}|driver=mariadb|database=db|user=root|password=root|host=127.0.0.1|port=${DDEV_HOST_DB_PORT}|openConsole=true"