Skip to content

Instantly share code, notes, and snippets.

View densumesh's full-sized avatar
🌋

DNS densumesh

🌋
  • Devflow, Inc
  • 10:31 (UTC -07:00)
View GitHub Profile
alias fuckedup='git fetch origin main:main && git rebase -i main'
alias cfmt='cd ~/Documents/trieve/trieve/server && cargo fmt'
This file has been truncated, but you can view the full file.
[{"id":"7637a91b-010a-4818-9222-fd22abcdba4e","link":"https://testortech.com/","qdrant_point_id":"8c67aa4e-fa6d-4851-bf00-8d0d10f7c647","created_at":"2024-07-01T18:12:24.987242","updated_at":"2024-07-01T18:12:24.987242","chunk_html":"\nbusiness name: Testor Technology Environmental Services\n\nbusiness description: Testor Technology Environmental Services is a leader in environmental testing, decontamination, and abatement. They offer services such as asbestos testing, mold testing, lead testing, IAQ testing, VOC testing, soil testing, water testing, PCB testing, oil tank testing, and Phase I & II assessments.\n\nbusiness categories: Technology & Electronics\n\nbusiness type: Environmental Services\n\nbusiness specialty: Leader in environmental testing, decontamination, and abatement\n\nkeywords: environmental testing, decontamination, abatement, asbestos testing, mold testing, lead testing, IAQ, VOC, soil testing, water testing, PCB testing, oil tank testing, Phase I & II assessments\n\nproducts/services off
import os
import uuid
import asyncio
import asyncpg
DATABASE_URL = os.getenv("DATABASE_URL")
DELETE_CHUNK_BATCH_SIZE = int(os.getenv("DELETE_CHUNK_BATCH_SIZE", "5000"))
async def delete_chunks():
<?xml version="1.0"?>
<md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" entityID="https://fujifish.github.io/samling/samling.html
">
<md:IDPSSODescriptor WantAuthnRequestsSigned="false" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
<md:KeyDescriptor use="signing">
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:X509Data>
<ds:X509Certificate>MIICpzCCAhACCQDuFX0Db5iljDANBgkqhkiG9w0BAQsFADCBlzELMAkGA1UEBhMCVVMxEzARBgNVBAgMCkNhbGlmb3JuaWExEjAQBgNVBAcMCVBhbG8gQWx0bzEQMA4GA1UECgwHU2FtbGluZzEPMA0GA1UECwwGU2FsaW5nMRQwEgYDVQQDDAtjYXByaXphLmNvbTEmMCQGCSqGSIb3DQEJARYXZW5naW5lZXJpbmdAY2Fwcml6YS5jb20wHhcNMTgwNTE1MTgxMTEwWhcNMjgwNTEyMTgxMTEwWjCBlzELMAkGA1UEBhMCVVMxEzARBgNVBAgMCkNhbGlmb3JuaWExEjAQBgNVBAcMCVBhbG8gQWx0bzEQMA4GA1UECgwHU2FtbGluZzEPMA0GA1UECwwGU2FsaW5nMRQwEgYDVQQDDAtjYXByaXphLmNvbTEmMCQGCSqGSIb3DQEJARYXZW5naW5lZXJpbmdAY2Fwcml6YS5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAJEBNDJKH5nXr0hZKcSNIY1l4HeYLPBEKJLXyAnoFTdgGrvi40YyIx9lHh0L
[{"id":"d7a5983a-470f-4ab3-830e-555eb4f02ad9","link":"integrations/subpath/route53-cloudfront","qdrant_point_id":"18bb3669-e3b6-4fef-b100-7641f5e7d58e","created_at":"2024-06-25T04:45:28.049531","updated_at":"2024-06-25T04:45:28.049531","chunk_html":"Preview Distribution\nYou can now test if your distribution is set up properly by going to the General tab and visiting the Distribution domain name URL. All pages should be directing to your main landing page, but if you append /docs to the URL, you should see it going to the Mintlify documentation instance.","metadata":{"breadcrumbs":["Custom Subpaths","Route 53 and Cloudfront"],"title":"Preview Distribution"},"tracking_id":"integrations/subpath/route53-cloudfront-Preview-Distribution","time_stamp":null,"dataset_id":"300347ba-73e2-4359-a677-62a431d11b57","weight":0,"location":null,"image_urls":null,"tag_set":"","num_value":null,"group_tracking_ids":["integrations/subpath/route53-cloudfront"]},{"id":"97250c25-70fd-4ffd-ad3a-f5ee67807561","link":"content/component
import asyncio
import aiohttp
import dotenv
import os
import time
import random
dotenv.load_dotenv()
base_url = os.getenv("TRIEVE_BASE_URL")
We can't make this file beautiful and searchable because it's too large.
Chunk HTML,Link,Tag Set,Tracking ID,Metadata
<div><h1>Alacrity</h1><h3>AI Based Account Takeover Prevention Platform</h3><p>We are building a safer internet. Account Takeovers remain a problem - despite 2FA and all the fraud prevention platforms out there today. We are building the next generation of fraud prevention and identity tools. Having fought fraud at the largest scale at some of the biggest companies in the world; we are now building what we wish we had and giving those tools to everyone.</p><p>Located in San Francisco; US and founded in 2024</p></div>,/companies/alacrity,W24|identity|fraud-prevention|fraud-detection|san-francisco-bay-area,29533,"{""company_name"":""Alacrity"";""company_one_liner"":""AI Based Account Takeover Prevention Platform"";""company_long_description"":""We are building a safer internet. Account Takeovers remain a problem - despite 2FA and all the fraud prevention platforms out there today. We are building the next generation of fraud prevention and identity tools. Having foug
import psycopg2
import os
import dotenv
import uuid
dotenv.load_dotenv()
# Connect to the PostgreSQL database
# Get the PostgreSQL connection details from environment variables
conn = psycopg2.connect(
os.getenv("DATABASE_URL"),
We can't make this file beautiful and searchable because it's too large.
group_tracking_ids|tracking_id|chunk_html|time_stamp|link|episode_number|episode_title
https://www.philosophizethis.org/podcast/anarchism-part-one-26l4k-pj5c2-yehbw-jebes-cwz68-y6cd4|https://www.philosophizethis.org/podcast/anarchism-part-one-26l4k-pj5c2-yehbw-jebes-cwz68-y6cd4-0| Hello everyone! I’m Stephen West. This is Philosophize This. So I got a message a couple days ago from someone on Patreon. His name was Andrew. He was from Australia. Shout out to Australia, by the way. But he was responding to that question of what would you ask Zizek if you could ask him anything. And what he said was something to the effect of okay, Zizek. I get it. My worldview is ideology. I’m but a FEEBLE human mind… that NEEDS this ideology you’re talking about…to give me SHORTCUTS.Shortcuts that allow me to UNDERSTAND my reality…because NO human being has the mental resources to understand the FULL complexity of reality on it’s own terms. I get it. But isn’t it ALSO the case that whenever ANYONE out there does something GOO