Skip to content

Instantly share code, notes, and snippets.

View bewie's full-sized avatar
:shipit:

laurent apollis bewie

:shipit:
  • Montpellier, France
View GitHub Profile
@hekmon
hekmon / dp_autostop.go
Last active February 1, 2021 17:39
Golang "autostop" design pattern: controller with clean context stop (avoid Start() Stop() workflow)
package foobar
import (
"context"
"errors"
)
// Controller is a base pattern controller
type Controller struct {
ctx context.Context
# Go parameters
GOCMD=go
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean
GOTEST=$(GOCMD) test
GOGET=$(GOCMD) get
BINARY_NAME=mybinary
BINARY_UNIX=$(BINARY_NAME)_unix
***
*** Inscrivez vous aux webinaires 2017 : https://attendee.gotowebinar.com/register/7239291589398918401
***
Webinaire "Présentation des principaux services AWS" :
https://www.youtube.com/watch?v=FC--jteXU_8
http://www.slideshare.net/JulienSIMON5/presentation-des-services-aws
Webinaire "Modèle de sécurité AWS" :
https://www.youtube.com/watch?v=1QeKH-5nTIc
@xrstf
xrstf / letsencrypt.md
Last active April 18, 2023 05:01
Let's Encrypt on Ubuntu 14.04, nginx with webroot auth

Let's Encrypt on Ubuntu 14.04, nginx with webroot auth

This document details how I setup LE on my server. Firstly, install the client as described on http://letsencrypt.readthedocs.org/en/latest/using.html and make sure you can execute it. I put it in /root/letsencrypt.

As it is not possible to change the ports used for the standalone authenticator and I already have a nginx running on port 80/443, I opted to use the webroot method for each of my domains (note that LE does not issue wildcard certificates by design, so you probably want to get a cert for www.example.com and example.com).

Configuration

For this, I placed config files into etc/letsencrypt/configs, named after <domain>.conf. The files are simple:

Git Cheat Sheet

Commands

Getting Started

git init

or

@tdd
tdd / gitconfig.ini
Last active April 17, 2024 10:04
Nice, useful global Git configuration
# Put this in your ~/.gitconfig or ~/.config/git/config
# Windows users: "~" is your profile's home directory, e.g. C:\Users\<YourName>
[user]
name = Your Full Name
email = your@email.tld
[color]
# Enable colors in color-supporting terminals
ui = auto
[alias]
# List available aliases