Skip to content

Instantly share code, notes, and snippets.

View ppalms's full-sized avatar

Patrick Palmer ppalms

View GitHub Profile
@ppalms
ppalms / amplify.yml
Created April 23, 2024 16:24
Amplify Next.js config
version: 1
frontend:
phases:
preBuild:
commands:
- yarn install --frozen-lockfile
build:
commands:
- yarn build
artifacts:
@ppalms
ppalms / deploy_app.sh
Created April 24, 2019 22:08
DigitalOcean docker deploy script
#!/bin/bash
###########################################################################
# Put this on a DigitalOcean droplet (or wherever you're deploying) and
# run chmod +x deploy_app.sh to make the script executable
#
# Execute this script: ./deploy_app.sh jittles/dockerhub-repo-name:$TAG
# Replace dockerhub-repo-name with the name of the Docker Hub repository
# you want to deploy
# Replace $TAG with the actual Build Tag you want to deploy
#
@ppalms
ppalms / web-design-cheat-sheet.md
Last active May 3, 2019 14:00
Web design cheat sheet

Quick and dirty rules for making things that don't look gross

  • Don't use the same color for body and header text (e.g. make headings black, text dark grey)
  • Optimal line length for reading is 65 - 75 characters
  • On smaller screens, make header and body text closer in size
  • When tempted to use lines/borders, first try additional whitespace, variations in background color, or shadow
  • Avoid colored text (it should almost always be black, grey, or white); if you're going for scannability, experiment with colored bullets, icons, and grouping

Keybase proof

I hereby claim:

  • I am ppalms on github.
  • I am jittles (https://keybase.io/jittles) on keybase.
  • I have a public key ASCTL6X_1Y-HTCnZmQVtiDqmFwWvw4mzdu9Yl8LxdD6uSQo

To claim this, I am signing this object: