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
/ # 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
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
+
(20:02:50) ~/Work/couchdb (master)
> git push origin master
Counting objects: 18170, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (6482/6482), done.
Writing objects: 100% (18170/18170), 4.06 MiB | 1.14 MiB/s, done.
Total 18170 (delta 12220), reused 17269 (delta 11448)
remote: Resolving deltas: 100% (12220/12220), completed with 16 local objects.
To github.com:apache/couchdb.git
acd2a6dee..f4c611380 master -> master
The Neighbourhoodie Software GmbH
Ohlauer Straße, 10999 Berlin
neighbourhood.ie
Handelsregister HRB 157851 B Amtsgericht Charlottenburg
Geschäftsführung: Jan Lehnardt
About to import 124 commits from import-src/rexi into src/rexi
? Are you sure you want to import these commits onto the current branch? Yes
Errored while running ImportCommand.execute
Failed to apply commit cadb7ff.
Error: Command failed: git am -3
Recorded preimage for 'src/rexi/src/rexi.erl'
Failed to merge in the changes.
Rolling back to previous HEAD (commit dc93b29).
{
"name": "package-foo",
"dependencies": {
"typescript":"*"
},
"scripts": {
"tsc": "tsc"
}
}