This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """Tests investigating post-HTTP-response bottlenecks in window processing. | |
| When running the reloader, the command hangs after the first HTTP 200 response: | |
| Processing window 2026-03-25T18:00:00+00:00 -> 2026-03-25T19:00:00+00:00 | |
| HTTP Request: GET ... "HTTP/1.1 200 OK" | |
| <hangs here> | |
| Between the HTTP response and the next log message, the following silent | |
| operations execute: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """Tests investigating post-HTTP-response bottlenecks in window processing. | |
| When running the reloader, the command hangs after the first HTTP 200 response: | |
| Processing window 2026-03-25T18:00:00+00:00 -> 2026-03-25T19:00:00+00:00 | |
| HTTP Request: GET ... "HTTP/1.1 200 OK" | |
| <hangs here> | |
| Between the HTTP response and the next log message, the following silent | |
| operations execute: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| import math | |
| import random | |
| import numpy as np | |
| import pyvirtualcam | |
| import cv2 | |
| # Toggle to visually debug sprite sheets on the output stream | |
| _DEBUG_GESTURES = False # gesture diagnostics | |
| _UNMIRROR_DEBUG_TEXT = True # if True, flip debug text region back for readability |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| import math | |
| import numpy as np | |
| import pyvirtualcam | |
| import cv2 | |
| # Use MediaPipe Face Mesh for robust, real-time facial landmarks | |
| try: | |
| import mediapipe as mp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GET /_cat/indices?h=index,store.size&bytes=gb&format=json&s=store.size:desc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "errors" | |
| ) | |
| func find_unique(signal string) (int, error) { | |
| signal_length := len(signal) | |
| unique_length := 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val checkResults = RepoRule.values.map(rule => | |
| (rule.evaluate(basicRepo), rule.violationMessage) | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # MIT No Attribution | |
| # Copyright 2022 Nabil Abdel-Hafeez | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy of this | |
| # software and associated documentation files (the "Software"), to deal in the Software | |
| # without restriction, including without limitation the rights to use, copy, modify, | |
| # merge, publish, distribute, sublicense, and/or sell copies of the Software, and to | |
| # permit persons to whom the Software is furnished to do so. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type LambdaConfig = Record<string, string>; | |
| type ConfigurableHandler = (config: LambdaConfig) => Promise<void>; | |
| const buildLambdaHandler = (handler: ConfigurableHandler, prefix: string) => { | |
| Log.info(`Finding config for: ${prefix}`); | |
| // Include configuration logic to pull from env or wherever | |
| const config: LambdaConfig = { 'foo/bar': 'baz' }; | |
| return () => handler(config); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for AWS_REGION in eu-west-1 us-west-1 ap-southeast-2 ca-central-1 | |
| do | |
| AWS_REGION=$AWS_REGION AWS_PROFILE=frontend aws ssm get-parameter --name "/account/services/artifact.bucket" | jq "." | |
| done |
NewerOlder