Skip to content

Instantly share code, notes, and snippets.

@gtrant
gtrant / check-compromised.cjs
Last active September 9, 2025 09:42
Search for compromised packages - modified version from https://gist.github.com/martypitt/0d50c350aa7f0fc733547543438d7df3 for node 22
// Checks to see if any node js dependencies were impacted by the hack described here:
// https://www.aikido.dev/blog/npm-debug-and-chalk-packages-compromised
// To use - simply save as check-compromised.js next to your package-lock.json file, then run
// node check-compromised.cjs
const fs = require("fs");
const path = require("path");
const compromised = {
"ansi-styles": "6.2.2",
"debug": "4.4.2",
@gtrant
gtrant / PostgreSqlPlatform.php
Created September 13, 2023 21:08 — forked from dextervip/PostgreSqlPlatform.php
Symfony Doctrine support for timescaledb
<?php
namespace App\Domain\Doctrine\DBAL\Platforms;
use Doctrine\DBAL\Platforms\PostgreSQL100Platform as PostgreSqlPlatformBase;
class PostgreSqlPlatform extends PostgreSqlPlatformBase
{