This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sync: function (method, model, options) { | |
Backbone.sync.call(method, model, options); | |
} | |
//from http://stackoverflow.com/a/18839219/1377866 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>Single-Column Responsive Email Template</title> | |
<style> | |
@media only screen and (min-device-width: 541px) { | |
.content { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zookeeper: | |
image: "987737556516.dkr.ecr.us-east-1.amazonaws.com/tsgrp/zookeeper" | |
cpu_shares: 100 | |
ports: | |
- "2181:2181" | |
container_name: "zookeeper" | |
hostname: "zookeeper" | |
solr1: | |
image: solr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AL": "Alabama", | |
"AK": "Alaska", | |
"AS": "American Samoa", | |
"AZ": "Arizona", | |
"AR": "Arkansas", | |
"CA": "California", | |
"CO": "Colorado", | |
"CT": "Connecticut", | |
"DE": "Delaware", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# recipes/default.rb | |
# Cookbook Name:: apache_solr | |
# Recipe:: default | |
# | |
# Copyright 2016, Michael Blum | |
# | |
if node['solr']['install_java'] | |
include_recipe 'java_se' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Global Python log configuration settings | |
@author mblum | |
""" | |
from __future__ import division | |
from __future__ import absolute_import | |
from __future__ import print_function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
# config.vm.box = "bento/ubuntu-16.04" | |
config.vm.box = "ubuntu/trusty64" | |
# RabbitMQ ports | |
config.vm.network :forwarded_port, guest: 5672, host: 5672 | |
config.vm.network :forwarded_port, guest: 5673, host: 5673 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export S3_BUCKET= | |
# clean public build dir | |
rm -rf public | |
# rebuild site | |
hugo | |
# destructively sync with S3 bucket | |
# (anything not mirrored on the local filesystem will be deleted) | |
aws s3 sync public/ s3://$S3_BUCKET/ --delete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# expects the lambda function .py file to be in the same directory as this script. | |
# based off of Amazon's official documentation: | |
# http://docs.aws.amazon.com/lambda/latest/dg/with-s3-example-deployment-pkg.html#with-s3-example-deployment-pkg-python | |
# get the lambda function | |
lambda_func_file=$1 | |
lambda_func="${lambda_func_file%.*}" | |
# exit if no file specified | |
[[ -z "$1" ]] && { echo "Lambda function is empty" ; exit 1; } | |
# generate a deployment timestamp |
OlderNewer