Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
– The Git website
Choose one of the following options.
/* Lead ingestion behind - Leads waiting to be processed by a campaign */ | |
SELECT cl.campaign_id as campaign_id, count(cl.lead_id) as lead_count FROM campaign_leads cl WHERE (cl.manually_removed = 0) AND (NOT EXISTS (SELECT null FROM campaign_lead_event_log e WHERE (cl.lead_id = e.lead_id) AND (e.campaign_id = cl.campaign_id))) GROUP BY cl.campaign_id LIMIT 100; | |
-- Faster: | |
SELECT cl.campaign_id AS campaign_id, c.name as campaign_name, count(cl.lead_id) AS lead_count, c.is_published AS published | |
FROM campaign_leads cl | |
LEFT JOIN campaigns c | |
ON c.id = cl.campaign_id | |
WHERE (NOT EXISTS ( | |
SELECT null FROM campaign_lead_event_log e | |
WHERE |
{ | |
"Records": [ | |
{ | |
"EventSource":"aws:sns", | |
"EventVersion":"1.0", | |
"EventSubscriptionArn":"arn:aws:sns:us-west-2:xxxx:xxxx", | |
"Sns": { | |
"Type":"Notification", | |
"MessageId":"88B1B251-2E92-4FC3-BFAA-E3BBD0BAB10A", | |
"TopicArn":"arn:aws:sns:us-west-2:881222951025:survey-tool-ses-delivery", |
-- All mautic campaign delays merged. Two queries (the first is important). Takes under 10s. | |
-- Depends on the PR of soft-deleted campaign events. | |
SET @@group_concat_max_len = 10000000000000; | |
SELECT * | |
FROM ( | |
SELECT NULL as campaign_id, | |
NULL as campaign_name, | |
NULL as event_id, | |
NULL as event_name, | |
NULL as lead_count, |
#!/usr/bin/env bash | |
# | |
# Bootstrap script for setting up a new OSX machine | |
# | |
# This should be idempotent so it can be run multiple times. | |
# | |
# Some apps don't have a cask and so still need to be installed by hand. These | |
# include: | |
# | |
# - Xcode (for command line tools) |
<?php | |
use Symfony\Component\HttpKernel\Kernel; | |
class AppKernel extends Kernel | |
{ | |
public static function fromEnvironment() | |
{ | |
$env = getenv('APP_ENVIRONMENT') ?: 'prod'; | |
$debug = filter_var(getenv('APP_DEBUG'), FILTER_VALIDATE_BOOLEAN); |
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
– The Git website
Choose one of the following options.
Based on this template. Release process at FirePress (blog post). Based on Keep a Changelog and this project adheres to Semantic Versioning.
#!/bin/bash | |
# | |
# pre-receive hook for Commit Check | |
# | |
COMPANY_EMAIL="mycorp.org" | |
readonly PROGNAME=$(basename $0) | |
readonly PROGDIR=$(readlink -m $(dirname $0)) |
@echo off | |
setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION | |
::this also support calls that contains a absolute windows path | |
::check of one of the params contain a absolute windows path | |
echo.%* | findstr /r /c:"[a-z]:[\\/]" > nul | |
if %errorlevel% == 1 ( | |
::if not just git with the given parameters | |
call :git %* |
#!/bin/bash | |
# Requires: awscli (http://aws.amazon.com/cli/) | |
# Prints out a list of all security groups and their settings, just for quickly auditing it. | |
# Your AWS credentials | |
#if [ -z ${AWS_ACCESS_KEY_ID} ]; then | |
# export AWS_ACCESS_KEY_ID='***' | |
# export AWS_SECRET_ACCESS_KEY='***' | |
#fi |