Skip to content

Instantly share code, notes, and snippets.

Randy Merrill Zoramite

Block or report user

Report or block Zoramite

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
@Zoramite
Zoramite / gae_version_cleanup.sh
Last active Jun 21, 2019
GAE Version Cleanup
View gae_version_cleanup.sh
#!/bin/bash
while getopts :a:p: opt
do
case $opt in
a)
account="$OPTARG"
;;
p)
project_id="$OPTARG"
@Zoramite
Zoramite / config.yml
Last active Jun 24, 2019
Complex Grow Workflow for Large Sites
View config.yml
version: 2
shortcuts:
restore_cache: &restore_cache
keys:
- &cache_key cache-{{ .Branch }}-{{ checksum "package.json" }}-{{ checksum "package-lock.json" }}
install_grow: &install_grow
name: Grow Install
command: grow install
@Zoramite
Zoramite / config.yml
Last active Jun 24, 2019
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 Jul 22, 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 ";"'
You can’t perform that action at this time.