Skip to main content

BOK ™

BOK ™'s Public Library

May 01, 16

Syntastic is a plugin for Vim that can check the currently displayed code for syntax errors and mark those lines with the error messages. This is a type of feature that is typically available in an IDE. This is useful since compile or run-time errors in C++ (or any other language) can be discovered while writing the code without going outside Vim.

May 01, 16

What's the best approach for allowing, say, two external IP addresses?
Adding another rule negating another IP won't work as the 1st negation would have already matched and returned from the table.
One approach is to create a PRE_DOCKER table with a final return of DROP or REJECT before the DOCKER table.
This blog post will detail a method for this approach that's working well for my use case using Ubuntu 14.04 and Docker v1.7.

Also see https://forums.docker.com/t/restricting-external-container-access-with-iptables/2225

May 01, 16

Providing the ability for clients to cache static file requests is very important. It prevents the unneeded transfer of (static) files from server to client. Caching doesn’t only speedup things for the client, but also decreases the server load.

But which caching mechanisms does Caddy provide, and how can they be enabled?

Apr 30, 16

Getting caching right yields huge performance benefits, saves bandwidth, and reduces server costs, but many sites half-arse their caching, creating race conditions resulting in interdependent resources getting out of sync.

Apr 30, 16

WARNING This is a restrictive setup that will block access to some/many clients. Please evaluate your site and client base before enabling this!

Apr 29, 16

"ssl_trusted_certificate should contain your CA root certificate and any intermediate certificates needed to validate your server certificate. nginx uses this to verify the OCSP response received from the CA. If you have an intermediate certificate in your configured ssl_certificate file, you will need that same intermediate certificate in the ssl_trusted_certificate file. The order of the certificates does not seem to matter, it worked for me with CA root cert first followed by the intermediate certificates, and the other way around."

Apr 29, 16

Things get really interesting when you mix senfile, tcp_nodelay and tcp_nopush together.

Apr 24, 16

A set of very good questions and considerations to make when designing a new system. Very practical questions like understanding bottlenecks, scaling and load balancing methods, replication methods to use, …

Apr 24, 16

I’ve been using git full time for the past 4 years, and I wanted to share the most practical tips that I’ve learned along the way. Hopefully, it will be useful to somebody out there.

If you are completely new to git, I suggest reading Git Cheat Sheet first or checking out this free tutorial. This article is aimed at somebody who has been using git for three months or more.

Apr 19, 16

MkDocs is a fast, simple and downright gorgeous static site generator that's geared towards building project documentation. Documentation source files are written in Markdown, and configured with a single YAML configuration file.

Apr 19, 16

"Increase the Maximum Allowed Asset Size
Assets, i.e. binary documents like pdf and images, are stored as a single packet. This means that max allowed packet should be large enought to accomodate these. The 1MB default is usually not enough, so you can increase the max_allowed_packet variable of your MySQL server to allow for larger assets. We advise to not raise this further than necessary as performance will be reduced."

1 - 20 of 6985 Next › Last »
20 items/page

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo