Skip to content

Instantly share code, notes, and snippets.

View davecap's full-sized avatar
😇
hello!

David Caplan davecap

😇
hello!
View GitHub Profile
@davecap
davecap / 99stop_datadog.sh
Created April 24, 2014 02:21
.ebextensions/datadog/hooks/99stop_datadog.sh
#!/bin/bash
# .ebextensions/datadog/hooks/99stop_datadog.sh
if [ -e /etc/init.d/datadog-agent ]; then
/etc/init.d/datadog-agent stop
fi
@davecap
davecap / 99start_datadog.sh
Created April 24, 2014 02:21
.ebextensions/datadog/hooks/99start_datadog.sh
#!/bin/bash
# .ebextensions/datadog/hooks/99start_datadog.sh
if [ -e /etc/init.d/datadog-agent ]; then
/etc/init.d/datadog-agent start
fi
@davecap
davecap / datadog.repo
Last active August 29, 2015 14:00
.ebextensions/datadog/datadog.repo
[datadog]
name = Datadog, Inc.
baseurl = http://yum.datadoghq.com/rpm/x86_64/
enabled=1
gpgcheck=0
@davecap
davecap / 99datadog.config
Created April 24, 2014 02:20
.ebextensions/99datadog.config
# .ebextensions/99datadog.config
container_commands:
01chmod:
command: "chmod +x .ebextensions/datadog/hooks/*"
02mkdir_appdeploy_post:
test: '[ ! -d /opt/elasticbeanstalk/hooks/appdeploy/post ]'
command: "mkdir /opt/elasticbeanstalk/hooks/appdeploy/post"
02mkdir_configdeploy_post:
test: '[ ! -d /opt/elasticbeanstalk/hooks/configdeploy/post ]'
command: "mkdir /opt/elasticbeanstalk/hooks/configdeploy/post"
@davecap
davecap / collections.liquid.html
Last active March 19, 2024 13:08
"Infinite" scrolling in Shopify collections
{% paginate collection.products by 20 %}
<!-- the top of your collections.liquid -->
<!-- START PRODUCTS -->
{% for product in collection.products %}
<!-- START PRODUCT {{ forloop.index | plus:paginate.current_offset }} -->
<div class="product" id="product-{{ forloop.index | plus:paginate.current_offset }}">
{% include 'product' with product %}
</div>
<!-- END PRODUCT {{ forloop.index | plus:paginate.current_offset }} -->