Skip to content

Instantly share code, notes, and snippets.

@Zoramite
Zoramite / gae_version_cleanup.sh
Last active June 21, 2019 17:26
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 June 24, 2019 19:58
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 June 24, 2019 19:37
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 November 28, 2017 15:47
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 November 1, 2017 20:40
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 July 22, 2019 01:04
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 August 29, 2015 14:22
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:

@Zoramite
Zoramite / settings.ini
Created June 2, 2015 17:35
Kossel Pro
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 August 29, 2015 14:06
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.
@Zoramite
Zoramite / git_aliases.sh
Created March 14, 2012 21:34
Git Bulk Aliases
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 ";"'