Skip to content

Instantly share code, notes, and snippets.

View AdrienFromToulouse's full-sized avatar

Adrien AdrienFromToulouse

  • EchoesHQ
  • Toulouse ⇄ Seoul ⇄ Singapore ⇄ Amsterdam
View GitHub Profile
const fs = require('fs');
module.exports = (audioContext) => {
const buffer = fs.readFileSync('/tmp/MixTwoDifferentChannels.wav');
return audioContext.decodeAudioData(buffer).then((audioBuffer) => {
const bufSrc = audioContext.createBufferSource();
const panNode = audioContext.createStereoPanner();
// mostly on the left
const fs = require('fs');
module.exports = (audioContext) => {
const buffer = fs.readFileSync('./test/data/clean2.wav');
const bufferConvolver = fs.readFileSync('impulse-responses/piano-hall.wav');
return audioContext.decodeAudioData(buffer).then((audioBuffer) => {
const bufSrc = audioContext.createBufferSource();
const convolverNode = audioContext.createConvolver();
serverless project init -n blurry -t test -r ap-northeast-1
serverless dash deploy
[..]
upstream my-awesome-app {
server app1:5000;
server app2:5000;
}
location / {
proxy_pass http://my-awesome-app;
proxy_redirect off;
nginx:
build: ./nginx
links:
- app1:app1
- app2:app2
ports:
- "80:80"
- "443:443"
volumes:
- /etc/nginx/psw:/etc/nginx/psw
{
"apps" : [{
"merge_logs" : true,
"name" : "worker1",
"out_file" : "/tmp/workers.log",
"log_date_format" : "MM/DD/YYYY HH:mm:ss",
"script" : "lib/worker.js"
},{
"merge_logs" : true,
"name" : "worker2",
# Set the base image to Ubuntu
FROM ubuntu:14.04
MAINTAINER Adrien Desbiaux
# Install Node.js and other dependencies
RUN apt-get update && \
apt-get -y install curl && \
apt-get -y install git && \
apt-get -y install wget && \
#!/bin/bash -e
sed -i s/DOMAIN_NAME/$DOMAIN_NAME/g /etc/nginx/nginx.conf
cat /etc/nginx/nginx.conf
exec "$@"
# Set nginx base image
FROM nginx
# File Author / Maintainer
MAINTAINER Adrien Desbiaux
COPY docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
# Copy custom configuration file from the current directory
# Set the base image to Ubuntu
FROM ubuntu:14.04
MAINTAINER Adrien Desbiaux
# Install Node.js and other dependencies
RUN apt-get update && \
apt-get -y install curl && \
apt-get -y install git && \
apt-get -y install wget && \