Skip to content

Instantly share code, notes, and snippets.

View ebridges's full-sized avatar
🛠️
Fixing things

Edward Q. Bridges ebridges

🛠️
Fixing things
View GitHub Profile
@ebridges
ebridges / .gitignore
Last active December 12, 2023 14:47
Generates cohort test cases
venv
cohort-cases
@ebridges
ebridges / priorities-list.md
Created October 29, 2022 13:13
Obsidian - Priorities List

Priorities

First

TASK FROM "work/aetion"
WHERE contains(tags, "#todo/11") and !completed
GROUP BY file.link
SORT file.ctime DESC
@ebridges
ebridges / meeting-notes-template.md
Created October 29, 2022 13:12
Obsidian - Meeting Notes Template

Topic

Agenda

  • <% tp.file.cursor() %>

Attendees

@ebridges
ebridges / daily-note-template.md
Created October 29, 2022 13:11
Obsidian - Daily Note Template
creation date
<% tp.file.creation_date() %>

← [[<% tp.date.now('YYYY-MM-DD-ddd', -1) %>]] | [[<% tp.date.now('YYYY-MM-DD-ddd', 1) %>]] →

<% tp.date.now('YYYY-MM-DD-ddd') %>

📝 Notes

#!/bin/sh
STREAM=$(aws --output=text logs describe-log-streams --log-group-name /aws/lambda/elektrum-development | tail -1 | awk '{print $7}')
aws --output=text logs get-log-events --log-group-name /aws/lambda/elektrum-development --log-stream-name ${STREAM}
@ebridges
ebridges / edit-commits
Created February 11, 2013 19:14
git edit commit author
$ git rebase f034498fbcf4e728d022e1511d630191f2f5ee67^ --interactive
# mark each commit that needs updating with "edit" or "e"
Then, for each commit:
$ git commit --amend --reuse-message=HEAD --author="Edward Bridges <ebridges@squarespace.com>"
$ git rebase --continue
@ebridges
ebridges / s3-playbook.yml
Last active June 7, 2021 16:30
Ansible playbook to generate one or more S3 buckets with permissions useful for rclone.
---
## Usage:
## ansible-playbook s3-playbook.yml
- hosts: localhost
connection: local
gather_facts: False
vars:
buckets:
'<BucketName>' : '<BucketARN>'
'com.example.bucket' : 'arn:aws:s3:::com.example.bucket'
@ebridges
ebridges / JarList.java
Created April 25, 2013 02:30
Given a jar file, extract out the `pom.properties` and create a java.util.Properties object from it.
import java.io.*;
import java.util.*;
import java.util.jar.*;
public class JarList
{
public static void main (String args[]) throws IOException
{
if (args.length != 1)
{
@ebridges
ebridges / hide-quantity-block.css
Created November 17, 2018 13:30
Hides the quantity block on Family Portrait Day website.
.is-first-product-block>.productDetails>.product-quantity-input {
display: none;
visibility: hidden;
}
@ebridges
ebridges / .jhbuildrc-custom
Created November 11, 2017 03:00
jhbuild customizations
# -*- mode: python -*-
#Uncomment this if you have a completed build and only want to rebuild
#updated modules instead of everything:
#
#build_policy = "updated-deps"
#Select one of these, or use a different one: Do keep the directories
#separate for stable and unstable as they have different
#dependencies. You can use 2.3.x for svn builds.