Servers - census
| id | name |
|---|---|
| 1 | Connery |
| 10 | Miller |
| 13 | Cobalt |
| 17 | Emerald |
| 25 | Briggs |
| id | name |
|---|---|
| 1 | Connery |
| 10 | Miller |
| 13 | Cobalt |
| 17 | Emerald |
| 25 | Briggs |
| jQuery.fn.getPath = function () { | |
| if (this.length != 1) throw 'Requires one element.'; | |
| var path, node = this; | |
| while (node.length) { | |
| var realNode = node[0], name = realNode.localName; | |
| if (!name) break; | |
| name = name.toLowerCase(); | |
| var parent = node.parent(); |
| #!/bin/sh | |
| LOGFILE=/tmp/bluehost_backup.log | |
| EXPECTED_ARGUMENTS=3 | |
| exec 6>&1 # Link file descriptor #6 with the standard output | |
| exec > $LOGFILE # stdout sent to $LOGFILE | |
| #Check script arguments | |
| if [ $# -ne $EXPECTED_ARGUMENTS ] | |
| then | |
| echo "No arguments supplied." |
| # this file blocks ip requests - only request with Host are supported | |
| server { | |
| listen 80 default_server; | |
| listen 443 default_server ssl; | |
| server_name _; | |
| return 444; | |
| } |
| <?php | |
| $output = ''; | |
| SSH::run($commands, function($line) use (&$output) | |
| { | |
| $output .= $line; | |
| }); | |
| echo $output; |
A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
| # Installation | |
| curl -o laravel.phar http://laravel.com/laravel.phar | |
| chmod 755 laravel.phar | |
| mv laravel.phar /usr/local/bin/laravel | |
| # Usage | |
| laravel new <application_name> |
| Vagrant.configure("2") do |config| | |
| ip_address = "192.168.56.1" | |
| config.vm.box = "ubuntu-12.04.2-server-amd64" | |
| config.vm.hostname = "chef-server.local" | |
| config.ssh.timeout = 30 | |
| config.vm.provider :virtualbox do |vbox| | |
| vbox.customize [ "modifyvm", :id, "--memory", 1024 ] |