This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/!/bin/bash | |
# update system | |
yum update -y | |
# install bind-utils | |
sudo yum install bind-utils | |
# Apache | |
yum install nano wget curl vim git httpd -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$sites = [ | |
'http://www.google.com/', | |
'http://www.facebook.com/', | |
'http://www.youtube.com/', | |
'http://www.yahoo.com/', | |
'http://www.live.com/', | |
'http://www.wikipedia.org/', | |
'http://www.baidu.com/', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 2016 MIT licence. Nick Malcolm. | |
// Based on https://gist.github.com/stevebowman/7cff9dd80b227c899728 | |
// Makes a call using Twilio's API. | |
// Expects the following Lambda environment variables: | |
// TWILIO_ACCOUNT_SID - your account ID | |
// TWILIO_AUTH_TOKEN - an auth token generated in the Twilio console e.g. ABCD1234 | |
// TWILIO_FROM_NUMBER - the number you've purchased to make calls from e.g. +14243700000 | |
// We'll call this number |