Skip to content

Instantly share code, notes, and snippets.

@JohnCampionJr
JohnCampionJr / eslint.config.mjs
Last active July 12, 2025 17:20
ESLint Configuration - Based on @antfu/eslint-config, but with Nuxt and Tailwind
import antfu from '@antfu/eslint-config'
import perfectionistNatural from 'eslint-plugin-perfectionist/configs/recommended-natural'
import tailwind from 'eslint-plugin-tailwindcss'
import eslintPluginUnicorn from 'eslint-plugin-unicorn'
import withNuxt from './.nuxt/eslint.config.mjs'
export default withNuxt(
antfu(
{ formatters: true, stylistic: true },
@koakh
koakh / gist:fbbc37cde630bedcf57acfd4d6a6956b
Last active March 24, 2025 14:40
SurrealDB : How to use signin and signup (server + client nodesjs)
**As a developer you have complete control over the signup and signin functionality...**
```shell
$ surreal sql --conn http://localhost:8000 --user root --pass root --ns test --db test
```
```sql
-- optional : this is the default see --ns test --db test start server flags
-- USE NS test DB test;
@tsrivishnu
tsrivishnu / docker-increase-inotify-max-user-watches.md
Last active July 17, 2025 19:33
Increase inotify watchers in Docker images during build

Increasing fs.inotify.max_user_watches for Docker images

TL;DR You can't set those for an image during build time becasue Docker takes the sysctl configuration from the Host. So, set the config on your host machine.

As in this link, to increase the maximum watchers, we need set fs.inotify.max_user_watches to a higher number in /etc/sysctl.conf.

@PARC6502
PARC6502 / OpenSourceBaas.md
Last active July 16, 2025 16:04
List of open source, self hosted BaaS - Backend as a service

Backend as a Service

Supabase - ~52K stars

  • Designed explicitly as an open source firebase alternative
  • Typescript based
  • Docker support

Appwrite - ~32K stars

  • Written in JavaScript and PHP
  • Docker based
  • Realtime support across all services