-
-
Save samjsharpe/217dde1212f0a268ff88 to your computer and use it in GitHub Desktop.
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
350,507d349 | |
< window.templates["search/_results_block"]=new Hogan.Template(function(e | |
< t | |
< n){var r=this;return r.b(n=n||"") | |
< r.s(r.f("filter_fields" | |
< e | |
< t | |
< 1) | |
< e | |
< t | |
< 0 | |
< 18 | |
< 1135 | |
< "{{ }}")&&(r.rs(e | |
< t | |
< function(e | |
< t | |
< r){r.b(' <div class="filter-form">') | |
< r.b("\n"+n) | |
< r.b(' <div class="inner-block">') | |
< r.b("\n"+n) | |
< r.b(' <p class="info">Filter by:</p>') | |
< r.b("\n"+n) | |
< r.b(' <div class="filter checkbox-filter js-openable-filter ') | |
< r.s(r.d("organisations.any?" | |
< e | |
< t | |
< 1) | |
< e | |
< t | |
< 1 | |
< 0 | |
< 0 | |
< "")||r.b("closed") | |
< r.b('" tabindex="0">') | |
< r.b("\n"+n) | |
< r.b(' <div class="head">') | |
< r.b("\n"+n) | |
< r.b(' <span class="legend">Organisations</span>') | |
< r.b("\n"+n) | |
< r.b(' <div class="controls">') | |
< r.b("\n"+n) | |
< r.b(' <a class="clear-selected ') | |
< r.s(r.d("organisations.any?" | |
< e | |
< t | |
< 1) | |
< e | |
< t | |
< 1 | |
< 0 | |
< 0 | |
< "")||r.b(" js-hidden") | |
< r.b('">Remove filters</a>') | |
< r.b("\n"+n) | |
< r.b(' <div class="toggle"></div>') | |
< r.b("\n"+n) | |
< r.b(" </div>") | |
< r.b("\n"+n) | |
< r.b(" </div>") | |
< r.b("\n"+n) | |
< r.b(' <div class="checkbox-container" id="organisations-filter">') | |
< r.b("\n"+n) | |
< r.b(" <ul>") | |
< r.b("\n"+n) | |
< r.s(r.d("organisations.options" | |
< e | |
< t | |
< 1) | |
< e | |
< t | |
< 0 | |
< 659 | |
< 912 | |
< "{{ }}")&&(r.rs(e | |
< t | |
< function(e | |
< t | |
< r){r.b(" <li>") | |
< r.b("\n"+n) | |
< r.b(' <input type="checkbox" name="filter_organisations[]" value="') | |
< r.b(r.v(r.f("slug" | |
< e | |
< t | |
< 0))) | |
< r.b('" id="') | |
< r.b(r.v(r.f("slug" | |
< e | |
< t | |
< 0))) | |
< r.b('" ') | |
< r.s(r.f("checked" | |
< e | |
< t | |
< 1) | |
< e | |
< t | |
< 0 | |
< 791 | |
< 798 | |
< "{{ }}")&&(r.rs(e | |
< t | |
< function(e | |
< t | |
< n){n.b("checked")}) | |
< e.pop()) | |
< r.b(">") | |
< r.b("\n"+n) | |
< r.b(" <label for='") | |
< r.b(r.v(r.f("slug" | |
< e | |
< t | |
< 0))) | |
< r.b("'>") | |
< r.b(r.v(r.f("title" | |
< e | |
< t | |
< 0))) | |
< r.b(" (") | |
< r.b(r.v(r.f("count" | |
< e | |
< t | |
< 0))) | |
< r.b(")</label>") | |
< r.b("\n"+n) | |
< r.b(" </li>") | |
< r.b("\n")}) | |
< e.pop()) | |
< r.b(" </ul>") | |
< r.b("\n"+n) | |
< r.b(" </div>") | |
< r.b("\n"+n) | |
< r.b(" </div>") | |
< r.b("\n"+n) | |
< r.b(' <div class="submit js-live-search-fallback">') | |
< r.b("\n"+n) | |
< r.b(' <input type="submit" class="button" value="Submit filters">') | |
< r.b("\n"+n) | |
< r.b(" </div>") | |
< r.b("\n"+n) | |
< r.b(" </div>") | |
< r.b("\n"+n) | |
< r.b(" </div>") | |
< r.b("\n")}) | |
< e.pop()) | |
< r.b("\n"+n) | |
< r.b('<div class="results-block">') | |
< r.b("\n"+n) | |
< r.b(' <div class="inner-block js-live-search-results-list">') | |
< r.b("\n"+n) | |
< r.b(r.rp("search/_results_list" | |
< e | |
< t | |
< " ")) | |
< r.b(" </div>") | |
< r.b("\n"+n) | |
< r.b("</div>") | |
< r.b("\n") | |
< r.fl()}) | |
933a776,933 | |
> window.templates["search/_results_block"]=new Hogan.Template(function(e | |
> t | |
> n){var r=this;return r.b(n=n||"") | |
> r.s(r.f("filter_fields" | |
> e | |
> t | |
> 1) | |
> e | |
> t | |
> 0 | |
> 18 | |
> 1135 | |
> "{{ }}")&&(r.rs(e | |
> t | |
> function(e | |
> t | |
> r){r.b(' <div class="filter-form">') | |
> r.b("\n"+n) | |
> r.b(' <div class="inner-block">') | |
> r.b("\n"+n) | |
> r.b(' <p class="info">Filter by:</p>') | |
> r.b("\n"+n) | |
> r.b(' <div class="filter checkbox-filter js-openable-filter ') | |
> r.s(r.d("organisations.any?" | |
> e | |
> t | |
> 1) | |
> e | |
> t | |
> 1 | |
> 0 | |
> 0 | |
> "")||r.b("closed") | |
> r.b('" tabindex="0">') | |
> r.b("\n"+n) | |
> r.b(' <div class="head">') | |
> r.b("\n"+n) | |
> r.b(' <span class="legend">Organisations</span>') | |
> r.b("\n"+n) | |
> r.b(' <div class="controls">') | |
> r.b("\n"+n) | |
> r.b(' <a class="clear-selected ') | |
> r.s(r.d("organisations.any?" | |
> e | |
> t | |
> 1) | |
> e | |
> t | |
> 1 | |
> 0 | |
> 0 | |
> "")||r.b(" js-hidden") | |
> r.b('">Remove filters</a>') | |
> r.b("\n"+n) | |
> r.b(' <div class="toggle"></div>') | |
> r.b("\n"+n) | |
> r.b(" </div>") | |
> r.b("\n"+n) | |
> r.b(" </div>") | |
> r.b("\n"+n) | |
> r.b(' <div class="checkbox-container" id="organisations-filter">') | |
> r.b("\n"+n) | |
> r.b(" <ul>") | |
> r.b("\n"+n) | |
> r.s(r.d("organisations.options" | |
> e | |
> t | |
> 1) | |
> e | |
> t | |
> 0 | |
> 659 | |
> 912 | |
> "{{ }}")&&(r.rs(e | |
> t | |
> function(e | |
> t | |
> r){r.b(" <li>") | |
> r.b("\n"+n) | |
> r.b(' <input type="checkbox" name="filter_organisations[]" value="') | |
> r.b(r.v(r.f("slug" | |
> e | |
> t | |
> 0))) | |
> r.b('" id="') | |
> r.b(r.v(r.f("slug" | |
> e | |
> t | |
> 0))) | |
> r.b('" ') | |
> r.s(r.f("checked" | |
> e | |
> t | |
> 1) | |
> e | |
> t | |
> 0 | |
> 791 | |
> 798 | |
> "{{ }}")&&(r.rs(e | |
> t | |
> function(e | |
> t | |
> n){n.b("checked")}) | |
> e.pop()) | |
> r.b(">") | |
> r.b("\n"+n) | |
> r.b(" <label for='") | |
> r.b(r.v(r.f("slug" | |
> e | |
> t | |
> 0))) | |
> r.b("'>") | |
> r.b(r.v(r.f("title" | |
> e | |
> t | |
> 0))) | |
> r.b(" (") | |
> r.b(r.v(r.f("count" | |
> e | |
> t | |
> 0))) | |
> r.b(")</label>") | |
> r.b("\n"+n) | |
> r.b(" </li>") | |
> r.b("\n")}) | |
> e.pop()) | |
> r.b(" </ul>") | |
> r.b("\n"+n) | |
> r.b(" </div>") | |
> r.b("\n"+n) | |
> r.b(" </div>") | |
> r.b("\n"+n) | |
> r.b(' <div class="submit js-live-search-fallback">') | |
> r.b("\n"+n) | |
> r.b(' <input type="submit" class="button" value="Submit filters">') | |
> r.b("\n"+n) | |
> r.b(" </div>") | |
> r.b("\n"+n) | |
> r.b(" </div>") | |
> r.b("\n"+n) | |
> r.b(" </div>") | |
> r.b("\n")}) | |
> e.pop()) | |
> r.b("\n"+n) | |
> r.b('<div class="results-block">') | |
> r.b("\n"+n) | |
> r.b(' <div class="inner-block js-live-search-results-list">') | |
> r.b("\n"+n) | |
> r.b(r.rp("search/_results_list" | |
> e | |
> t | |
> " ")) | |
> r.b(" </div>") | |
> r.b("\n"+n) | |
> r.b("</div>") | |
> r.b("\n") | |
> r.fl()}) |
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
#List the files: | |
[govuk-provisioning/vcloud-edge_gateway:master●]$ for i in 1 2 3; do ssh frontend-${i}.frontend.production ls -alrt /var/apps/frontend/public/frontend/frontend-\*.js \| tail -n 1; done | |
-rw-r--r-- 1 deploy deploy 20058 Jul 16 11:37 /var/apps/frontend/public/frontend/frontend-99116ff7a961e067bb80b7bccc60585e.js | |
-rw-r--r-- 1 deploy deploy 20058 Jul 16 11:37 /var/apps/frontend/public/frontend/frontend-99116ff7a961e067bb80b7bccc60585e.js | |
-rw-r--r-- 1 deploy deploy 20058 Jul 16 11:37 /var/apps/frontend/public/frontend/frontend-2c213ee5ee6ff0fbbd3421b56576b843.js | |
# get the files: | |
[/Users/ssharpe]$ scp frontend-1.frontend.production:/var/apps/frontend/public/frontend/frontend-99116ff7a961e067bb80b7bccc60585e.js frontend-1.js | |
[/Users/ssharpe]$ scp frontend-3.frontend.production:/var/apps/frontend/public/frontend/frontend-2c213ee5ee6ff0fbbd3421b56576b843.js frontend-3.js | |
# compare the hashes: | |
[/Users/ssharpe]$ md5 frontend-1.js | |
MD5 (frontend-1.js) = b4f2d9f12bb5e27339f71fd4f350dd72 | |
[/Users/ssharpe]$ md5 frontend-3.js | |
MD5 (frontend-3.js) = 7be4c6d38724f94313fa32775e1f12ee | |
# poor man's unminifier: | |
[/Users/ssharpe]$ cat frontend-1.js| tr "," "\n" > frontend-1-expanded.js | |
[/Users/ssharpe]$ cat frontend-3.js| tr "," "\n" > frontend-3-expanded.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment