Skip to content

Instantly share code, notes, and snippets.

Avatar

Adrien AdrienFromToulouse

View GitHub Profile
View stereoPanner-test.js
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
View convolver-test.js
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();
View serverless cmds
serverless project init -n blurry -t test -r ap-northeast-1
serverless dash deploy
View nginx.conf
[..]
upstream my-awesome-app {
server app1:5000;
server app2:5000;
}
location / {
proxy_pass http://my-awesome-app;
proxy_redirect off;
View docker-compose.yml
nginx:
build: ./nginx
links:
- app1:app1
- app2:app2
ports:
- "80:80"
- "443:443"
volumes:
- /etc/nginx/psw:/etc/nginx/psw
View processes.json
{
"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",
View Dockerfile - node
# 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 && \
View nginx.conf
#!/bin/bash -e
sed -i s/DOMAIN_NAME/$DOMAIN_NAME/g /etc/nginx/nginx.conf
cat /etc/nginx/nginx.conf
exec "$@"
View gist:48d10a4d59c90a12ce29
# 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
View Dockerfile
# 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 && \