Skip to content

Instantly share code, notes, and snippets.

View dai's full-sized avatar
:octocat:
still Catch it Up.

dai dai

:octocat:
still Catch it Up.
View GitHub Profile
@leehanchung
leehanchung / cli.mjs
Last active March 17, 2025 14:18
formatted claude code cli.mjs
This file has been truncated, but you can view the full file.
#!/usr/bin/env -S node --no-warnings=ExperimentalWarning --enable-source-maps
// Claude Code is a Beta product per Anthropic's Commercial Terms of Service.
// By using Claude Code, you agree that all code acceptance or rejection decisions you make,
// and the associated conversations in context, constitute Feedback under Anthropic's Commercial Terms,
// and may be used to improve Anthropic's products, including training models.
// You are responsible for reviewing any code suggestions before use.
// (c) Anthropic PBC. All rights reserved. Use is subject to Anthropic's Commercial Terms of Service (https://www.anthropic.com/legal/commercial-terms).

Understanding and Preparing for an AI Future

The Gospel According to Chris Barber


This guide synthesises Chris Barber’s AI Prep Notes, a series of conversations and interviews with leading thinkers on advanced AI (chrisbarber.co/AI+Prep+Notes | @chrisbarber). Generated by ChatGPT (o1, 4o canvas). Copied, pasted, prompted, and lightly edited by Eleanor Berger (intellectronica.net).


Hello Goose Community,

We’re thrilled to share some significant updates from the Goose repository! The team has been hard at work, and we have some fantastic new features and improvements that will enhance your experience. Let’s dive in!

🌟 Major Updates

1. Config Management Endpoints

Commit: 9287eaeb5d6f4a8fc302ef1c679a0843c62bcbbe
Authors: Alex Hancock, Lily Delalande
New endpoints for configuration management have been introduced in goose-server. Users can now easily upsert, remove, and manage configuration values, enhancing the server's flexibility and usability.

g.co, Google's official URL shortcut (update: or Google Workspace's domain verification, see bottom), is compromised. People are actively having their Google accounts stolen.

Someone just tried the most sophisticated phishing attack I've ever seen. I almost fell for it. My mind is a little blown.

  1. Someone named "Chloe" called me from 650-203-0000 with Caller ID saying "Google". She sounded like a real engineer, the connection was super clear, and she had an American accent. Screenshot.

  2. They said that they were from Google Workspace and someone had recently gained access to my account, which they had blocked. They asked me if I had recently logged in from Frankfurt, Germany and I said no.

  3. I asked if they can confirm this is Google calling by emailing me from a Google email and they said sure and sent me this email and told me to look for a case number in it, which I saw in

  1. install ollama

brew install ollama

  1. check you can run deepseek:

ollama run deepseek-r1:14b

(bigger model is better - if you can run 70B that is amazing!)

@ashtonmeuser
ashtonmeuser / _summarize.ts
Last active January 21, 2025 03:54
A simple bookmarklet that uses OpenAI ChatGPT to summarize the current webpage
// bookmarklet-title: Summarize
// bookmarklet-about: A simple bookmarklet that uses OpenAI’s ChatGPT to summarize the current webpage. Note that an OpenAI API key is required. Please inspect the bookmarklet source (via the “show editor” or “view gist” buttons) and the bookmarkl.ink project source (github.com/ashtonmeuser/bookmarklet-platform) to ensure that your private data is neither logged nor stored and does not leave your browser.
import Modal from '/ashtonmeuser/0613e3aeff5a4692d8c148d7fcd02f34/raw/7804c7276e855db7a4b2d9ae6801ac6447198810/Modal.ts';
import style from './content.css';
const OPENAI_API_KEY: string = ''; // bookmarklet-var(password): OPENAI_API_KEY
const UUID: string = ''; // bookmarklet-var(uuid): UUID
const errorHtml = (message: string) => `<h1>Error</h1><p>${message}</p>`;
@extratone
extratone / tezalgo.js
Created December 10, 2024 02:30
JavaScript source necessary for my [Zalgo TextExpander snippet](https://dub.sh/tefuck).
var zalgo_up = [
'\u030d', /* ̍ */ '\u030e', /* ̎ */ '\u0304', /* ̄ */ '\u0305', /* ̅ */
'\u033f', /* ̿ */ '\u0311', /* ̑ */ '\u0306', /* ̆ */ '\u0310', /* ̐ */
'\u0352', /* ͒ */ '\u0357', /* ͗ */ '\u0351', /* ͑ */ '\u0307', /* ̇ */
'\u0308', /* ̈ */ '\u030a', /* ̊ */ '\u0342', /* ͂ */ '\u0343', /* ̓ */
'\u0344', /* ̈́ */ '\u034a', /* ͊ */ '\u034b', /* ͋ */ '\u034c', /* ͌ */
'\u0303', /* ̃ */ '\u0302', /* ̂ */ '\u030c', /* ̌ */ '\u0350', /* ͐ */
'\u0300', /* ̀ */ '\u0301', /* ́ */ '\u030b', /* ̋ */ '\u030f', /* ̏ */
'\u0312', /* ̒ */ '\u0313', /* ̓ */ '\u0314', /* ̔ */ '\u033d', /* ̽ */
'\u0309', /* ̉ */ '\u0363', /* ͣ */ '\u0364', /* ͤ */ '\u0365', /* ͥ */

I unexpectedly had to quit my previous job and am now in search of a new one. If you are interested in hiring me or have leads, I would very much appreciate it if you could contact me at my ID + gmail.

Past experiences

https://lestrrat.github.io/

During 2000-2019, I worked as a backend software engineer, writing anything from small tools to servers handling billions of requests. Now I focus on writing software with Go. During 2019-2024, I worked as TechPR, acting to promote my employer to the outside engineering community, as well as enabling and otherwise making internal engineers happier. I still wrote code for FOSS, but not for a living.

I have 15+ years experience writing about programming in commercial publishing.

@rmtbb
rmtbb / ChatGPT Canvas HTML Renderer from Clipboard.url
Last active January 23, 2025 22:45
Bookmarklet that lets you render a full HTML page with any included css and javascript that is currently copied to your clipboard. Also works for SVG code. Useful with ChatGPT Canvas
javascript:(function(){try{navigator.clipboard.readText().then(function(t){if(t){var e=window.open("","_blank","width=800,height=600");e.document.open(),e.document.write(t),e.document.close()}else alert("Clipboard is empty. Please copy some text to the clipboard first.")}).catch(function(t){console.error("Failed to read clipboard contents: ",t),alert("An error occurred while trying to access the clipboard. Please ensure your browser allows clipboard access.")})}catch(t){console.error("An error occurred:",t),alert("An error occurred while trying to open the new window with the clipboard content.")}})();//bookmarklet_title: HTML Preview from Clipboard