Skip to content

Instantly share code, notes, and snippets.

@tomoconnor
tomoconnor / ChatGPT Generated Pasta Bake
Created February 17, 2024 16:27
I told ChatGPT what was in my fridge, and it made me this recipe for an *excellent* pasta bake.
### Ingredients:
- 350g pasta (penne, fusilli, or rigatoni work well)
- 2 tablespoons olive oil
- 1 large red bell pepper, diced
- 1 large green bell pepper, diced
- 1 large onion, finely chopped
- 4 cloves garlic, minced
- Salt and freshly ground black pepper, to taste
- 1 teaspoon Italian seasoning

Keybase proof

I hereby claim:

  • I am tomoconnor on github.
  • I am tomoconnor (https://keybase.io/tomoconnor) on keybase.
  • I have a public key ASASatiZo2250rRQoB7rQwC75XxMXmmOKKDHBC0G331oKAo

To claim this, I am signing this object:

For a number of years now, work has been proceeding in order to bring perfection to the crudely concieved idea of a container
orchestration platform that would not only supply inverse reactive containerisation
for use in multicameral storage consolidation, but would also be capable of sharding cardinal load balancers.
Such an instrument is the kubernetes turboencabulator operator.
Now basically the only new principle involved is that instead of storage being created via the
relative motion of bits and nibbles, it is produced by the modial interaction of multicameral storage instances.
The original instance had a base image with cross-compiled kernels surmounted
with logarithmic metadata integration in such a way that the two processing sidecars
@tomoconnor
tomoconnor / govnotify_email_backend.py
Created March 29, 2020 15:46
Django Email Backend for Gov Notify
"""
Backend for Gov.Notify
"""
from django.core import mail
from django.core.mail.backends.base import BaseEmailBackend
from notifications_python_client.notifications import NotificationsAPIClient
from django.conf import settings
ladies = 8
desired_spiders = 8
required_spider_shoes_per_spider=8
spider_cost = 0.08 // 8 pence each
shoe_cost = 0.00125 // 1/8th of a pence
print("Shoe Shopping")
@tomoconnor
tomoconnor / lightning_anal.py
Created July 24, 2019 11:53
Quick and dirty thing I hacked together for finding lightning in night-time video. It just measures the average brightness of each image of a video (you first rip the video to a sequence of images with ffmpeg), then symlinks the brightest frames into a subdirectory called "brightest".
from PIL import Image, ImageStat
import os
import sys
import shutil
import glob
import argparse
import operator
#!/usr/bin/env python
import RPi.GPIO as GPIO
import time
import requests
import sys
import xmltodict
GPIO.setmode(GPIO.BCM)
GPIO.cleanup()
GPIO.setwarnings(False)
from flask import Flask
from flask import redirect
app = Flask(__name__)
@app.route("/")
def rickroll():
return redirect("https://www.youtube.com/watch?v=dQw4w9WgXcQ")
C:\Documents and Settings/All Users/Application Data/Application Data/Application Data/Application Data/Application Data/Application Data/Application Data/Application Data/Microsoft/OEMOffice14/OStarter/en-us/click2run.msi: Win.Worm.Chir-2576 FOUND
...!(100)MSCAB:VIRTUALSEARCHPROTOCOLHOSTPS.DLL: Win.Worm.Chir-2576 FOUND
C:\Documents and Settings/All Users/Application Data/Application Data/Application Data/Application Data/Application Data/Application Data/Application Data/Microsoft/OEMOffice14/OStarter/en-us/click2run.msi: Win.Worm.Chir-2576 FOUND
...!(277)MSCAB:VIRTUALSEARCHPROTOCOLHOSTPS.DLL: Win.Worm.Chir-2576 FOUND
C:\Documents and Settings/All Users/Application Data/Application Data/Application Data/Application Data/Application Data/Application Data/Microsoft/OEMOffice14/OStarter/en-us/click2run.msi: Win.Worm.Chir-2576 FOUND
...!(277)MSCAB:VIRTUALSEARCHPROTOCOLHOSTPS.DLL: Win.Worm.Chir-2576 FOUND
C:\Documents and Settings/All Users/Application Data/Application Data/Application Data/Application Data/App
Welcome to LiveChat
Lisa Jones
Support Agent
Good
Lisa Jones
4:39 pm
Let me help you get our Black Friday Limited Time Offer!
Visitor