Install Vagrant and VirtualBox Vagrant Download https://www.vagrantup.com/downloads.html
Virtual Box Download https://www.virtualbox.org/wiki/Downloads
SUCCESS_PHRASES = ['all good', 'works for me', 'keep it coming', 'yeah baby', 'i like it', | |
'you\'re good', 'that\'s it', 'nailed it', 'mmm hmmm', 'sweet', 'keep it up', 'yep'] | |
# ... | |
exec: | |
notify_ok: | |
cmd: -> | |
phrase = SUCCESS_PHRASES[Math.round(Math.random()*(SUCCESS_PHRASES.length-1))] | |
"say -v Vicki \"#{phrase}\"" |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
MEMORY = `sysctl -n hw.memsize`.to_i / 1024 / 1024 / 2 | |
CPUS = `sysctl -n hw.ncpu`.to_i | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
if ENV['VM'] == "virtualbox" |
Install Vagrant and VirtualBox Vagrant Download https://www.vagrantup.com/downloads.html
Virtual Box Download https://www.virtualbox.org/wiki/Downloads
#!/bin/bash | |
usage() { | |
printf "%s\n" "Usage: $0 [-m] [-e] [-o] [-c] [-d]" | |
printf "\t%s\n\t%s\n\t%s\n\t%s\n" \ | |
"-m MySQL only" "-e English only" "-o Output file" \ | |
"-c CSS file to download" "-d Auto-delete time (minutes)" | |
exit 1 | |
} |
/** | |
* Insteon Switch (LOCAL) | |
* | |
* Copyright 2014 patrick@patrickstuart.com | |
* Updated 1/4/15 by goldmichael@gmail.com | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | |
* in compliance with the License. You may obtain a copy of the License at: | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
#!/bin/bash | |
PACKAGE=$(basename "$0") | |
# .----. _ .-. _ _ | |
# `--. ::_;: :.-. :_;:_; | |
# ,','.-.: `'.' .--. .-..-. | |
# .'.'_ : :: . `.' '_.': :: : | |
# :____;:_;:_;:_;`.__.': ::_; | |
# .-. : |
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/xenial64" | |
config.vm.define "ubuntu_minikube" do |ubuntu_minikube| | |
config.vm.network "forwarded_port", | |
guest: 8001, | |
host: 8001, | |
auto_correct: true | |
1) Login to Cloud Key | |
2) Cloud Key ssh: `curl https://get.acme.sh | sh` | |
3) Cloud Key ssh: `acme.sh --upgrade --auto-upgrade --accountemail "myemail@example.com"` | |
4) Cloud Key ssh: Add `cloudkey-renew-hook.sh` file to `/root/.acme.sh` | |
5) Create free CloudFlare account (if not already member) | |
6) Login to CloudFlare | |
7) On CloudFlare: Create a zone for a domain you own (can add a cheap domain with namecheap.com or any number of alternatives) | |
8) On CloudFlare: Create an A record for your Cloud Key; ie: unifi.CHANGE.ME, 192.168.1.10 | |
9) On UniFi Controller: Go to Settings; Click "Controller"; Change "Controller Hostname/IP" to the name entered in step 8. | |
10) On CloudFlare: go to Overview for your zone; click "Get your API key" |
<html> | |
<head> | |
<title>RSS Feed Reader</title> | |
</head> | |
<body> | |
<?php | |
//Feed URLs | |
$feeds = array( | |
"http://maxburstein.com/rss", | |
"http://www.engadget.com/rss.xml", |
Prerequisites:
Software components used: