nmon is an excellent performance monitor for Linux systems.
Since Amazon Linux AMI is compatible with RHEL5, I've downloaded a binary RPM from:
var compiled, exFunc; | |
exFunc = (function() { | |
function exFunc() {} | |
constructor(function(path) { | |
this.url = path.replace(/[]/g, '/'); | |
this.index = path; | |
if (path === home) { | |
this.url = ''; |
function Shuffle(o) { | |
for(var j, x, i = o.length; i; j = parseInt(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x); | |
return o; | |
}; |
nmon is an excellent performance monitor for Linux systems.
Since Amazon Linux AMI is compatible with RHEL5, I've downloaded a binary RPM from:
@-webkit-keyframes move { | |
0%, 100% { | |
background-position: 1000px 0; | |
} | |
50% { | |
background-position: -1000px 0; | |
} | |
} | |
* { |
/* | |
Joseph Chiocchi | |
Word Flash | |
Description: | |
Takes some text, and flashes one word at a time to the screen. | |
*/ | |
var text = $("#ccontent").text(); |
console.log('Loading function'); | |
const https = require('https'); | |
const url = require('url'); | |
// to get the slack hook url, go into slack admin and create a new "Incoming Webhook" integration | |
const slack_url = 'https://hooks.slack.com/services/...'; | |
const slack_req_opts = url.parse(slack_url); | |
slack_req_opts.method = 'POST'; | |
slack_req_opts.headers = {'Content-Type': 'application/json'}; |
This tutorial walks through setting up AWS infrastructure for WordPress, starting at creating an AWS account. We'll manually provision a single EC2 instance (i.e an AWS virtual machine) to run WordPress using Nginx, PHP-FPM, and MySQL.
This tutorial assumes you're relatively comfortable on the command line and editing system configuration files. It is intended for folks who want a high-level of control and understanding of their infrastructure. It will take about half an hour if you don't Google away at some point.
If you experience any difficulties or have any feedback, leave a comment. ๐ฌ
Coming soon: I'll write another tutorial on a high availability setup for WordPress on AWS, including load-balancing multiple application servers in an auto-scaling group and utilizing RDS.
{ | |
"Records": [ | |
{ | |
"EventVersion": "1.0", | |
"EventSubscriptionArn": "arn:aws:sns:EXAMPLE", | |
"EventSource": "aws:sns", | |
"Sns": { | |
"SignatureVersion": "1", | |
"Timestamp": "1970-01-01T00:00:00.000Z", | |
"Signature": "EXAMPLE", |
<?php | |
define('PUSHOVER_API_KEY', '<API KEY>'); //Replace with your API Key | |
$userKey = (isset($_GET['u']) ? $_GET['u'] : '<DEFAULT USER ID>'); //Default user or group | |
$response = json_decode(file_get_contents('php://input'), true); | |
switch ($response["Type"]) { | |
case "SubscriptionConfirmation": | |
//For this use case, we will just automatically subscribe, we could forward this via email, |
function isUrlValid(url) { | |
return /^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF9 |