Skip to content

Instantly share code, notes, and snippets.

View gzzsound's full-sized avatar

Alessandro Caianiello gzzsound

  • Embedded Insurance
  • London
View GitHub Profile
@gzzsound
gzzsound / run_ecs_task.py
Last active May 23, 2024 05:29
A Python script to run a task on an ECS cluster and check if it has completed. Handy for database migrations
#!/usr/bin/env python3
import logging
import sys
import time
import boto3
import click
logging.basicConfig(
stream=sys.stdout,
// in Cypress commands.js
Cypress.Commands.add('getStripeElement', (selector, value) => {
cy.get('iframe')
.should((iframe) => expect(iframe.contents().find(selector)).to.exist)
.then((iframe) => cy.wrap(iframe.contents().find(selector)))
.within((input) => {
cy.wrap(input).should('not.be.disabled').clear().type(value)
})
})
@gzzsound
gzzsound / now_tv_hg_612_openwrt.md
Last active February 27, 2023 03:08
NOW TV configuration for Openreach HG612 + OpenWRT router

I am hoping to save a few hours for people like me who have a modem + router setup and switched to NOW TV ISP.

Extract Client ID and Vendor Class ID from DHCP handshake

  • Connect to the NOW TV router and select "WANOE only" from advanced > router mode
  • With a computer connected to LAN 2, using Wireshark, collect DHCP Client ID and Vendor Class ID (options 60 and 61) (1)
  • Convert those two values to hexadecimal

Configuration for HG 612