Skip to content

Instantly share code, notes, and snippets.

View janl's full-sized avatar
🛋️
Drop ICE

Jan Lehnardt janl

🛋️
Drop ICE
View GitHub Profile

Hoodie vs. Meteor

Preface: Not a Meteor Expert. Please comment with improvements.

Paraphrasing philosophy:

  • Hoodie, Look ma! No Backend.
  • Meteor, Backend Power on the Fronend.

A couple of high-level observations:

/ # ls -la /usr/bin/foo
-rwxr-xr-x 1 root root 57210265 Aug 5 13:39 /usr/bin/foo
/ # /usr/bin/foo
/bin/sh: /usr/bin/foo: not found
All run on FreeBSD 11

All tarballs from the [top 1000 npm packages](https://gist.github.com/anvaka/8e8fa57c7ee1350e3491)
unzipped and copied onto pristine ZFS volumes.

Sum of all original .tgz file sizes: 28GB
Sum of all unzipped .tar files: 35GB

List of compression types/configs and their compression ratios:
diff --git a/src/chttpd/src/chttpd_db.erl b/src/chttpd/src/chttpd_db.erl
index c6404b04d..1a58b95ea 100644
--- a/src/chttpd/src/chttpd_db.erl
+++ b/src/chttpd/src/chttpd_db.erl
@@ -1409,6 +1409,16 @@ couch_doc_open(Db, DocId, Rev, Options0) ->
% Attachment request handlers
+is_tgz(FileName) ->
+ case config:get_boolean("couchdb", "tiny_npm", false) of
#!/bin/sh -ex
VERSIONS="8.2.11 9.0.11 9.1.8 10.0.10"
mv owncloud basecloud
for VERSION in $VERSIONS; do
echo "doing $VERSION"
if [ -d owncloud ]; then
mv owncloud owncloud-pre-$VERSION
fi
fetch https://download.owncloud.org/community/owncloud-$VERSION.tar.bz2
# HAProxy config for hoodie + ssl.
# Uses nginx for file serving on 127.0.0.1:5999
# This is optional, Hoodie can serve static files fine.
global
log 127.0.0.1 local0 debug
maxconn 4096
user haproxy
group haproxy
daemon
@janl
janl / new-hoodie-architecture.md
Last active August 21, 2018 16:22
The New Hoodie Architecture

// this is a draft of an outline of an result of an in-person meeting that will eventually live in a GitHub issue for the community to discuss, this is just to vet the outline with the in-person meeting members.

New Hoodie Architecture

This is going to be a long one, grab a nice beverage and enjoy the ride :)

Table of Contents

  • Motivation
    • Making work on and with Hoodie easier and more fun
diff --git a/src/couch/src/couch_httpd_multipart.erl b/src/couch/src/couch_httpd_multipart.erl
index 6ce3c76fe..54b369d00 100644
--- a/src/couch/src/couch_httpd_multipart.erl
+++ b/src/couch/src/couch_httpd_multipart.erl
@@ -23,6 +23,8 @@
-include_lib("couch/include/couch_db.hrl").
+-define(DEFAULT_PARSING_TIMEOUT, 300000). % 5 minutes
+
diff --git a/src/couch/src/couch_httpd_multipart.erl b/src/couch/src/couch_httpd_multipart.erl
index 6ce3c76fe..3bf040220 100644
--- a/src/couch/src/couch_httpd_multipart.erl
+++ b/src/couch/src/couch_httpd_multipart.erl
@@ -23,16 +23,21 @@
-include_lib("couch/include/couch_db.hrl").
+-define(DEFAULT_PARSING_TIMEOUT, 300000). % 5 minutes
+
@janl
janl / hi.txt
Created October 31, 2016 18:43
Hi Am Anita,
Nice to meet you,
i saw your email on github.com and i decided to communicate
with you,in your usual time may it please you to
reply me here for my pictures, my details,
and my purpose of writing to you.
please i don't have much access on github.com due to some
personal reasons,