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.
I hereby claim:
To claim this, I am signing this object:
// 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; |
Verifying my Blockstack ID is secured with the address 17mGoUU32HVtJzHf6ujL4a9NyoThxuGg2U https://explorer.blockstack.org/address/17mGoUU32HVtJzHf6ujL4a9NyoThxuGg2U |
# nginx 1.9.5 | |
# ubuntu trusty 14.04 | |
apt-get update | |
apt-get upgrade | |
apt-get install build-essential mercurial libpcre3 libpcre3-dev libssl-dev | |
wget http://nginx.org/download/nginx-1.9.5.tar.gz | |
tar -xzvf nginx-1.9.5.tar.gz |
<!doctype html> | |
<head> | |
<meta charset="utf-8"> | |
<title>jQuery Sortable</title> | |
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css"> | |
<!-- Optional theme --> | |
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap-theme.min.css"> | |
</head> |
<?php | |
Media::type('csv', 'text/plain', array( | |
'encode' => function($data) { | |
ob_start(); | |
$out = fopen('php://output', 'w'); | |
foreach ($data as $record) { | |
fputcsv($out, $record); | |
} | |
fclose($out); |
<?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']; |
$location = "Mountain View" | |
$country = "US" | |
$state = "CA" | |
$organization = "Google" | |
$unit = "Search" | |
$commonname = "www.example.com" | |
$keyname = "www_example_com" | |
$subject = "/C=${country}/ST=${state}/L=${location}/O=${organization}/OU=${unit}/CN=${commonname}" | |
$createcertificate = "openssl req -new -newkey rsa:2048 -x509 -days 365 -nodes -out ${keyname}.crt -keyout ${keyname}.key -subj \"${subject}\"" |
import os, sys | |
import datetime | |
import base64 | |
import cloudservers | |
import cloudlb | |
import urllib2 | |
#import paramiko | |
from time import sleep |