Skip to content

Instantly share code, notes, and snippets.

View NicolasRitouet's full-sized avatar

Nicolas Ritouet NicolasRitouet

View GitHub Profile
@NicolasRitouet
NicolasRitouet / sdfcli.js
Created January 4, 2018 14:18
A node SDF cli wrapper
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 / Makefile
Last active November 30, 2016 08:45 — forked from ianblenke/Makefile
A Makefile for creating, updating, watching, and deleting a CloudFormation VPC as per gists 9f4b8dd2b39c7d1c31ef and 0a6a6f26d1ecaa0d81eb
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 / gist-to-the-community.md
Last active November 13, 2016 19:17
Deployd is not dead

Hi deployd community,

tl;dr Deployd has a new team of maintainers, new release of Deployd, contributions more than welcome.

My name is Nicolas Ritouet, I'm a new member of the deployd team. I met Jeffrey Cross at a conference a few months ago, told him that I was a big fan of Deployd and how sad I was to see the project dying (as lot's of you probably). We discussed and I proposed my help to keep maintaining the project.

I joined the deployd team and started to work on the many Pull Requests that were waiting for a while.

@NicolasRitouet
NicolasRitouet / release-deployd.md
Last active August 29, 2016 09:49
Release a new version of deployd
$ 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 / dup.sh
Created December 4, 2013 16:17
Check duplicates Usage: ./dup.sh my_artifact.war ./dup.sh my_artifact.jar
jar tf $1 |sort| uniq -c|sort -n
@NicolasRitouet
NicolasRitouet / git-multipull.sh
Created November 29, 2013 09:17
Git multiple pull
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
find "$DIR" -type d -name .git \
| xargs -n 1 dirname \
@NicolasRitouet
NicolasRitouet / .gitignore
Created October 17, 2013 15:13
Gitignore for intellij, eclipse and maven
# Eclipse
.classpath
.project
.settings/
# Intellij
.idea/
*.iml
*.iws
@NicolasRitouet
NicolasRitouet / git_branch_from_tag.sh
Last active December 25, 2015 14:29
Make a branch from a tag
tag_to_branch=2.0.4.1
new_branch=2.0.4
git checkout origin master
git fetch origin
git branch $new_branch tags/$tag_to_branch #or git checkout -b $new_branch $tag_to_branch
git checkout $new_branch
git push origin $new_branch
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashpath
. ~/.bashrc
sudo apt-get install build-essential g++ curl
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://npmjs.org/install.sh | sh
@NicolasRitouet
NicolasRitouet / index.js
Last active August 29, 2015 14:23
dpd-fileupload 0.0.14
"use strict";
/**
* Module dependencies
*/
var Resource = require('deployd/lib/resource'),
util = require('util'),
path = require('path'),
debug = require('debug')('dpd-fileupload'),
formidable = require('formidable'),