[![github-img]][github-url] [![linkedin-img]][linkedin-url] [![stackoverflow-img]][stackoverflow-url] [![npm-img]][npm-url]
Original source: dcos-labs: DCOS on Google Compute Engine
This repository contains scripts to configure a DC/OS cluster on Google Compute Engine.
A bootstrap node is required to run the scripts and to bootstrap the DC/OS cluster.
PLEASE READ THE ENTIRE DOCUMENT. YOU MUST MAKE CHANGES FOR THE SCRIPTS TO WORK IN YOUR GCE ENVIRONMENT.
29 17:34:33 ~/projects/@aurelia
$ npm uninstall -g au aurelia-cli && npm cache clear
- aurelia-cli@0.24.0 node_modules/aurelia-cli
32 17:34:42 ~/projects/@aurelia
$ npm install -g ./cli/
/Users/dev/.nvm/versions/node/v7.5.0/bin/aurelia -> /Users/dev/.nvm/versions/node/v7.5.0/lib/node_modules/aurelia-cli/bin/aurelia-cli.js
/Users/dev/.nvm/versions/node/v7.5.0/bin/au -> /Users/dev/.nvm/versions/node/v7.5.0/lib/node_modules/aurelia-cli/bin/aurelia-cli.js
/Users/dev/.nvm/versions/node/v7.5.0/lib
https://help.optimizely.com/Set_Up_Optimizely/Synchronous_and_Asynchronous_snippet_loading
(function(ss, el, path) {
el.async = true;
el.defer = true;
el.src = path;
el.type = 'text/javascript';
ss.parentNode.insertBefore(el, ss);
})(document.createElement('script'),
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
(function() { | |
document | |
.querySelectorAll('.pseudocheckbox') | |
.forEach((node) => { | |
els[i].click() | |
}) | |
})() |
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
# Browser Cache | |
# ------------- | |
# Images: 8 days | |
<filesMatch “.(jpg|jpeg|png|gif|swf|ico)$”> | |
Header set Cache-Control “max-age=691200, public” | |
</filesMatch> | |
# Scripts: 8 days | |
<filesMatch “.(xml|txt|js)$”> | |
Header set Cache-Control “max-age=691200, proxy-revalidate” |
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
/** | |
* @desc Injects jQuery into Instagram feed page and likes X posts at a time | |
* | |
* Usage: Open https://www.instagram.com/ in Chrome and login to view your feed; | |
* run this script in the JS console to like posts in your feed in batches. | |
* | |
* @param {number} start - starting post index (should be 0 unless manually continuing a prev. exec.) | |
* @param {number} count - number of posts to like per batch (like X posts, wait a little, repeat) | |
* @param {number} interval - number of milliseconds to wait between batches, +/- some randomness | |
*/ |
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
#!/usr/bin/env bash | |
# forward localhost:8000 to localhost:3000 | |
echo "rdr pass on lo0 inet proto tcp from any to 127.0.0.1 port 8000 -> 127.0.0.1 port 3000" | sudo pfctl -ef - | |
# remove it | |
sudo pfctl -F all -f /etc/pf.conf |
OlderNewer