Skip to content

Instantly share code, notes, and snippets.

root of project directory: .ebextensions/nginx.conf

files:
    "/etc/nginx/conf.d/proxy.conf" :
        mode: "000755"
        owner: root
        group: root
 content: |
(echo 'module.exports = { files: [';
  # find all files recursively
  find . |
  # exclude junk/system files
  grep -v '.DS_Store$' |
  # remove leading ./ and wrap the rest of the string in quotes, end with comma
  sed -e 's/\.\///g' -e 's/\(.*\)/"\1",/g';
 # close the object and export output to a file
const hoverAnimation = f1.lazyAnimation({
  states: {
    focused: {
      focusedElement: {
        opacity: 1
      },
      otherElements: {
        opacity: 0.5
 }
@cheapsteak
cheapsteak / SassMeister-input.scss
Created October 18, 2015 18:34
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
div {
width: calc(100% - 100px);
}

Swagger RESTful API Documentation Specification

Version 2.0

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

The Swagger specification is licensed under The Apache License, Version 2.0.

Introduction

@cheapsteak
cheapsteak / workflow.md
Last active August 29, 2015 14:25
Workflow with Dploy.io (now DeployBot)

DeployBot:

  • Allows anyone to deploy without giving them server credentials
  • Ease of rollbacks
    image

Method 1: Check in compiled code

  1. Make sure working directory is clean (all changes committed or stashed)
  2. Checkout deploy/(dev|qa|staging|production)
  3. Pull origin
  4. Merge from previous branch