Get a VPS that offers 2 or more IP addresses.
From the WHM cPanel, find the menu item Service Configuration, select Apache Configuration and then click on Reserved IPs Editor.
| // TODO: remove spaces and newlines | |
| javascript:(function(){ | |
| s=document.createElement('script'); | |
| s.type='text/javascript'; | |
| s.src='http://example.com/bookmarklet.js'; | |
| document.body.appendChild(s); | |
| })(); | |
| // TODO: bookmarklet code needs to be in an anchor tag | |
| // <a href="javascript:(function(){s=document.createElement('script');s.type='text/javascript';s.src='http://example.com/bookmarklet.js';document.body.appendChild(s);})();">My Bookmarklet</a> |
| var NUMBER_GROUPS = /(-?\d*\.?\d+)/g; | |
| var naturalSort = function (a, b) { | |
| var aa = String(a).split(NUMBER_GROUPS), | |
| bb = String(b).split(NUMBER_GROUPS), | |
| min = Math.min(aa.length, bb.length); | |
| for (var i = 0; i < min; i++) { | |
| var x = parseFloat(aa[i]) || aa[i].toLowerCase(), | |
| y = parseFloat(bb[i]) || bb[i].toLowerCase(); |
| // includes bindings for fetching/fetched | |
| PaginatedCollection = Backbone.Collection.extend({ | |
| initialize: function() { | |
| _.bindAll(this, 'parse', 'url', 'pageInfo', 'nextPage', 'previousPage'); | |
| this.page = 1; | |
| }, | |
| fetch: function(options) { | |
| options || (options = {}); | |
| this.trigger("fetching"); |
| <div id="slideshow"> | |
| <img src="http://farm6.static.flickr.com/5243/5373962623_0e23ed169b_t.jpg"> | |
| <img src="http://farm6.static.flickr.com/5007/5374562138_30e01a767f_t.jpg" style="display:none"> | |
| <img src="http://farm6.static.flickr.com/5288/5374562162_d48ca16567_t.jpg" style="display:none"> | |
| <img src="http://farm6.static.flickr.com/5084/5374562208_3e1bbe58cc_t.jpg" style="display:none"> | |
| <img src="http://farm6.static.flickr.com/5086/5374562182_5ec5c14403_t.jpg" style="display:none"> | |
| </div> | |
| <script type="text/javascript"> | |
| var ims = document.getElementById('slideshow').children; |
| #!/bin/bash | |
| watchmedo shell-command --patterns="*.less" --command=\ | |
| 'LESS=`echo "${watch_src_path}" | sed s/.less/.css/`; \ | |
| echo compile: "${watch_src_path}";\ | |
| lessc "${watch_src_path}" "${LESS}"; \ | |
| if [ "$?" -eq "0" ]; then echo wrote: "${LESS}"; fi' $* |
| let g:tagbar_type_php = { | |
| \ 'ctagstype' : 'php', | |
| \ 'kinds' : [ | |
| \ 'i:interfaces', | |
| \ 'c:classes', | |
| \ 'd:constant definitions', | |
| \ 'f:functions', | |
| \ 'j:javascript functions:1' | |
| \ ] |
| # Note that while this file is in our config folder, it is | |
| # symlinked to our site folders, so paths are relative from there | |
| # Require gems and Compass plugins | |
| # require 'rgbapng' | |
| # require 'compass-fancybox-plugin' | |
| require 'compass-growl' | |
| # General | |
| output_style = :expanded |