Skip to content

Instantly share code, notes, and snippets.

View data.js
// routes.js
const routes = [
path: '/',
component: Home,
exact: true
path: '/gists',
component: Gists
beanieboi / gist:ad526faf063181f336a2
Last active Sep 13, 2021
Codeship Nginx Config for Heroku
View gist:ad526faf063181f336a2
daemon off;
# Heroku dynos have at least 4 cores.
worker_processes <%= ENV['NGINX_WORKERS'] || 4 %>;
events {
use epoll;
accept_mutex on;
worker_connections 1024;
ngpestelos /
Last active Aug 1, 2022
How to remove unused Docker containers and images

May 8, 2018

I wrote this four years ago, so instead use this command:

$ docker rmi $(docker images -q -f dangling=true)
mhulse / Setting up Google Cloud Storage with CORS for Web
Last active Oct 14, 2020
Setting up CORS on Google Cloud Storage: An unofficial quick start guide to serving web fonts from Google's cloud. (I'm sure a lot of this info could be improved... Please leave comments if you have tips/improvements.)
View Setting up Google Cloud Storage with CORS for Web


Google Cloud Storage

You'll want to login using an official Google account (i.e. if this is for your company, use the comapany Gmail account vs. a personal one.)

When logging in, you might be prompted to verify the account; if so, enter your cell number to get a verification e-mail or phone call.

Once verified, you'll have to agree to the terms of service; do that, and click continue.