Skip to content

Instantly share code, notes, and snippets.

View backsapce's full-sized avatar

HuangYao backsapce

View GitHub Profile
@backsapce
backsapce / uploadFile.js
Created September 26, 2017 01:35
formidable upload file for express
app.post('/uploadFile',function (req,res) {
// create an incoming form object
var form = new formidable.IncomingForm();
// specify that we want to allow the user to upload single files in a single request
form.multiples = false;
//keep the file upload extensions
form.keepExtensions = true;
// 500M limit
form.maxFieldsSize = 500 * 1024 * 1024;
// store all uploads in the /uploads directory
#!/bin/bash
apt-get remove -y docker docker-engine docker.io containerd runc
apt-get update
apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
#!/bin/false
# This file will be sourced in init.sh
# Namespace functions with provisioning_
# https://raw.githubusercontent.com/ai-dock/stable-diffusion-webui/main/config/provisioning/default.sh
### Edit the following arrays to suit your workflow
DISK_GB_REQUIRED=30