Skip to content

Instantly share code, notes, and snippets.

William Hollacsek whollacsek

Block or report user

Report or block whollacsek

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@whollacsek
whollacsek / README.md
Last active Oct 2, 2018 — forked from mbleigh/README.md
Automate the deletion of old Firebase Hosting versions.
View README.md

Firebase Hosting Version Cleanup

This is a simple utility script for cleaning up Firebase Hosting versions, leaving a specified number of versions remaining. This is primarily done to conserve storage usage, but may have other uses.

USE AT YOUR OWN RISK. NO WARRANTY IS PROVIDED. THIS SCRIPT DOES DELETE STUFF PERMANENTLY

Usage

node cleanupVersions.js <site_name> <versions_to_keep> [commit]
View next_wget.sh
#!/bin/bash -e
# by @stretchkennedy: https://github.com/zeit/next.js/issues/70#issuecomment-271150845
ADDR=${ADDR:-'http://localhost:3000'}
DEST=${DEST:-'dist'}
PAGES_DIR=${PAGES_DIR:-'pages'}
echo "starting server..."
next build
View keybase.md

Keybase proof

I hereby claim:

  • I am whollacsek on github.
  • I am whollacsek (https://keybase.io/whollacsek) on keybase.
  • I have a public key ASCu6awaNSnqr-IcIdY61TGL9lgKzXCXkK0TGugD_TBitQo

To claim this, I am signing this object:

You can’t perform that action at this time.