SSH into your EC2 instance. Run the following:
$ sudo yum install gcc This may return an "already installed" message. That's OK.
$ wget http://download.redis.io/redis-stable.tar.gz && tar xvzf redis-stable.tar.gz && cd redis-stable && make
| <?php | |
| /** | |
| * WordPress Query Comprehensive Reference | |
| * Compiled by luetkemj - luetkemj.com | |
| * | |
| * CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
| * Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
| */ | |
| $args = array( |
| function wp_api_encode_acf($data,$post,$context){ | |
| $data['meta'] = array_merge($data['meta'],get_fields($post['ID'])); | |
| return $data; | |
| } | |
| if( function_exists('get_fields') ){ | |
| add_filter('json_prepare_post', 'wp_api_encode_acf', 10, 3); | |
| } |
| function wp_api_encode_acf($data,$post,$context){ | |
| $data['meta'] = array_merge($data['meta'],get_fields($post['ID'])); | |
| return $data; | |
| } | |
| if( function_exists('get_fields') ){ | |
| add_filter('json_prepare_post', 'wp_api_encode_acf', 10, 3); | |
| } |
| function getWatchers(root) { | |
| root = angular.element(root || document.documentElement); | |
| var watcherCount = 0; | |
| function getElemWatchers(element) { | |
| var isolateWatchers = getWatchersFromScope(element.data().$isolateScope); | |
| var scopeWatchers = getWatchersFromScope(element.data().$scope); | |
| var watchers = scopeWatchers.concat(isolateWatchers); | |
| angular.forEach(element.children(), function (childElement) { | |
| watchers = watchers.concat(getElemWatchers(angular.element(childElement))); |
| /** | |
| * An AngularJS directive for Dropzone.js, http://www.dropzonejs.com/ | |
| * | |
| * Usage: | |
| * | |
| * <div ng-app="app" ng-controller="SomeCtrl"> | |
| * <button dropzone="dropzoneConfig"> | |
| * Drag and drop files here or click to upload | |
| * </button> | |
| * </div> |
| input { | |
| lumberjack { | |
| # The port to listen on | |
| port => 5043 | |
| # The paths to your ssl cert and key | |
| ssl_certificate => "/etc/pki/tls/certs/logstash-forwarder/logstash-forwarder.crt" | |
| ssl_key => "/etc/pki/tls/private/logstash-forwarder/logstash-forwarder.key" | |
| # default type, but this will already be set by logstash-forwarder anyways |
| [ | |
| "😁", | |
| "😂", | |
| "😃", | |
| "😄", | |
| "😅", | |
| "😆", | |
| "😉", | |
| "😊", | |
| "😋", |
| { | |
| "initial:before": { | |
| "loopback#context": { | |
| "params": { "enableHttpContext": true } | |
| }, | |
| "loopback#token": {}, | |
| "loopback#favicon": { | |
| "params": "$!../client/images/govright-favicon.ico" | |
| }, | |
| "./middleware/logging": {}, |
| # Procedure is for Ubuntu 14.04 LTS. | |
| # Using these guides: | |
| # http://datacenteroverlords.com/2012/03/01/creating-your-own-ssl-certificate-authority/ | |
| # https://turboflash.wordpress.com/2009/06/23/curl-adding-installing-trusting-new-self-signed-certificate/ | |
| # https://jamielinux.com/articles/2013/08/act-as-your-own-certificate-authority/ | |
| # Generate the root (GIVE IT A PASSWORD IF YOU'RE NOT AUTOMATING SIGNING!): | |
| openssl genrsa -aes256 -out ca.key 2048 | |
| openssl req -new -x509 -days 7300 -key ca.key -sha256 -extensions v3_ca -out ca.crt |
SSH into your EC2 instance. Run the following:
$ sudo yum install gcc This may return an "already installed" message. That's OK.
$ wget http://download.redis.io/redis-stable.tar.gz && tar xvzf redis-stable.tar.gz && cd redis-stable && make