Skip to content

Instantly share code, notes, and snippets.

View padajo's full-sized avatar

Paul Johnston padajo

View GitHub Profile
@padajo
padajo / cup-of-tea-claude-ai.md
Created December 6, 2023 16:49
Chain of needs for a cup of tea in a coffee shop

Using Claude AI to create the basis for Wardley Maps

I've used ChatGPT to create Wardley Maps. In essence you have to give the rules for how to create a Wardley Map.

The easiest way to do this, initially, is to provide it with the basic syntax of owm:

https://onlinewardleymaps.com/

The basic syntax is:

// ==UserScript==
// @name Get Rid Of The Dog
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Get rid of the dog on the bird site
// @author Paul Johnston
// @match https://twitter.com/*
// @match https://*.twitter.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com
// @grant none
@padajo
padajo / day9-main-part1.rs
Last active December 10, 2022 00:14
Advent of Code 2022 - Day 9 - Part 1 - Incomplete solution, and I do not know why it doesn't work - https://adventofcode.com/2022/day/9 - I found an incorrect < or > and it looks like it might work. I needed the visualisation of the entire solution to see it wasn't doing "Down"
use std::collections::HashSet;
use std::fs::File;
use std::io::{self, BufRead};
use std::path::Path;
use std::thread;
fn read_lines<P>(filename: P) -> io::Result<io::Lines<io::BufReader<File>>>
where
P: AsRef<Path>,
{
@padajo
padajo / cognito-oidc-starter-template.yaml
Created October 21, 2022 17:41
A starter template for creating an OpenID Connect (OIDC) identity provider on Amazon Cognito using SAM/CloudFormation. This creates an identity provider and outputs the /.well-known/openid-configuration and /.well-known/jwks.json URLs for you in the Outputs.
AWSTemplateFormatVersion: "2010-09-09"
Description: >-
openid-connect-app
Testing creating an OpenID Identity Provider with Cognito
Transform:
- AWS::Serverless-2016-10-31
Resources:
@padajo
padajo / untick_twitter_ad_settings.js
Last active October 29, 2024 08:14
Basic js to untick all twitter ad settings
/*
* To untick all the "personalised interests" that are used for ad targeting on twitter
* you go to this page:
*
* https://twitter.com/settings/your_twitter_data/twitter_interests
*
* Go to the inspector and run this code and it should untick all the ticked boxes
* in the list. You can change the interval to less than 650ms. You need a delay
* or the twitter API thinks you're trying to overload it.
*

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@padajo
padajo / service-checklist.md
Last active April 25, 2023 13:34 — forked from acolyer/service-checklist.md
Internet Scale Services Checklist

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

An update by Paul Johnston ([email protected]), for a Serverless Architecture scenario. This assumes something akin to AWS Lambda + API Gateway + DynamoDB (c. 2016) Function as a Service (FaaS) solution as the basis for deployment rather than a cloud-based virtual server approach which the original paper was based upon. The FaaS solution implies each function is separately scalable and the database is inherently partitioned (assuming designed/built well).

If you agree/disagree, please fork and share with me on twitter @pauldjohnston.