Skip to content

Instantly share code, notes, and snippets.

View r37r0m0d3l's full-sized avatar

Anton `Myron` Trofymenko r37r0m0d3l

View GitHub Profile
npm uninstall eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-config-prettier eslint-plugin-prettier
rm .eslintrc.js
npm install -D oxlint
@r37r0m0d3l
r37r0m0d3l / settings.json
Created May 3, 2026 17:11
No more Allow, Allow, Allow. Global: `~/.claude/settings.json`. Folder: `./.claude/settings.json`.
{
"permissions": {
"allow": [
"Read",
"Glob",
"Grep",
"LS",
"Edit",
"MultiEdit",
"Write(src/**)",
#!/bin/bash
# === CONFIGURATION ===
BOT_TOKEN=""
CHAT_ID=""
HOSTNAME=$(hostname)
get_cpu_load() {
top -bn2 | grep "Cpu(s)" | tail -n1 | awk -F',' '{print 100-$4}' | awk '{printf "%.1f\n", $1}'
}
@r37r0m0d3l
r37r0m0d3l / DockerDesktop.yaml
Created March 30, 2026 15:58 — forked from WildSiphon/DockerDesktop.yaml
Docker Desktop direct download links
4.0.0:
Windows: https://desktop.docker.com/win/main/amd64/67817/Docker%20Desktop%20Installer.exe
Mac with Intel chip: https://desktop.docker.com/mac/main/amd64/67817/Docker.dmg
Mac with Apple chip: https://desktop.docker.com/mac/main/arm64/67817/Docker.dmg
release_date: '2021-08-31'
4.0.1:
Windows: https://desktop.docker.com/win/main/amd64/68347/Docker%20Desktop%20Installer.exe
Mac with Intel chip: https://desktop.docker.com/mac/main/amd64/68347/Docker.dmg
Mac with Apple chip: https://desktop.docker.com/mac/main/arm64/68347/Docker.dmg
release_date: '2021-09-13'
@r37r0m0d3l
r37r0m0d3l / example-typeorm-jest.test.ts
Created December 18, 2025 15:48 — forked from Ciantic/example-typeorm-jest.test.ts
Example of testing TypeOrm with Jest and Sqlite in-memory database
import { createConnection, getConnection, Entity, getRepository } from "typeorm";
import { PrimaryGeneratedColumn, Column } from "typeorm";
@Entity()
export class MyEntity {
@PrimaryGeneratedColumn()
id?: number;
@Column()
name?: string;

Beast Mode

Beast Mode is a custom chat mode for VS Code agent that adds an opinionated workflow to the agent, including use of a todo list, extensive internet research capabilities, planning, tool usage instructions and more. Designed to be used with 4.1, although it will work with any model.

Below you will find the Beast Mode prompt in various versions - starting with the most recent - 3.1

Installation Instructions

  • Go to the "agent" dropdown in VS Code chat sidebar and select "Configure Modes".
  • Select "Create new custom chat mode file"
@r37r0m0d3l
r37r0m0d3l / README.md
Created January 28, 2025 22:35 — forked from anchan828/README.md
This is an improvement to allow @nestjs/typeorm@8.1.x to handle CustomRepository. I won't explain it specifically, but it will help in some way. https://github.com/nestjs/typeorm/pull/1233

You need to provide some classes and decorators yourself to maintain the same style as typeorm@2.x.

1. EntityRepository -> CustomRepository

@EntityRepository(UserEntity)
export class UserRepository extends Repository<UserEntity> {}

git commit --amend --date="now" --no-edit
{
"compilerOptions": {
/* Base Options: */
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es2022",
"allowJs": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"isolatedModules": true,
@r37r0m0d3l
r37r0m0d3l / node-typescript-esm.md
Created November 21, 2023 23:07 — forked from khalidx/node-typescript-esm.md
A Node + TypeScript + ts-node + ESM experience that works.

The experience of using Node.JS with TypeScript, ts-node, and ESM is horrible.

There are countless guides of how to integrate them, but none of them seem to work.

Here's what worked for me.

Just add the following files and run npm run dev. You'll be good to go!

package.json