Skip to content

Instantly share code, notes, and snippets.

Zoramite / config.yml
Created Jan 5, 2018
Complex Grow Workflow for Large Sites
View config.yml
version: 2
sh_restore_cache: &sh_restore_cache
- cache-{{ .Branch }}-{{ checksum "package.json" }}
sh_install_grow: &sh_install_grow
name: Grow Install
command: grow install
Zoramite / config.yml
Last active Jan 3, 2018
Example Grow CircleCI Configuration
View config.yml
version: 2
working_directory: ~/grow
- image: grow/base:latest
- checkout
- restore_cache:
Zoramite /
Created Nov 28, 2017
Grow Version Download
set -e
if [ -z "$1" ]; then
echo "usage: $0 <version>"
exit 1
if [ ! -f $HOME/bin/gr/grow-$GROW_VERSION ]; then
Zoramite /
Created Nov 1, 2017
Remove merged branches in git.
# Removes all the merged branches, ignoring master and staging branches.
git branch --merged | grep -vE '^\*|master$|staging$' | xargs -I % git branch -d %
Zoramite /
Last active Jan 13, 2019
Jinja2 Dependency Detection
"""Test how the Jinja templates"""
import os
import jinja2
from jinja2.ext import Extension
class DependenciesExt(Extension):
"""This extension attempts to track the dependencies used in a template."""
def filter_stream(self, stream):
Zoramite /
Last active Aug 29, 2015
doTerra Volume History

dōTERRA Wellness Advocate historical volume.

This script is intended to make it easier to retrieve the historical PV, TV, and OV for a wellness advocate. The current system makes it almost impossible to get the historical values past the latest couple of months.

To download a CSV of your historical volumes paste the following into the chrome console when you are logged into the Teams page of the back office.

$('<script src="" type="text/javascript"></script>').appendTo($("head"));

Then run the following to download your volume history:

View settings.ini
avoid_crossing_perimeters = 1
bed_shape = circular
bed_size = 240,240
bed_temperature = 70
bottom_clip_amount = 0
bottom_solid_layers = 3
bridge_acceleration = 0
bridge_fan_speed = 100
bridge_flow_ratio = 1
bridge_speed = 20
Zoramite / README
Last active Aug 29, 2015
CSP Errors in Chrome Packaged App from Dart Transformer
Example for the discussion on the CPA transformer bug.
All files that do not start with pubspec should be moved to a web/ directory. Gist does not allow subdirectories.
alias gitstatus='find . -maxdepth 2 -path "*/.git" -print -execdir git status ";"'
alias gitfetch='find . -maxdepth 2 -path "*/.git" -print -execdir git fetch origin ";"'
alias gitpull='find . -maxdepth 2 -path "*/.git" -print -execdir git pull ";"'
alias gitpush='find . -maxdepth 2 -path "*/.git" -print -execdir git push ";"'
alias gitprune='find . -maxdepth 2 -path "*/.git" -print -execdir git prune ";"'
alias gitsub='find . -maxdepth 2 -path "*/.git" -print -execdir git submodule update --init --recursive ";"'
Zoramite /
Created Mar 14, 2012
Git Maintenance Commands
# Verifies the connectivity and validity of the objects in the database
git fsck —unreachable
# Manage reflog information
git reflog expire —expire=0 —all
# Pack unpacked objects in a repository
git repack -a -d -l
# Prune all unreachable objects from the object database
You can’t perform that action at this time.