This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
serverless project init -n blurry -t test -r ap-northeast-1 | |
serverless dash deploy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[..] | |
upstream my-awesome-app { | |
server app1:5000; | |
server app2:5000; | |
} | |
location / { | |
proxy_pass http://my-awesome-app; | |
proxy_redirect off; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nginx: | |
build: ./nginx | |
links: | |
- app1:app1 | |
- app2:app2 | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- /etc/nginx/psw:/etc/nginx/psw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
sed -i s/DOMAIN_NAME/$DOMAIN_NAME/g /etc/nginx/nginx.conf | |
cat /etc/nginx/nginx.conf | |
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 && \ |
NewerOlder