Skip to content

Instantly share code, notes, and snippets.

View grouville's full-sized avatar

Guillaume de Rouville grouville

View GitHub Profile
@georgmao
georgmao / samSecrets.js
Created February 15, 2020 02:20
Sample SAM template using various ways to store secrets
Resources:
ApiFunction:
Type: AWS::Serverless::Function
Properties:
Environment:
Variables:
# this is a standard lambda env var
user: "This is a regular env var"
# this is a var loaded from SSM
@u1i
u1i / start_docker_registry.bash
Last active March 23, 2024 05:54 — forked from PieterScheffers/start_docker_registry.bash
Start docker registry with letsencrypt certificates and Basic Auth
#!/usr/bin/env bash
# install docker
# https://docs.docker.com/engine/installation/linux/ubuntulinux/
# install docker-compose
# https://docs.docker.com/compose/install/
# install letsencrypt
# https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04
@notionquest
notionquest / Git_create_branch_error_resolution.txt
Last active December 20, 2023 03:15
Git create branch error src refspec matches more than one
If you get the below error when you try to create branch, you can use the below command to resolve it.
Error:
error: src refspec 9.0.1 matches more than one.
Solution:
git push origin refs/heads/branchName:refs/heads/branchName