NDJSON is a convenient format for storing or streaming structured data that may be processed one record at a time.
- Each line is a valid JSON value
- Line separator is ‘\n’
cat test.json | jq -c '.[]' > testNDJSON.json
| #!/bin/bash | |
| set -u | |
| set -e | |
| set -o pipefail | |
| export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | |
| cat <<'EOF' > /etc/modprobe.d/blacklist-ipv6.conf |
| <?php | |
| Log::info("something really interesting happened", ['extra' => 'information', 'about' => 'anything' ]); |
| <?php | |
| //Simple Ajax Login Form | |
| //Source: http://natko.com/wordpress-ajax-login-without-a-plugin-the-right-way/ | |
| ?> | |
| //html | |
| <form id="login" action="login" method="post"> | |
| <h1>Site Login</h1> | |
| <p class="status"></p> | |
| <label for="username">Username</label> |
NDJSON is a convenient format for storing or streaming structured data that may be processed one record at a time.
cat test.json | jq -c '.[]' > testNDJSON.json
| #!/bin/bash | |
| web_service='nginx' | |
| config_file="/usr/local/etc/le-renew-webroot.ini" | |
| le_path='/opt/letsencrypt' | |
| exp_limit=30; | |
| if [ ! -f $config_file ]; then | |
| echo "[ERROR] config file does not exist: $config_file" |
| Elastic Load Balancer, CloudFront and Let's Encrypt |
| # ignore everything in the root except the "wp-content" directory. | |
| !wp-content/ | |
| # ignore everything in the "wp-content" directory, except: | |
| # "mu-plugins", "plugins", "themes" directory | |
| wp-content/* | |
| !wp-content/mu-plugins/ | |
| !wp-content/plugins/ | |
| !wp-content/themes/ |
| 'use strict'; | |
| console.log('Loading function'); | |
| const SSH = require('simple-ssh'); | |
| const FS = require('fs'); | |
| const AWS = require('aws-sdk'); | |
| const S3 = new AWS.S3({httpOptions: {timeout: 2000}}); | |
| const Deploy = require('Deploy'); | |
| let deploy = new Deploy(S3,SSH,FS); |
| class Deploy { | |
| constructor(S3, SSH, FS) { | |
| this.s3 = S3; | |
| this.SSH = SSH; | |
| this.fs = FS; | |
| this.msgString = null; | |
| this.zip_extract_path = '/home/golfmds/deploy/thriv-golfnow'; | |
| this.deploy_base_path = '/home/golfmds/thriv-golfnow'; | |
| this.deploy_base_path_suffix = '/view-applet_golfnow'; | |
| this.envs = { |
| <?php | |
| /* | |
| Plugin Name: Gravity Forms Encryptorator | |
| Plugin URI: https://github.com/humanmade/Gravity-Forms-Encryptorator | |
| Description: Encrypt all Gravity Forms data on the way into the database using openssl public encryption, data can only be decrypted with the associated private key. | |
| Author: Human Made Limited | |
| Version: 1.0 Alpha | |
| Author URI: http://www.hmn.md/ | |
| */ |