Skip to content

Instantly share code, notes, and snippets.

Nicolas Ritouet NicolasRitouet

Block or report user

Report or block NicolasRitouet

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@NicolasRitouet
NicolasRitouet / serverless-deploy-user.yaml
Created Apr 17, 2018 — forked from bsamuel-ui/serverless-deploy-user.yaml
Cloudformation template to deploy permissions for deploying a serverless project.
View serverless-deploy-user.yaml
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 Jan 8, 2018 — forked from creack/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
View main.go
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"os/signal"
"strconv"
@NicolasRitouet
NicolasRitouet / sdfcli.js
Created Jan 4, 2018 — forked from firemound/sdfcli.js
A node SDF cli wrapper
View sdfcli.js
const spawn = require('cross-spawn');
const readline = require('readline').createInterface({
input: process.stdin,
output: process.stdout,
});
const getNetsuiteDomain = require('./rest.js');
/**
* @param {Config} config The configuration object
@NicolasRitouet
NicolasRitouet / deployd-1.0.0.md
Last active Apr 26, 2018
deployd 1.0.0 released
View deployd-1.0.0.md

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).

View serverless-cf-policies.yml
---
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 / Makefile
Last active Nov 30, 2016 — forked from ianblenke/Makefile
A Makefile for creating, updating, watching, and deleting a CloudFormation VPC as per gists 9f4b8dd2b39c7d1c31ef and 0a6a6f26d1ecaa0d81eb
View Makefile
STACK:=myapp-dev
TEMPLATE:=cloudformation-template_vpc-iam.yml
PARAMETERS:=cloudformation-parameters_myapp-dev.yml
AWS_REGION:=eu-west-1
AWS_PROFILE:=aws-dev
all:
@which aws || pip install awscli
aws cloudformation create-stack --stack-name $(STACK) --template-body file://`pwd`/$(TEMPLATE) --parameters file://`pwd`/$(PARAMETERS) --capabilities CAPABILITY_IAM --profile $(AWS_PROFILE) --region $(AWS_REGION)
@NicolasRitouet
NicolasRitouet / index.js
Last active Aug 29, 2015
dpd-fileupload 0.0.14
View index.js
"use strict";
/**
* Module dependencies
*/
var Resource = require('deployd/lib/resource'),
util = require('util'),
path = require('path'),
debug = require('debug')('dpd-fileupload'),
formidable = require('formidable'),
@NicolasRitouet
NicolasRitouet / release-deployd.md
Last active Aug 29, 2016
Release a new version of deployd
View release-deployd.md
$ curl -O https://gist.githubusercontent.com/NicolasRitouet/33d9582c7ce2a39148b8/raw/0d00d0c1deb4c478dc2a942f1ae49cc7a6f7f1d2/changelog.js
$ git fetch origin # To get all tags
$ npm i qq
$ node changelog.js v0.8.10 (target release)
$ copy content to HISTORY.md
$ rm changelog.js
$ bump version in package.json
$ git ac "Bump to v0.8.10"
$ git push origin master
@NicolasRitouet
NicolasRitouet / cd-aws-s3-wercker.md
Last active Jun 13, 2018
How to automate deployment on AWS S3 with bitbucket (or github) and wercker
View cd-aws-s3-wercker.md

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 / host-aws-s3-domain-name.md
Last active Aug 10, 2017
Host your static website on AWS S3 and map your custom domain name on Gandi
View host-aws-s3-domain-name.md

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

You can’t perform that action at this time.