Skip to content

Instantly share code, notes, and snippets.

View jrgleason's full-sized avatar

Jackie Gleason jrgleason

View GitHub Profile
<Auth0Provider
// @ts-ignore
domain={domain}
// @ts-ignore
clientId={clientId}
useRefreshTokens={true}
cacheLocation={"localstorage"}
// TODO: Avoid hardcoding these values
advancedOptions={{defaultScope: 'email'}}
jgleason@BigBoy ~/code/eidolon/eidolon-chatbot - (main) $ k describe pod eidolon-eidolon-operator-chart-86d4cf54b4-pcnvk
Name: eidolon-eidolon-operator-chart-86d4cf54b4-pcnvk
Namespace: default
Priority: 0
Service Account: eidolon-eidolon-operator-chart
Node: yoda/10.0.0.58
Start Time: Sun, 25 Aug 2024 19:13:19 -0400
Labels: app.kubernetes.io/instance=eidolon
app.kubernetes.io/name=eidolon-operator-chart
pod-template-hash=86d4cf54b4
@jrgleason
jrgleason / client.py
Created September 4, 2024 16:38
Simple Wyoming Client
import socket
# Function to send request to the Wyoming server
def send_request_to_server(device_id, record_seconds):
server_host = 'localhost'
server_port = 9000
# Establish connection to the server
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client_socket.connect((server_host, server_port))
2024-05-22 09:05:55 2024-05-22 09:05:55.263 WARNING (MainThread) [blinkpy.camera] Could not find thumbnail for camera G8T1-GH02-2215-4U5N.
2024-05-22 09:12:13 2024-05-22 09:12:13.757 ERROR (MainThread) [blinkpy.sync_module] Could not extract manifest ID from response: {'message': 'Manifest stale, please rerequest', 'code': 2102}
2024-05-22 09:12:14 2024-05-22 09:12:14.346 WARNING (MainThread) [blinkpy.camera] Could not find thumbnail for camera G8T1-GH02-2215-4U5N.
2024-05-22 09:17:16 2024-05-22 09:17:16.892 ERROR (MainThread) [blinkpy.auth] Connection error. Endpoint https://rest-u053.immedia-semi.com/network/389200/command/796507931 possibly down or throttled. Error: Server disconnected
2024-05-22 09:17:16 2024-05-22 09:17:16.892 ERROR (MainThread) [homeassistant.components.blink.coordinator] Unexpected error fetching blink data
2024-05-22 09:17:16 Traceback (most recent call last):
2024-05-22 09:17:16 File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 315, in _async_refresh
2
2024-05-22 11:57:07 2024-05-22 11:57:07.875 ERROR (MainThread) [aiohttp.server] Error handling request
2024-05-22 11:57:07 Traceback (most recent call last):
2024-05-22 11:57:07 File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 452, in _handle_request
2024-05-22 11:57:07 resp = await request_handler(request)
2024-05-22 11:57:07 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-22 11:57:07 File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 543, in _handle
2024-05-22 11:57:07 resp = await handler(request)
2024-05-22 11:57:07 ^^^^^^^^^^^^^^^^^^^^^^
2024-05-22 11:57:07 File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 114, in impl
2024-05-22 11:57:07 return await handler(request)
Section "Monitor"
Identifier "Monitor0"
Option "DPMS"
EndSection
Section "Monitor"
Identifier "Monitor1"
Option "DPMS"
EndSection
2024-03-24 13:48:33 17:48:33.358 [main] INFO com.cbusha.be.BackendApplication -- Cassandra is up - executing command
2024-03-24 13:48:34
2024-03-24 13:48:34 . ____ _ __ _ _
2024-03-24 13:48:34 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
2024-03-24 13:48:34 ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
2024-03-24 13:48:34 \\/ ___)| |_)| | | | | || (_| | ) ) ) )
2024-03-24 13:48:34 ' |____| .__|_| |_|_| |_\__, | / / / /
2024-03-24 13:48:34 =========|_|==============|___/=/_/_/_/
2024-03-24 13:48:34 :: Spring Boot :: (v3.2.1)
2024-03-24 13:48:34
@jrgleason
jrgleason / test.ts
Last active July 14, 2023 04:47
StackOverflowHelp Promises
const axios = require("axios");
class Test {
view1: { id: number, name: string } | undefined;
view2: { id: number, name: string } | undefined;
view3: { id: number, name: string } | undefined;
extra_photos: { id: number, name: string }[] | undefined
async downloadFile(id: number, name: string): Promise<File> {
const response = await axios({
@jrgleason
jrgleason / README.md
Created August 27, 2022 15:48 — forked from mrsasha/README.md
Jacoco setup for calculating kotlin test coverage (single module)

Jacoco setup for calculating kotlin test coverage (single module)

put the jacoco.gradle file below somewhere in your app repo (like scripts folder), and then add apply from: '../scripts/jacoco.gradle' to your module gradle file.

This will add additional gradle build tasks to your app, in the form of "testFlavourUnitTestCoverage" that you can run manually (e.g. testStagingDebugUnitTestCoverage) to generate the coverage.

You can edit def excludes definition to further exclude classes you don't want to generate the coverage for. If you have source in other folders beyond those specified in def coverageSourceDirs, add them.

This will generate both exec file used by external code quality analyzers (like Sonarqube), in the build/jacoco folder, and XML and HTML reports, in the build/reports/jacoco/flavourName folder.

@jrgleason
jrgleason / index.mjs
Last active April 1, 2020 19:46
Rollup issue
console.log("Hello World");