Skip to content

Instantly share code, notes, and snippets.

View tspannhw's full-sized avatar
💭
Unstructured Data, Vector Database, Cloud, AI, Edge, Streaming, SQL

Timothy Spann tspannhw

💭
Unstructured Data, Vector Database, Cloud, AI, Edge, Streaming, SQL
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from __future__ import print_function
import requests
from ultralytics import YOLO
import sys
import io
import json
import shutil
import sys
import datetime
import subprocess
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tspannhw
tspannhw / fix-os-upgrade.md
Created May 10, 2024 15:47 — forked from cobaohieu/fix-os-upgrade.md
fix Your python3 install is corrupted. Please fix the '/usr/bin/python3' symlink.

sudo apt install --reinstall python3

sudo apt install --reinstall python

`` sudo update-alternatives --remove-all python

@tspannhw
tspannhw / JSON_Array_to_String_List.xml
Created January 6, 2024 02:15 — forked from ijokarumawak/JSON_Array_to_String_List.xml
NiFi template that converts JSON Array into String List.
<?xml version="1.0" ?>
<template encoding-version="1.1">
<description></description>
<groupId>1e8778a8-015c-1000-c747-8273276bab45</groupId>
<name>JSON Array to String List</name>
<snippet>
<processGroups>
<id>51eb9288-0a70-311b-0000-000000000000</id>
<parentGroupId>5454b790-94fe-3e28-0000-000000000000</parentGroupId>
<position>
Where Type Date Event Talk Taitle Link
Virtual C 1/13/2023 Data Science Online Camp Pulsar for ML
Virtual C 1/27/2023 Conf42: DevOps Modern Data Streaming Apps with Python https://www.slideshare.net/bunkertor/building-modern-data-streaming-apps-with-python
Virtual C 1/27/2023 Scylla Summit Sink Your Teeth into Streaming at Any Scale https://www.slideshare.net/bunkertor/sink-your-teeth-into-streaming-at-any-scale
Virtual C 1/27/2023 Spring One / Tanzu Virtual Let's Keep it Simple and Streaming https://www.slideshare.net/bunkertor/lets-keep-it-simple-and-streaming
Virtual C 1/27/2023 Spring One / Tanzu Virtual Living the Stream Dream with Pulsar and Spring Boot https://www.slideshare.net/bunkertor/living-the-stream-dream-with-pulsar-and-spring-boot
Virtual M 1/27/2023 Meetup Why Spring Belongs in Your Data Stream from Edge to Multicloud https://www.slideshare.net/bunkertor/why-spring-belongs-in-your-data-stream-from-edge-to-multicloud
Virtual W 1/30/2023 StreamNative Webinar Using Pulsar REST API https://www.y
| # |Where |Type|Date |Event |Talk Title |Link |
|---|--------------------------------------------------------------------------------------------------------------|----|----------|------------------------------|--------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------|
|1 |Virtual |C |1/13/2023 |Data Science Online Camp |Pulsar for ML |
@tspannhw
tspannhw / BertTranslator.java
Created October 21, 2023 17:09 — forked from KexinFeng/BertTranslator.java
Deploying HuggingFace QA model in Java
import ai.djl.modality.nlp.DefaultVocabulary;
import ai.djl.modality.nlp.Vocabulary;
import ai.djl.modality.nlp.bert.BertToken;
import ai.djl.modality.nlp.bert.BertTokenizer;
import ai.djl.modality.nlp.qa.QAInput;
import ai.djl.ndarray.NDArray;
import ai.djl.ndarray.NDList;
import ai.djl.ndarray.NDManager;
import ai.djl.translate.Batchifier;
import ai.djl.translate.Translator;
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<template encoding-version="1.3">
<description></description>
<groupId>bbe01d7d-0188-1000-547f-9f14b009425b</groupId>
<name>ftp</name>
<snippet>
<connections>
<id>07e20afe-0750-325d-0000-000000000000</id>
<parentGroupId>a568e7b3-e3ef-305c-0000-000000000000</parentGroupId>
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>
@tspannhw
tspannhw / sidecar-example.yml
Created June 14, 2023 00:05 — forked from pvillard31/sidecar-example.yml
sidecar-example.yml for MiNiFi and NiFi
apiVersion: v1
data:
# TODO: replace with own minifi properties
minifi.properties: |
# Core Properties #
nifi.version=0.11.0
nifi.flow.configuration.file=./conf/config.yml
nifi.administrative.yield.duration=30 sec
# If a component has no work to do (is "bored"), how long should we wait before checking again for work?
nifi.bored.yield.duration=100 millis