Skip to content

Instantly share code, notes, and snippets.

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

@matthunz
matthunz / blog.md
Last active December 8, 2024 13:27

UI and Declarative Programming in Rust

The graphical user interface (GUI) is the cornerstone of most modern applications. It is often the main interface to use a computer program, providing a bridge from your software to someone out there in the world. Therefore, to best represent our hard-earned application logic, a GUI should be responsive, robust, and accessible.

So let's use Rust, a modern language for efficient and robust software! Well...

Why are user interfaces so hard for Rust?

I've been working on open-source Rust projects for about 8 years now,

@guest271314
guest271314 / file-system-access.md
Last active June 3, 2024 04:26
File system access prior art, current implementations and disambiguation: The difference between WICG File System Access and WHATWG File System
@manzt
manzt / my-ts-monorepo.md
Last active January 16, 2025 15:25
A minimal setup for TypeScript monorepo libraries

My Minimal TypeScript Monorepo Setup for ESM Libraries

After a deep dive looking up best practices for TypeScript monorepos recently, I couldn't find anything that suited my needs:

  1. Publish individual (typed) packages to NPM with minimal config.
  2. Supports fast unit testing that spans the entire project (e.g., via Vitest)
  3. Ability to have an interactive playground to experiment with the API in a real-time (e.g., via Vite)

Most solutions point to TypeScript project references,

@CrockAgile
CrockAgile / float_arcade.md
Last active December 27, 2022 00:47
Floating Point Arcade

Floating Point Arcade

![Twitter Follow][twitter]

A Shady Coin Toss

A shady game master approaches...

Hey there! You look like you would enjoy a good game of chance.
@CrockAgile
CrockAgile / earley_parsing_explained.md
Last active June 22, 2024 00:01
Earley Parsing Explained

Earley Parsing Explained

Twitter Follow

flowchart TD
0["sum"] --> 1["sum"]
1["sum"] --> 2["product"]
2["product"] --> 3["factor"]
3["factor"] --> 4["number"]
@ryanvazquez
ryanvazquez / setIntervalTimeout.js
Last active April 15, 2022 16:22
Simple utility for creating variadic intervals
// setIntervalTimeout sits somewhere between setTimeout and setInterval,
// allowing a finite or infinite number of fixed or variadic intervals.
// Returns a cleanup function to clear the current timeout.
// Note: IE does not support generators.
function setIntervalTimeout(callback, iterable, ...args){
if (!(Symbol.iterator in iterable)){
throw new Error(`Expected valid iterable. Received: ${iterable}.`);
@oleid
oleid / GTK4-RS-Windows-MSVC-notes.md
Last active April 10, 2023 00:48
Notes on how to build gtk4-rs projects on Windows with MSVC

I'm not really a windows user, but given the latest discussion on the rust subreddit, I thought I give using gtk4-rs on windows a try.

To set up my build environment, I followed this blog post:

https://www.collabora.com/news-and-blog/blog/2021/03/18/build-and-run-gtk-4-applications-with-visual-studio

That way, I successfully built and installed gtk4/master. And I can launch gtk4-demo. Building from the tag 4.3.0 didn't work for me, as the source of glib couldn't be checked out.

In the blog above, things got installed to C:\GNOME. I chose C:\GTK instead, but the name doesn't really matter.

@vivekhaldar
vivekhaldar / cut_silence.py
Last active January 25, 2025 21:31
Python script to cut out silent parts from a video. Uses moviepy.
#!/usr/bin/env python
#
# Based on a script by Donald Feury
# https://gitlab.com/dak425/scripts/-/blob/master/trim_silenceV2
# https://youtu.be/ak52RXKfDw8
import math
import sys
import subprocess
import os
@CatsMiaow
CatsMiaow / main.ts
Created June 12, 2020 05:26
Comlink example for Node.js with TypeScript
/**
* https://github.com/GoogleChromeLabs/comlink/blob/master/docs/examples/06-node-example/main.mjs
* https://github.com/GoogleChromeLabs/comlink/issues/476#issuecomment-642765445
* esModuleInterop to true in tsconfig.json compilerOptions.
*/
import { Worker } from 'worker_threads';
import * as comlink from 'comlink';
import nodeEndpoint from 'comlink/dist/umd/node-adapter';
import { cpus } from 'os';