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
FROM node:16-alpine | |
WORKDIR /app | |
COPY ["package.json", "package-lock.json*", "./"] | |
RUN npm install | |
COPY . . | |
CMD ["npm", "start"] |
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
# WordPress build with custom theme as repo | |
image: atlassian/default-image:2 | |
pipelines: | |
default: | |
- parallel: | |
- step: | |
name: 'Build WordPress' | |
script: | |
- echo "Build wordpress" |
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 | |
FILE="test.csv" | |
if test -f "/path/to/$FILE"; then | |
aws s3 cp $FILE s3://my-aws-bucket-arn/ | |
fi |
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
<html> | |
<head></head> | |
<script type="text/javascript"> | |
console.log("start"); | |
let myFirstPromise = new Promise((resolve, reject) => { | |
// We call resolve(...) when what we were doing asynchronously was successful, and reject(...) when it failed. | |
// In this example, we use setTimeout(...) to simulate async code. | |
// In reality, you will probably be using something like XHR or an HTML5 API. | |
setTimeout( function() { |
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
{ | |
"pbs_content_id":"cf7d189c-6a9d-4310-97b6-7918dc5afe66", | |
"ordinal":33, | |
"title":"Season 33", | |
"url":"https:\/\/media.services.pbs.org\/api\/v1\/seasons\/cf7d189c-6a9d-4310-97b6-7918dc5afe66\/episodes\/", | |
"episodes":[ | |
{ | |
"pbs_content_id":"a746f6af-6532-40a8-80ea-59dca3a037fd", | |
"pbs_title":"Ra\u00fal Juli\u00e1: The World\u2019s a Stage", | |
"pbs_slug":"raul-julia-worlds-stage-coi2cx", |
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 | |
include(__DIR__.'test_secrets.php'); | |
$test_arr = [ | |
"FOO","BAR" | |
]; | |
$_ENV['MM_K']=$secrets->key; | |
$_ENV['MM_S']=$secrets->secret; | |
// the stand out difference |
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
{ | |
"id":"0001", | |
"type":"donut", | |
"name":"Cake", | |
"ppu":0.55, | |
"batters":{ | |
"batter":[ | |
{ | |
"id":"1001", | |
"type":"Regular" |
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 | |
# this is the first script to execute which performs | |
# checks that everything is installed and operating as expected | |
$INSTALLED="/var/git/WordPress" | |
$DIRECTORY="/var/git/" | |
# install aws command line utility | |
apt install -y awscli |
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
FROM nginx | |
# Define mountable directories. | |
VOLUME ["/etc/nginx/sites-enabled", "/etc/nginx/certs", "/etc/nginx/conf.d", "/var/log/nginx", "/var/www/html"] | |
# pass config to docker here | |
# copy existing app code | |
RUN mkdir /app | |
RUN mkdir /nginx-conf |
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
FROM ubuntu:18.04 | |
# Install Nginx. | |
RUN \ | |
apt-get update && \ | |
apt upgrade -y && \ | |
apt-get install -y nginx php7.2-fpm php7.2-mysql && \ | |
rm -rf /var/lib/apt/lists/* && \ | |
echo "\ndaemon off;" >> /etc/nginx/nginx.conf && \ | |
chown -R www-data:www-data /var/lib/nginx |