Skip to content

Instantly share code, notes, and snippets.

View Blankeos's full-sized avatar
🦄
Finding unicorns  

Carlo Taleon Blankeos

🦄
Finding unicorns  
View GitHub Profile
@vlaaad
vlaaad / _Defold_MCP.md
Last active October 10, 2025 20:08
Defold MCP server

Steps to try it out:

  1. Add mcp.editor_script to a Defold project
  2. Project -> Reload Editor Scripts
  3. It will print something like MCP running on http://localhost:50489/mcp — your port will be different
  4. Ensure that npx mcp-remote http://localhost:50489/mcp --transport http-only successfully runs in your terminal.
  5. Edit Claude desktop config to refer to the server (see claude_desktop_config.json for reference)
  6. Restart Claude and enjoy!
@KrisKnez
KrisKnez / env.ts
Created July 29, 2023 01:45
Next.JS env with envalid
import { cleanEnv, url } from "envalid";
// We have to do this because of how Next.JS handles process.env
const processEnv = {
NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL,
};
const env = cleanEnv(processEnv, {
NEXT_PUBLIC_API_URL: url(),
});
@lucassardois
lucassardois / docker-compose.yml
Last active June 17, 2024 17:24
A simple docker-compose file to enable MongoDB replica set using a single node setup.
version: '3.0'
services:
mongo:
image: mongo:4.4
ports:
- '27017:27017'
command: mongod --replSet rs0
healthcheck:
test: test $$(echo "rs.initiate({_id:'rs0',members:[{_id:0,host:\"127.0.0.1:27017\"}]}).ok || rs.status().ok" | mongo --host mongo:27017 --quiet) -eq 1
@nikhita
nikhita / update-golang.md
Last active October 13, 2025 08:48
How to update the Go version

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by:

@Kartones
Kartones / postgres-cheatsheet.md
Last active October 19, 2025 14:22
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)