nmon is an excellent performance monitor for Linux systems.
Since Amazon Linux AMI is compatible with RHEL5, I've downloaded a binary RPM from:
| require "net/https" | |
| url = URI.parse("https://api.pushover.net/1/messages") | |
| req = Net::HTTP::Post.new(url.path) | |
| req.set_form_data({ | |
| :token => "application_api_key", #replace with your api key | |
| :user => "the_user_key", #replace with your user key | |
| :message => "Torrent finished: "+ARGV[0], | |
| }) | |
| res = Net::HTTP.new(url.host, url.port) |
| var compiled, exFunc; | |
| exFunc = (function() { | |
| function exFunc() {} | |
| constructor(function(path) { | |
| this.url = path.replace(/[]/g, '/'); | |
| this.index = path; | |
| if (path === home) { | |
| this.url = ''; |
nmon is an excellent performance monitor for Linux systems.
Since Amazon Linux AMI is compatible with RHEL5, I've downloaded a binary RPM from:
| 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.
| <?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, |
| { | |
| "AWSTemplateFormatVersion": "2010-09-09", | |
| "Resources": { | |
| "Topic": { | |
| "Type": "AWS::SNS::Topic", | |
| "Properties": { | |
| } | |
| }, | |
| "Queue": { | |
| "Type": "AWS::SQS::Queue", |
| packer build -machine-readable packer.json | tee build.log | |
| grep 'artifact,0,id' build.log | cut -d, -f6 | cut -d: -f2 |
| #!/bin/bash | |
| # | |
| # The MIT License (MIT) | |
| # | |
| # Copyright (c) 2013 Mathias Leppich <[email protected]> | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| $EC2SettingsFile="C:\\Program Files\\Amazon\\Ec2ConfigService\\Settings\\BundleConfig.xml" | |
| $xml = [xml](get-content $EC2SettingsFile) | |
| $xmlElement = $xml.get_DocumentElement() | |
| foreach ($element in $xmlElement.Property) | |
| { | |
| if ($element.Name -eq "AutoSysprep") | |
| { | |
| $element.Value="Yes" | |
| } |