To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
- Homebrew
- Mountain Lion -> High Sierra
To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
| #!/bin/bash | |
| # mov2giv in out width | |
| # mov2gif video_file_in.mov gif_file_out.gif 300 | |
| tmp_dir=/tmp/frames_$(date +%s) | |
| mkdir $tmp_dir | |
| if [ -z "$3" ] | |
| then | |
| size=600 |
| <?php | |
| use lithium\action\Dispatcher; | |
| use lithium\storage\Session; | |
| use lithium\security\validation\RequestToken; | |
| use lithium\action\Response; | |
| Dispatcher::applyFilter('run', function($self, $params, $chain) { | |
| $request = $params['request']; |
| import os, sys | |
| import datetime | |
| import base64 | |
| import cloudservers | |
| import cloudlb | |
| import urllib2 | |
| #import paramiko | |
| from time import sleep |
| $('a.reveal').click(function(event) { | |
| event.preventDefault(); | |
| var $div = $('<div>').addClass('reveal-modal').appendTo('body'), | |
| $this = $(this); | |
| $.get($this.attr('href'), function(data) { | |
| return $div.empty().html(data).append('<a class="close-reveal-modal">×</a>').reveal(); | |
| }); | |
| }); |
| // Cross-browser object.watch and object.unwatch | |
| // Requires Mootools 1.4 or greater | |
| // object.watch | |
| (function(){ | |
| if (!Object.prototype.watch) { | |
| Object.implement('watch',function(prop,handler){ | |
| var oldval = this[prop], newval = oldval, | |
| getter = function () { | |
| return newval; |