Skip to content

Instantly share code, notes, and snippets.

View tom2strobl's full-sized avatar
:shipit:
busy building some rad shizzle

Thomas Strobl tom2strobl

:shipit:
busy building some rad shizzle
View GitHub Profile
@tom2strobl
tom2strobl / index.js
Created May 20, 2016 09:03
Quick script that reads all files on given paths and writes the occurences of arguments to a __() function to a JSON and CSV file. Useful for localization and internationalization.
'use strict';
const Promise = require("bluebird");
const _ = require("lodash");
const glob = require("glob");
const async = require("async");
const fs = require("fs");
const jsonfile = require("jsonfile");
const json2csv = require("json2csv");
Promise.promisifyAll(fs);
@tom2strobl
tom2strobl / 01_add_cors.config.yaml
Created February 11, 2016 10:32 — forked from vsviridov/01_add_cors.config.yaml
Add CORS to Nginx on AWS Elastic Beanstalk
container_commands:
01_fix_static_cors:
command: "/tmp/fix_static_cors.sh"
files:
"/tmp/fix_static_cors.sh":
mode: "000755"
owner: root
group: root
content: |
#!/bin/bash