Skip to content

Instantly share code, notes, and snippets.

@Cayan
Cayan / cm-template.html
Created August 24, 2026 19:14
AccessFuel ELT — Campaign Monitor base template
<!DOCTYPE html>
<html><head><meta charset="UTF-8"><title>AccessFuel base template</title></head>
<body style="margin:0;padding:0;background-color:#f4f4f5;">
<table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#f4f4f5">
<tr><td align="center" style="padding-top:24px;padding-bottom:24px;">
<table width="600" cellpadding="0" cellspacing="0" border="0" bgcolor="#ffffff">
<tr><td bgcolor="#111827" style="padding:20px 28px;">
<singleline label="Header"><span style="font-family:Arial,Helvetica,sans-serif;font-size:18px;line-height:24px;color:#ffffff;">AccessFuel</span></singleline>
</td></tr>
<repeater>
@Cayan
Cayan / cm-campaign.html
Created August 24, 2026 19:12
AccessFuel ELT — Campaign Monitor test campaign HTML
<!DOCTYPE html>
<html><head><meta charset="UTF-8"><title>AccessFuel ELT pipeline test</title></head>
<body style="margin:0;padding:0;background-color:#f4f4f5;">
<table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#f4f4f5">
<tr><td align="center" style="padding-top:24px;padding-bottom:24px;">
<table width="600" cellpadding="0" cellspacing="0" border="0" bgcolor="#ffffff">
<tr><td bgcolor="#111827" style="padding-top:20px;padding-bottom:20px;padding-left:28px;padding-right:28px;">
<span style="font-family:Arial,Helvetica,sans-serif;font-size:18px;line-height:24px;color:#ffffff;">AccessFuel</span>
</td></tr>
<tr><td style="padding-top:28px;padding-bottom:8px;padding-left:28px;padding-right:28px;">
@Cayan
Cayan / debugger.sh
Created April 13, 2022 12:57
Executes a program multiple times and reports on exit codes
#!/bin/bash
TOTAL=100
printf "Starting the script\n"
for i in `seq 1 $TOTAL`; do
trap 'printf "\nExited!"; break;' SIGINT SIGTERM
printf '\r%i / %i' $i $TOTAL
$@ >> debugger.log 2>&1
@Cayan
Cayan / ecs-delete-task-definition.sh
Created June 27, 2018 13:20
Script to delete all ECS task definitions according to a pattern
# run `aws ecs list-task-definitions --status active` to list all available task definitions
aws ecs list-task-definitions --status active | grep REPLACE_WITH_THE_NAME_OF_DEFINITION |
awk '{print substr($0, 1, length($0)-1)}' | xargs -I{} aws ecs deregister-task-definition --task-definition {}
JS: Angular is running in the development mode. Call enableProdMode() to enable the production mode.
JS: changes: 0
JS: === dump(): dumping members ===
JS: {
JS: "item": {
JS: "currentValue": {
JS: "id": 1,
JS: "name": "Ter Stegen",
JS: "role": "Goalkeeper"
JS: },
JS: Angular is running in the development mode. Call enableProdMode() to enable the production mode.
JS: changes: 0
JS: === dump(): dumping members ===
JS: {
JS: "item": {
JS: "currentValue": {
JS: "id": 1,
JS: "name": "Ter Stegen",
JS: "role": "Goalkeeper"
JS: },
JS: Angular is running in the development mode. Call enableProdMode() to enable the production mode.
JS: changes: 0
JS: === dump(): dumping members ===
JS: {
JS: "item": {
JS: "currentValue": {
JS: "id": 1,
JS: "name": "Ter Stegen",
JS: "role": "Goalkeeper"
JS: },
JS: Angular is running in the development mode. Call enableProdMode() to enable the production mode.
JS: changes: 0
JS: === dump(): dumping members ===
JS: {
JS: "item": {
JS: "currentValue": {
JS: "id": 1,
JS: "name": "Ter Stegen",
JS: "role": "Goalkeeper"
JS: },
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
<?php
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class UserCRUDFailureTest extends TestCase
{
use DatabaseMigrations, DatabaseTransactions;
protected $prefix = '';