Skip to content

Instantly share code, notes, and snippets.

@chris-schra
chris-schra / next.config.js
Last active March 1, 2023 13:55
Custom bootstrap for next js server
let entryModified = false;
module.exports = {
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
if(dev && config.entry && !entryModified)
{
require('@babel/register')({
extensions: ['.js', '.jsx', '.ts', '.tsx']
})
@chris-schra
chris-schra / ingress.yaml
Last active January 26, 2021 22:56
Kuard Demo for Kuma
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: kuard-ingress
namespace: kuard
spec:
rules:
- http:
paths:
- path: /
@chris-schra
chris-schra / README.md
Last active July 23, 2020 13:04 — forked from deviantony/README.md
Portainer HTTP API by example

Introduction

This document presents a simple way to manage your Docker resource by using Portainer as a gateway (HTTP queries against the Portainer API).

The API documentation is available here: https://app.swaggerhub.com/apis/deviantony/portainer/

WARNING: This documentation is valid for Portainer >= 1.18.0.

NOTE: I'm using httpie to execute HTTP queries from the CLI.