Skip to content

Instantly share code, notes, and snippets.

View jasonmarlin's full-sized avatar

Jason Marlin jasonmarlin

View GitHub Profile
@jasonmarlin
jasonmarlin / gist:7d0e3afdf9b5094a5d5141f535048746
Created July 15, 2016 19:49
Small change to CN embed so it will work locally
<script type="text/javascript">!function(n,e,t){var s,c;s=function(){var e=n.location.hostname,s=location.search.match(/CNS_SB=([^&\s]+)[&\s]?/)||[],c=e+"/cns"+(s.length?"-sandbox/"+s[1]:"")+"/services.min.js";return t||"//"+c}(),n.cns=n.cns||{async:function(n,e){this.queue[n]||(this.queue[n]=[]),"function"==typeof e&&this.queue[n].push(e)},queue:{}},c=e.createElement("script"),c.async=!0,c.src=s,e.body.appendChild(c)}(window,document ,'http://localhost:3000/cns/services.min.js'); </script>
<script type="text/javascript" src="<?= ars::$assets ?>/js/ars.ads.us.js"></script>
1. Bootstrap the node (this adds the client and node to Chef server and installs Chef client on node)
knife bootstrap <hostname> --sudo --ssh-user administrator --ssh-password "<password>" --node-name <hostname>
2. Run chef-client on the node
ssh administrator@<hostname>
sudo chef-client
3. Run it again, so it gets a reference to its own host in /etc/hosts
sudo chef-client
4. Hopefully that's it
<!DOCTYPE html>
<style>
.test { color:white; overflow: hidden;}
.test::first-line { background:blue; }
</style>
<div id="spacer" style="display:none; height:3em;"></div>
<div class="test">PASS</div>
<p id="passCondition">Please wait...</p>
<script>
setTimeout(function() {
'use strict';
module.exports = function(grunt) {
// Load all tasks
require('load-grunt-tasks')(grunt);
// Show elapsed time
require('time-grunt')(grunt);
var jsFileList = [
'assets/vendor/bootstrap/js/transition.js',
'assets/vendor/bootstrap/js/alert.js',