Skip to content

Instantly share code, notes, and snippets.

@Zoramite
Zoramite / config.yml
Created Jan 5, 2018
Complex Grow Workflow for Large Sites
View config.yml
version: 2
sh_restore_cache: &sh_restore_cache
keys:
- cache-{{ .Branch }}-{{ checksum "package.json" }}
sh_install_grow: &sh_install_grow
name: Grow Install
command: grow install
@Zoramite
Zoramite / config.yml
Last active Jan 3, 2018
Example Grow CircleCI Configuration
View config.yml
version: 2
jobs:
build:
working_directory: ~/grow
docker:
- image: grow/base:latest
steps:
- checkout
- restore_cache:
@Zoramite
Zoramite / download_grow.sh
Created Nov 28, 2017
Grow Version Download
View download_grow.sh
set -e
if [ -z "$1" ]; then
echo "usage: $0 <version>"
exit 1
fi
GROW_VERSION=$1
if [ ! -f $HOME/bin/gr/grow-$GROW_VERSION ]; then
@Zoramite
Zoramite / cleanup_branches.sh
Created Nov 1, 2017
Remove merged branches in git.
View cleanup_branches.sh
# Removes all the merged branches, ignoring master and staging branches.
git branch --merged | grep -vE '^\*|master$|staging$' | xargs -I % git branch -d %
@Zoramite
Zoramite / jinja_deps.py
Last active Jan 13, 2019
Jinja2 Dependency Detection
View jinja_deps.py
"""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
Zoramite / readme.md
Last active Aug 29, 2015
doTerra Volume History
View readme.md

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="https://rawgit.com/Zoramite/52a19050a6753b5fb492/raw/volume.js" 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
Zoramite / README
Last active Aug 29, 2015
CSP Errors in Chrome Packaged App from Dart Transformer
View README
Example for the discussion on the CPA transformer bug.
https://groups.google.com/a/dartlang.org/d/topic/web/MvEeAN4cJLM/discussion
All files that do not start with pubspec should be moved to a web/ directory. Gist does not allow subdirectories.
View git_aliases.sh
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
Zoramite / maintenance.sh
Created Mar 14, 2012
Git Maintenance Commands
View maintenance.sh
# 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.