Skip to content

Instantly share code, notes, and snippets.

View TorstenDittmann's full-sized avatar

Torsten Dittmann TorstenDittmann

View GitHub Profile
> composer licenses --no-dev
Name: appwrite/server-ce
Version: dev-main
Licenses: BSD-3-Clause
Dependencies:
Name Version Licenses
adhocore/jwt 1.1.2 MIT
appwrite/appwrite 10.0.0 BSD-3-Clause
@TorstenDittmann
TorstenDittmann / schema.json
Last active July 27, 2023 13:25
schema.json
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"$schema": {
"type": "string"
},
"items": {
"type": "array",
"items": [
import 'isomorphic-form-data';
import { fetch } from 'cross-fetch';
namespace Models {
/**
* Documents List
*/
export type DocumentList<Document extends Models.Document> = {
/**
* Total number of documents documents that matched your query.
@TorstenDittmann
TorstenDittmann / docker-compose.yml
Last active March 17, 2022 12:28
improve docker yaml
# WARNING!
# This is a development version of THE Appwrite docker-compose.yml file.
# Avoid using this file in your production environment.
# We're exposing here sensitive ports and mounting code volumes for rapid development and debugging of the server stack.
version: '3'
x-env-defaults: &x-env-defaults |-
_APP_ENV
_APP_LOCALE
@TorstenDittmann
TorstenDittmann / sdk.ts
Last active September 20, 2021 13:27
sdk.ts
import 'isomorphic-form-data';
import { fetch } from 'cross-fetch';
type Payload = {
[key: string]: any;
}
type Headers = {
[key: string]: string;
}
@TorstenDittmann
TorstenDittmann / .env
Last active September 15, 2021 07:29 — forked from eldadfux/.env
Appwrite 0.10 - Stack
_APP_ENV=production
_APP_LOCALE=en
_APP_CONSOLE_WHITELIST_ROOT=enabled
_APP_CONSOLE_WHITELIST_EMAILS=
_APP_CONSOLE_WHITELIST_IPS=
_APP_SYSTEM_EMAIL_NAME=Appwrite
[email protected]
[email protected]
_APP_SYSTEM_RESPONSE_FORMAT=
_APP_OPTIONS_ABUSE=disabled
@TorstenDittmann
TorstenDittmann / nginx.conf
Last active October 14, 2024 19:31
NGinx + Realtime
events {
worker_connections 1024;
}
http {
server {
listen 80;
listen 443;
# config for setting up and handling Appwrite SSL
@TorstenDittmann
TorstenDittmann / index.d.ts
Created May 31, 2021 10:32
NodeJS Typescript Definitions
declare module "package-name" {
export class Client {
/**
* Set endpoint.
*
* @param {string} endpoint
*
* @return {this}
*/
setEndpoint(endpoint: string): Client;
# Love open-source, dev-tooling and passionate about code as much as we do?
# ---
# We're always looking for awesome hackers like you to join our 100% remote team!
# Check and see if you find any relevant position @ https://appwrite.io/company/careers
# (and let us know you found this message...)
# This script contains hidden JS code to allow better readability and syntax highlighting
# You can use "View source" of this page to see the full script.
# Appwrite CLI location
@TorstenDittmann
TorstenDittmann / ChristmasTree.java
Last active October 15, 2019 11:51
JAVA - Weihnachtsbaum in Konsole
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package christmastree;
import java.util.Scanner;
/**