Skip to content

Instantly share code, notes, and snippets.

@pofider
pofider / jsreport-ebs.config
Created September 10, 2015 15:43
jsreport running on elastic beanstalk and storing data on EBS
# .ebextensions/01-ebs.config
commands:
01clear-if-unmounted:
command: if ! mount | grep /media/ebs_volume > /dev/nul; then rm -rf /media/ebs_volume; fi
02attach-volume:
command: aws ec2 attach-volume --region eu-central-1 --volume-id vol-ddb08e34 --instance-id $(curl -s http://169.254.169.254/latest/meta-data/instance-id) --device /dev/sdh
ignoreErrors: true
03wait:
command: sleep 10
04trymount:
@pofider
pofider / jsreport.config.js
Last active May 31, 2016 08:57
jsreport extension adding request query string into intput data
module.exports = {
'name': 'query-string',
'main': 'queryString.js'
}
@pofider
pofider / nginx.conf
Created June 7, 2016 11:11
running jsreport on subpath behind nginx proxy
upstream jsreport {
# change port 8080 with the port you are running jsreport on
server 127.0.0.1:8080;
keepalive 15;
}
server {
listen 80;
# change my-domain.net with the host you run nginx on
@pofider
pofider / electron-script.js
Last active August 4, 2016 08:05
node js and electron IPC doesn't work on linux
process.send('I am ok')
process.exit(0);