Skip to content

Instantly share code, notes, and snippets.

@ImTheDeveloper
ImTheDeveloper / zod-lemon-squeezy.ts
Created June 1, 2024 07:43 — forked from feliche93/zod-lemon-squeezy.ts
Zod Models for Lemon Squeezy Fetching Products Request
import { z } from 'zod';
const SPagination = z.object({
currentPage: z.number(),
from: z.number(),
lastPage: z.number(),
perPage: z.number(),
to: z.number(),
total: z.number(),
});
@ImTheDeveloper
ImTheDeveloper / node-red
Last active August 29, 2015 14:08
update node path - use "which node" to find this path in ubuntu
#!/bin/bash
### BEGIN INIT INFO
# Provides: node-red
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start or stop the node-red server
### END INIT INFO
# Can be downloaded and installed in one go by using this command
@ImTheDeveloper
ImTheDeveloper / node-red
Created October 10, 2014 08:36 — forked from bigmonkeyboy/README.md
Node-Red Init.d Script - Updated
#! /bin/sh
# Starts and stops Node-RED
# /etc/init.d/node-red
### BEGIN INIT INFO
# Provides: node-red
# Required-Start: $syslog
# Required-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Node-RED initialisation