Skip to content

Instantly share code, notes, and snippets.

View georgerussellpruitt's full-sized avatar

George Russell Pruitt georgerussellpruitt

  • Kentucky Educational Television
  • Kentucky
View GitHub Profile
@georgerussellpruitt
georgerussellpruitt / Dockerfile
Created August 25, 2021 18:44
example nodejs docker setup
FROM node:16-alpine
WORKDIR /app
COPY ["package.json", "package-lock.json*", "./"]
RUN npm install
COPY . .
CMD ["npm", "start"]
# WordPress build with custom theme as repo
image: atlassian/default-image:2
pipelines:
default:
- parallel:
- step:
name: 'Build WordPress'
script:
- echo "Build wordpress"
#!/bin/bash
FILE="test.csv"
if test -f "/path/to/$FILE"; then
aws s3 cp $FILE s3://my-aws-bucket-arn/
fi
<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() {
{
"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",
<?php
include(__DIR__.'test_secrets.php');
$test_arr = [
"FOO","BAR"
];
$_ENV['MM_K']=$secrets->key;
$_ENV['MM_S']=$secrets->secret;
// the stand out difference
{
"id":"0001",
"type":"donut",
"name":"Cake",
"ppu":0.55,
"batters":{
"batter":[
{
"id":"1001",
"type":"Regular"
#!/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
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
@georgerussellpruitt
georgerussellpruitt / Dockerfile.ubuntu
Last active January 4, 2019 16:05
docker ubuntu/nginx base
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