Skip to content

Instantly share code, notes, and snippets.

View albanx's full-sized avatar

Alban albanx

View GitHub Profile
/*!
* jQuery Tiny Pub/Sub for jQuery 1.7 - v0.1 - 27/10/2011
* Based on @cowboy Ben Alman's REALLY tiny pub/sub.
* 1.7 specific updates by @addyosmani.
* Copyright maintained by @cowboy.
* Dual licensed under the MIT and GPL licenses.
* Edit By Alban to allow object context and return
*/
(function($)
@albanx
albanx / deploy.js
Last active May 29, 2021 19:26
Full Deploy.js script
const execSync = require('child_process').execSync;
const AWS = require('aws-sdk');
const fs = require('fs');
const mime = require('mime');
const { version } = require('../package.json');
const CLOUDFRONT_ID = 'YOUR_CF_ID';
const S3_BUCKET_ID = 'BUCKET_NAME_IN_AWS_ACCOUNT';
const walkSync = dir => {