| stage "CI" | |
| node { | |
| /**git branch: 'jenkins2-course', | |
| url: 'https://github.com/nmrony/solitaire-systemjs-course.git'*/ | |
| checkout scm | |
| nodejs(nodeJSInstallationName: 'node') { | |
| sh 'npm install --verbose' | |
| stash excludes: 'test-results/**', includes: '**', name: 'everything' | |
| } | |
| } |
| input { | |
| file { | |
| type => "java" | |
| tags => [ "fornax-data-share-eureka" ] | |
| # Logstash insists on absolute paths... | |
| path => "D:/fornax-data-share-runtime/eureka/fornax-data-share-eureka.log" | |
| codec => multiline { | |
| pattern => "^%{YEAR}-%{MONTHNUM}-%{MONTHDAY} %{TIME}.*" | |
| negate => "true" | |
| what => "previous" |
External Resources
- linuxacademy.com (Training)
- Acloud.guru (training)
- Read the top-level Documentation and FAQs for all the major AWS resources (EC2, S3, RDS, Auto Scaling, etc). The answers to the "nit-picky" questions can be found here. It's also helpful to go deeper on VPCs and networking-related concepts.
- Everyone says read the white papers. The ones I read were:
- Security Best Practices https://d0.awsstatic.com/whitepapers/Security/AWS_Security_Best_Practices.pdf
- Cloud Best Practices https://d0.awsstatic.com/whitepapers/AWS_Cloud_Best_Practices.pdf
| { | |
| "AWSTemplateFormatVersion": "2010-09-09", | |
| "Description": "Launch your Facebook applications within minutes. This template will create a Facebook Stack and configure a social file sharing sample application that upload files to Amazon S3 and notifies your friends by posting it on your wall. **WARNING** This template takes advantage of the AWS Free Usage Tier and if you are eligible since it creates one or more Amazon EC2 instances and a Elastic Load balancer. You will be billed for the AWS resources used.", | |
| "Parameters": { | |
| "AppURL": { | |
| "Default": "http://aws-facebook.s3.amazonaws.com/aws-facebook-php-v2.tar.gz", | |
| "Description": "URL of the application to be deployed", | |
| "Type": "String" |
| 'use strict'; | |
| /** | |
| * Follow these steps to configure the webhook in Slack: | |
| * | |
| * 1. Navigate to https://<your-team-domain>.slack.com/services/new | |
| * | |
| * 2. Search for and select "Incoming WebHooks". | |
| * | |
| * 3. Choose the default channel where messages will be sent and click "Add Incoming WebHooks Integration". |
| var page = require('webpage').create(); | |
| page.onConsoleMessage = function (msg) { | |
| console.log('From Page Console: '+msg); | |
| }; | |
| page.onInitialized = function() { | |
| page.evaluate(function () { | |
| "use strict"; | |
| //The Referrer we want to set |
While attempting to explain JavaScript's reduce method on arrays, conceptually, I came up with the following - hopefully it's helpful; happy to tweak it if anyone has suggestions.
JavaScript Arrays have lots of built in methods on their prototype. Some of them mutate - ie, they change the underlying array in-place. Luckily, most of them do not - they instead return an entirely distinct array. Since arrays are conceptually a contiguous list of items, it helps code clarity and maintainability a lot to be able to operate on them in a "functional" way. (I'll also insist on referring to an array as a "list" - although in some languages, List is a native data type, in JS and this post, I'm referring to the concept. Everywhere I use the word "list" you can assume I'm talking about a JS Array) This means, to perform a single operation on the list as a whole ("atomically"), and to return a new list - thus making it much simpler to think about both the old list and the new one, what they contain, and
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |