Skip to content

Instantly share code, notes, and snippets.

@thoroc
thoroc / AWESOME_OPENCODE.md
Last active May 6, 2026 16:02
Awesome list of awesome project for local agentic workflow

Awesome list of awesome project for local agentic workflow

List of projects that are somewhat related to opencode.

Model list

Running local models

@thoroc
thoroc / README.md
Last active May 2, 2026 15:44
How I scraped 2.1 million jobs (including 5,335 data science jobs)

How I scraped 2.1 million jobs (including 5,335 data science jobs)

original: https://www.reddit.com/r/datascience/comments/1iynyco/how_i_scraped_21_million_jobs_including_5335_data/

Background

During my PhD in Data Science at Stanford, I got sick and tired of ghost jobs & 3rd party offshore agencies on LinkedIn & Indeed. So I wrote a script that fetches jobs from 30k+ company websites' career pages and uses GPT4o-mini to extract relevant information (ex salary, remote, etc.) from job descriptions. You can use it here: (HiringCafe). Here is a filter for Data science jobs

@thoroc
thoroc / agent-stars.md
Created March 18, 2026 14:00
Agentic harness ranking - based on github stars
@thoroc
thoroc / CONFIGURATION.md
Created November 6, 2025 21:41
OpenCode config - shamelessly lifted from the Discord server
@thoroc
thoroc / readme.md
Last active April 16, 2026 15:54
How to boot Ubuntu 16.04 on the Shield TV with X1 GPU drivers

So because Android can be kind of annoying sometimes for dev work, especially if you're just interested in working on the aarch64 JIT or GLES code, booting a Linux distro can be pretty useful. This guide can also be extended to outright installing Ubuntu on the Shield TV by flashing the boot partition but we won't cover that. Also note, everything about this guide is non-destructive, so unless you decide to flash anything, you can't break your Shield TV.

I'm writing this guide assuming you have a functional UNIX environment of some sort and a non-pro Nvidia Shield TV 2015. The pro variant WILL NOT WORK with this specific guide, but the boot files are given for them as well in the XDA links below.

You'll need a USB device or MicroSD at least 4 GB large. 8 GB or higher is highly recommended.

Quick and easy way to get up and running

Go download all the files here: https://drive.google.com/drive/folders/0B39Ag2JMI49DcDJUTnBlRUJPRzA

@thoroc
thoroc / star-history.html
Created March 18, 2026 14:23
Agentic harness historic ranking - based on github stars
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Agent Star History</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js@4"></script>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, sans-serif; background: #0f1117; color: #e0e0e0; padding: 24px; }
@thoroc
thoroc / local_llama.md
Last active March 12, 2026 23:44
I was backend lead at Manus. After building agents for 2 years, I stopped using function calling entirely. Here's what I use instead.

I was backend lead at Manus. After building agents for 2 years, I stopped using function calling entirely. Here's what I use instead.

English is not my first language. I wrote this in Chinese and translated it with AI help. The writing may have some AI flavor, but the design decisions, the production failures, and the thinking that distilled them into principles — those are mine.

I was a backend lead at Manus before the Meta acquisition. I've spent the last 2 years building AI agents — first at Manus, then on my own open-source agent runtime (Pinix) and agent (agent-clip). Along the way I came to a conclusion that surprised me:

A single run(command="...") tool with Unix-style commands outperforms a catalog of typed function calls.

Here's what I learned.

@thoroc
thoroc / restore-file-from-history.sh
Created February 4, 2026 10:51
restore file from history
#!/usr/bin/env zsh
# Script to find and restore files/directories from git history
# Usage: ./restore-file-from-history.sh [OPTIONS] <pattern>
# Supports partial filenames and directories
#
# Options:
# -a, --all Automatically select all matches
# -y, --yes Automatically confirm restoration
# -h, --help Show this help message
@thoroc
thoroc / readme.md
Created April 8, 2015 03:30
How I hacked into the Warface in-game protocol

How I hacked into the Warface in-game protocol

Disclaimer

This analysis of Warface in-game communication protocol is against multiple points of the Crytek Terms of Service. So... I am not responsible for any other people acts trying to reproduce what's shown here, and I discourage anyone not aware of the possible risks (permanent ban, account deletion, etc. ). Please do read the Crytek ToS before attempting to reproduce what's described here.

Update: Some of the exploits or remarks have already been fixed the time you read this. Indeed, while I was writing this document, I also raised the issues to Crytek devs and let them time to digest. I've kept them here in hope it will make good stories to tell. Sadly for them, the main content of this analysis still remains valid.

Summary

@thoroc
thoroc / README.md
Last active December 29, 2025 20:30
Docker in Incus is Awesome - The “Get my” application (Aug 2024)

Deploying the “Get my” Application with Incus OCI Containers

Overview

This guide explains how to deploy the Get my application using Incus with the new OCI container support introduced in Incus 6.3.
Get my is a lightweight web application for managing shared family task and shopping lists, created by Brian (Open Source Advocate).

For users new to Incus, refer to the introductory tutorial: