Skip to content

Instantly share code, notes, and snippets.

View sharkySharks's full-sized avatar
:octocat:
🦈

Kayden Althen sharkySharks

:octocat:
🦈
View GitHub Profile
@sharkySharks
sharkySharks / docker-compose example
Created March 5, 2019 17:42
docker-compose with https and volume mount - supports hot reloading
version: '3'
services:
nginx-proxy:
image: jwilder/nginx-proxy:alpine
hostname: nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- ./docker/certs:/etc/nginx/certs
@sharkySharks
sharkySharks / Dockerfile example - multi-stage build
Last active August 17, 2021 16:19
docker multi stage build with not-root user permissions set
##############################################################
# This file is intended to be used with ./docker-compose.yml #
##############################################################
FROM node:10.14.1-alpine as build
# working directory
WORKDIR /usr/src/app
# global environment setup : yarn + dependencies needed to support node-gyp
RUN apk --no-cache --virtual add \
@sharkySharks
sharkySharks / Checkout_PRs_Locally.md
Last active October 7, 2015 18:47
General Git Workflow options. One way to keep your work up to date with the group project (upstream/master) by squashing, rebasing, and pushing up your latest work.

To checkout a Pull Request locally, add the following line to your .git/config file under the remote name for which you would like to checkout PRs.

    fetch = +refs/pull/*/head:refs/remotes/upstream/pr/*

No need to delete or alter any other lines in the file, just add it under the remote name.

Example:

  [remote "upstream"]

url = https://github.com/rackerlabs/encore-account-ui.git

/*
MakerSquare Coding Challenge #2
By Kayden Althen
Cookie/ingredient program that allows users to add and subtract values for sugar
and flour ingredients as well as cookies requested and money spent on ingredients.
*/
$(document).ready(function() {
//Inventory kept in .js file to prevent cookie counterfeiting