Skip to content

Instantly share code, notes, and snippets.

@msergo
msergo / runCertbot.sh
Created May 22, 2019 02:05 — forked from ramboldio/runCertbot.sh
Run Certbot in Docker
#!/bin/bash
# U need this folder to exist
mkdir ~/certs
# authenticate yourself (requires that nothing runs on ports 443 and 80)
docker run --rm -it -v ~/certs:/etc/letsencrypt -p 443:443 certbot/certbot certonly --authenticator standalone
# renewal
docker run --rm -it -v ~/certs:/etc/letsencrypt certbot/certbot renew
@msergo
msergo / nginx-environment.md
Created September 1, 2018 16:21 — forked from xaviervia/nginx-environment.md
Nginx and Docker links with environment variables, a love story

How to add environment variables to nginx.conf

This is the hack approach to adding environment variables to the nginx configuration files. As with most Google results for this search, the reason is Docker.

The setup

I intended to deploy two Docker containers.

@msergo
msergo / gist:281eb535edb3509f5358c78b4a0d91dd
Created January 25, 2018 19:03 — forked from danielestevez/gist:2044589
GIT Commit to an existing Tag
1) Create a branch with the tag
git branch {tagname}-branch {tagname}
git checkout {tagname}-branch
2) Include the fix manually if it's just a change ....
git add .
git ci -m "Fix included"
or cherry-pick the commit, whatever is easier
git cherry-pick {num_commit}
@msergo
msergo / upload-github-release-asset.sh
Created January 17, 2018 16:24 — forked from stefanbuck/upload-github-release-asset.sh
Script to upload a release asset using the GitHub API v3.
#!/usr/bin/env bash
#
# Author: Stefan Buck
# https://gist.github.com/stefanbuck/ce788fee19ab6eb0b4447a85fc99f447
#
#
# This script accepts the following parameters:
#
# * owner
# * repo