Skip to content

Instantly share code, notes, and snippets.

Jan Lehnardt janl

Block or report user

Report or block janl

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View docker-alpine-rookie.shell
/ # 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
View tiny-npm.md
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:
View tiny-npm.erl.diff
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
View semi-auto-update-from-old-owncloud-version.sh
#!/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
View haproxy.conf
# 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 Aug 21, 2018
The New Hoodie Architecture
View new-hoodie-architecture.md

// 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
View couch_httpd_multipart.erl.diff
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
+
View couch_httpd_multipart.erl.diff
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
+
View hi.txt
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,
View install-geocouch.sh
#!/bin/sh -x
cd /tmp
if [ ! -d "geocouch" ]; then
git clone https://github.com/couchbase/geocouch.git
fi
cd geocouch
git checkout couchdb1.2.x
You can’t perform that action at this time.