Skip to content

Instantly share code, notes, and snippets.

View NicolasRitouet's full-sized avatar

Nicolas Ritouet NicolasRitouet

View GitHub Profile
@NicolasRitouet
NicolasRitouet / changelog.js
Last active June 1, 2023 11:10
Changelog.js
#!/usr/bin/env node
// TODO(vojta): pre-commit hook for validating messages
// TODO(vojta): report errors, currently Q silence everything which really sucks
'use strict';
var child = require('child_process');
var fs = require('fs');
var util = require('util');
@NicolasRitouet
NicolasRitouet / host-aws-s3-domain-name.md
Last active April 25, 2022 11:21
Host your static website on AWS S3 and map your custom domain name on Gandi

This tutorial explains how to host your static website on Amazon Web Service S3 with your custom domain name on gandi (or on any other registrar).

Create a bucket on AWS s3 on the closest region (Frankfurt for Europeans).

The name of the bucket should be your domain name: example.com

Enable website hosting

Go to bucket properties, then Static website hosting and select enable website hosting. Index document should be index.html. Click save

@NicolasRitouet
NicolasRitouet / README.md
Last active October 13, 2021 13:40 — forked from Potherca/README.md
BASH scripts to go through all the steps to make a (VPS) server more secure.
@NicolasRitouet
NicolasRitouet / minecraft.sh
Last active March 28, 2020 21:40
Single Command Minecraft Install
#!/bin/bash
# Minecraft (Spigot) server build script (written by Clay Freeman)
# License: http://creativecommons.org/licenses/by-sa/4.0/
# To use this script:
# wget -qO- https://gist.github.com/ClayFreeman/a4dae9b7d0fa2c6476eb/raw | sh
echo
@NicolasRitouet
NicolasRitouet / ctx.js
Created February 13, 2015 09:18
Deployd ctx object inside event
{ url: '/e59f6412949f29b9',
req:
{ _readableState:
{ highWaterMark: 16384,
buffer: [],
length: 0,
pipes: null,
pipesCount: 0,
flowing: false,
ended: true,
---
AWSTemplateFormatVersion: '2010-09-09'
Description: 'Cloudformation stack to manage permission to deploy a serverless service'
Parameters:
ServiceName:
Description: Name of the Service you want to deploy
Type: String
ServiceName2:
Description: Name of the 2nd Service you want to deploy
@NicolasRitouet
NicolasRitouet / cd-aws-s3-wercker.md
Last active June 13, 2018 19:03
How to automate deployment on AWS S3 with bitbucket (or github) and wercker

This tutorial explains how to deploy automatically from bitbucket (or github) to AWS S3.

Create a bitbucket repository (public or private).

Add this repo on Wercker

  • Go to Create Application
  • Select use bitbucket (or github)
  • Choose your repo
  • For the next questions, choose the default answers
@NicolasRitouet
NicolasRitouet / deployd-1.0.0.md
Last active April 26, 2018 07:47
deployd 1.0.0 released

Dear deployd community,

The day has come, deployd is now stable enough to be released as a major version.

This is a big deal for all of us. It means:

  • we believe that deployd is stable enough to be used on production
  • we will communicate properly about breaking changes using Semantic Versioning

It took a while because we wanted to refactor the core module before releasing 1.0.0.
We extracted the dpd CLI, the dashboard and the clientlib from the core module (deployd).

@NicolasRitouet
NicolasRitouet / serverless-deploy-user.yaml
Created April 17, 2018 05:37 — forked from bsamuel-ui/serverless-deploy-user.yaml
Cloudformation template to deploy permissions for deploying a serverless project.
AWSTemplateFormatVersion: 2010-09-09
Description: >
Constructs a managed IAM policy to deploy a serverless project.
This template assumes the stack is being deployed in the current region and account.
You can then attach this policy to other IAM objects, such as users or roles.
Based on the work done in: https://github.com/serverless/serverless/issues/1439
@NicolasRitouet
NicolasRitouet / main.go
Created January 8, 2018 16:23 — forked from creack/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"os/signal"
"strconv"