This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "log" | |
| "net/http" | |
| "os" | |
| ) |
This file contains hidden or 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
| // Comma-separated list of recipients. Comment out to not send any emails. | |
| var RECIPIENT_EMAIL = 'YOUR_EMAIL'; | |
| // URL of the default spreadsheet template. This should be a copy of http://goo.gl/pxaZio | |
| var SPREADSHEET_URL = 'SPREADSHEET_URL'; | |
| /** | |
| * This script computes an Ad performance report | |
| * and outputs it to a Google spreadsheet | |
| */ |
This file contains hidden or 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
| <amp-vimeo | |
| data-videoid="27246366" | |
| width="500" | |
| height="281"> | |
| </amp-vimeo> | |
| | |
| <amp-youtube | |
| data-videoid="mGENRKrdoGY" | |
| layout="responsive" | |
| width="480" height="270"> |
This file contains hidden or 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 | |
| $path = str_replace( $_SERVER['DOCUMENT_ROOT'], '', dirname( $_SERVER['SCRIPT_FILENAME'] ) ); | |
| $path_parts = explode( '/', $path ); | |
| while ( count( $path_parts ) > 0 ) { | |
| $path = $_SERVER['DOCUMENT_ROOT'] . implode( '/', $path_parts ) . '/wp-config.php'; | |
| if ( file_exists( $path ) ) { | |
| include( $path ); | |
| break; | |
| } else { | |
| array_pop( $path_parts ); |
This file contains hidden or 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
| :: UPDATE YUM :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
| sudo yum update -y | |
| :: INSTALL WEBSERVER ::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
| sudo yum install httpd24 | |
| sudo service httpd start | |
| sudo chkconfig httpd on | |
| chkconfig --list httpd |
This file contains hidden or 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 | |
| # | |
| # validate nginx config | |
| # | |
| # depends upon a symbolic link from /var/apps/redirector to dist directory | |
| # and a build of nginx which supports real_ip and other extensions | |
| # | |
| # probably best to build a chroot'd tree containing a complete nginx server | |
| # though that's a lot of work to copy in shared libraries, etc |
NewerOlder