Skip to content

Instantly share code, notes, and snippets.

View byawitz's full-sized avatar

Binyamin Yawitz byawitz

View GitHub Profile
@byawitz
byawitz / launchd-for-services.md
Last active April 12, 2024 18:09 — forked from johndturn/launchd-for-services.md
Overview of using launchd to set up services on a macOS machine.

launchd - Script Management in macOS

What is it?

  • Used on macOS for managing agents and daemons and can be used to run scripts at specified intervals
    • macOS's competitor to cron, along with other things
  • Runs Daemons and Agents

What is a Daemon?

@byawitz
byawitz / reset.css
Created January 24, 2024 18:38
Modern CSS reset
/********************************************************
* As seen here 👇
* https://andy-bell.co.uk/a-modern-css-reset/
*********************************************************/
/* Box sizing rules */
*,
*::before,
*::after {
box-sizing: border-box;

1.Get your MariaDB IP.

Your Appwrite self-hosted platform uses the Docker network to isolate your container from the outside world.

As that, we first need to obtain the MariaDB internal IP. To find it run the following command on your server

Linux

$: docker network inspect appwrite_appwrite --format '{{range .Containers}}{{println .Name .IPv4Address println }}{{end}}' | grep mariadb

Windows

@byawitz
byawitz / Readme.md
Last active April 14, 2023 16:33
Copy Appwrite collection scheme to a new collection in the same project

Simple script that connected to any Appwrite API SDK through NodeSDK

At the beginning of the file enter the appropriate values into the variables:

  • ENDPOINT
  • PROJECT
  • API_KEY

To copy scheme run the function

copy(ORIGIN_DB_ID, ORIGIN_COLLECTION_ID, DEST_DB_ID, DEST_COLLECTION_ID);