First, edit your hosts file.
$ sublime /etc/hosts
Add your new host, ie.
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<link rel="stylesheet" href="reset.css" /> | |
<link rel="stylesheet" href="style.css" /> | |
<title>Test</title> | |
</head> | |
<body> |
/* http://meyerweb.com/eric/tools/css/reset/ | |
v2.0 | 20110126 | |
License: none (public domain) | |
*/ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<title>Demo</title> | |
<style type='text/css'> | |
@-webkit-keyframes rotate { | |
from { | |
-webkit-transform: rotate(0deg); |
<?php | |
// Source: https://bitbucket.org/joelbitar/switchctrl/src/5854b847114e/webservice/tellstick.class.php | |
// This is the class that controls the communication with the tellstick | |
class Tellstick { | |
public $number_of_devices; | |
public $devices; | |
// Create object and get the current devices and their statuses |
array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec') |
## Apache: | |
# enable site | |
sudo a2ensite | |
# disable site | |
sudo a2dissite | |
# enable an apache2 module | |
sudo a2enmod |