Skip to content

Instantly share code, notes, and snippets.

@thdxr
thdxr / string.txt
Created November 5, 2025 23:25
Bun.stripAnsi hates this string
com.apple.lastuseddate#PS: S�\u000bi\ncom.apple.macl: \u0007@��Y6�>J��'��\u0003�FS\ncom.apple.metadata:kMDItemWhereFroms: bplist00�\u0001\u0002_\u0011\u0002\u0004https://software.download.prss.microsoft.com/dbazure/Win11_25H2_English_Arm64.iso?t=984c522c-a10b-41d5-99ec-68cc848694c9&P1=1762014682&P2=601&P3=2&P4=G6eN0uFrG64Ft%2bDz061PD0rTvYV2UQjZUVtyS9Rn9Ytt0F%2bscgadBtf%2fUs5BKFyowVlDqPhEbTtqBsPEk21bgNAyRwBj%2fgnQcRhiIwEcqSJ9Wyf4ChE%2bYRuc0Eeha9IJakJwuBizc38a4qKsEIxihqroM01TM8iANCExlWWZKG3Gayc%2b18OcvGefTc1G%2bvtvd57AWmeK1kho00yTFtT1sqdS6OXV000YyaYoIVLjVypaoQj7MYJ46vCQb%2bVvn3QZgXaMVwbKjCMI15ezgpGptQPWBssWz9hYC9Fv1OuWcmBwvLGkvL1MczAWSuY3P0kqfezG%2fdkh2cX5NUo2G3zPtw%3d%3d_\u0010\u001ahttps://www.microsoft.com/\ncom.apple.provenance: \u0001\u0002\n
@thdxr
thdxr / websearch.ts
Created September 26, 2025 09:41
opencode websearch
import { tool } from "@opencode-ai/plugin";
export default tool({
description:
"Run a search query to search the internet for results. Use this to look up latest information or find documentation.",
args: {
query: tool.schema.string().describe("search query"),
},
execute: async (args) => {
const url = "https://api.perplexity.ai/search";
@thdxr
thdxr / run.js
Created November 8, 2023 02:28
Remove all linkedin connections
// Run on https://www.linkedin.com/mynetwork/invite-connect/connections/
while(true) {
document.querySelector('.mn-connection-card__dropdown-trigger').click()
await new Promise(resolve => setTimeout(resolve, 500))
document.querySelector(".artdeco-dropdown__content-inner button").click()
await new Promise(resolve => setTimeout(resolve, 500))
document.querySelector("[data-test-dialog-primary-btn]").click()
await new Promise(resolve => setTimeout(resolve, 500))
}
0x276C6ee3397740F8ae0383f326C6A2559C100d8f
0x276C6ee3397740F8ae0383f326C6A2559C100d8f
0xf35999D248e7EcFCDb5A2FDE9A0FB9e1c0d5C30A
@thdxr
thdxr / keybase.md
Created September 19, 2017 11:37
keybase.md

Keybase proof

I hereby claim:

  • I am thdxr on github.
  • I am thdxr (https://keybase.io/thdxr) on keybase.
  • I have a public key ASCxEHp8UQsAPg-Hm83oXp1LnyqBfVn2Ro9kgSIgZv9xYwo

To claim this, I am signing this object:

@thdxr
thdxr / simplify.js
Created October 10, 2015 06:27
Neo4j simplify results
simplify = item => {
if (typeof item !== 'object')
return item
const result = {}
for (let key in item) {
const value = item[key]
if (value instanceof Array && typeof value !== 'string') {
result[key] = value.map(this.simplify)
continue
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Bulb
{
import java.sql.SQLException;
public class Example {
public static void main() {
HiveClient client = new HiveClient();
try {
client.Connect();
HiveClient.Provider p = client.GetProvider(123123123);
System.out.printf("%s %s%n", p.getFirst(), p.getLast());