Skip to content

Instantly share code, notes, and snippets.

View d1rtym0nk3y's full-sized avatar

Chris Blackwell d1rtym0nk3y

View GitHub Profile
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="magepye" basedir="." default="main">
<property file="tests/properties/${BUILD_HOST}.properties" />
<property file="tests/properties/default.properties" />
<taskdef name="mxunittask" classname="org.mxunit.ant.MXUnitAntTask" classpath="${test.mxunitdir}/ant/lib/mxunit-ant.jar" />
<taskdef resource="net/sf/antcontrib/antlib.xml">
<classpath>
<pathelement location="tests/ant-contrib-1.0b3.jar"/>
<cfscript>
t = 'http://google.co.uk';
c = 100;
//warmup
javaGet(t);
cfmlGet(t);
benchmark('java', function() {
<cfscript>
dStart = now().add(1, 'month').startOf('month');
dEnd = dStart.clone().endOf('month');
</cfscript>

Keybase proof

I hereby claim:

  • I am d1rtym0nk3y on github.
  • I am d1rtym0nk3y (https://keybase.io/d1rtym0nk3y) on keybase.
  • I have a public key ASDH7TScU9DQwelp74qNoQpR--qkBuWC84UKUQDQKSzKXwo

To claim this, I am signing this object:

@d1rtym0nk3y
d1rtym0nk3y / find_and_tag.sh
Created March 30, 2023 11:48
Find an image in aws ecr by image tag prefix and add new image tag
#!/usr/bin/env bash
set -e
REPO_TO_SEARCH="$1"
TAG_TO_FIND="$2"
NEW_TAG="$3"
FOUND_TAG=$(
aws ecr list-images \
--repository-name "$REPO_TO_SEARCH" \
#!/bin/bash
export GH_PAGER=""
# Check if 4 arguments are passed
if [ "$#" -ne 4 ]; then
echo "Usage: $0 <organisation> <team> <repo pattern> <permission>"
exit 1
fi