Skip to content

Instantly share code, notes, and snippets.

View ashlineldridge's full-sized avatar

Ashlin Eldridge ashlineldridge

  • Melbourne, Australia
View GitHub Profile
@ashlineldridge
ashlineldridge / upgrade.el
Created January 3, 2024 21:05
Upgrade seq and transient from built-in versions
;; Magit requires a newer version of the seq package than 29.1 provides
;; (different syntax as seq is built-in). This can be removed on upgrade to 30.
;; See: https://github.com/progfolio/elpaca/issues/216#issuecomment-1869934462.
(use-package seq
:elpaca `(seq :build ,(my/elpaca-seq-build-steps))
:preface
(defun my/elpaca-unload-seq (e)
(and (featurep 'seq) (unload-feature 'seq t))
(elpaca--continue-build e))
@ashlineldridge
ashlineldridge / upsert-ecr-repository.sh
Created October 8, 2021 02:59
Create an ECR repository with policy if it does not exist
#!/usr/bin/env bash
set -euo pipefail
usage() {
cat << EOF
Usage: $(basename "${0}") REPOSITORY_URI
Upserts the specified ECR repository to ensure that it exists. The REPOSITORY_URI
argument must have the following form:
@ashlineldridge
ashlineldridge / datadog_monitoring.org
Last active August 22, 2021 23:55
Datadog Monitoring

Datadog Monitoring

Note

@ashlineldridge
ashlineldridge / init.el
Created May 15, 2021 20:05
Force straight.el to follow XDG conventions
(defvar my/xdg-data-dir "~/.local/share")
;; Bootstrap straight.el. See https://github.com/raxod502/straight.el for instructions. Straight's
;; standard installation method has been modified to force it to store it's files under the XDG data directory.
(defvar bootstrap-version)
(let* ((user-emacs-directory (concat my/xdg-data-dir "/emacs"))
(bootstrap-file (concat user-emacs-directory "/straight/repos/straight.el/bootstrap.el"))
(bootstrap-version 5))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
@ashlineldridge
ashlineldridge / alert.sh
Created November 10, 2020 01:54 — forked from cherti/alert.sh
send a dummy alert to prometheus-alertmanager
#!/bin/bash
name=$RANDOM
url='http://localhost:9093/api/v1/alerts'
echo "firing up alert $name"
# change url o
curl -XPOST $url -d "[{
\"status\": \"firing\",
@ashlineldridge
ashlineldridge / .bash_profile
Created May 30, 2020 10:42 — forked from jonsuh/.bash_profile
Bash echo in color
# ----------------------------------
# Colors
# ----------------------------------
NOCOLOR='\033[0m'
RED='\033[0;31m'
GREEN='\033[0;32m'
ORANGE='\033[0;33m'
BLUE='\033[0;34m'
PURPLE='\033[0;35m'
CYAN='\033[0;36m'