- accountdown-basic -- username/password authentication for accountdown using salted hashes
- [accountdown](substack / accountdown) -- manage accounts with leveldb
- subleveldown -- sublevels implemented using leveldowns
- level-packager -- LevelUP package helper for distributing with a LevelDOWN-compatible back-end
- level-browserify -- convenience package bundling LevelUP & LevelDOWN or Level.js
- memdb -- LevelUp + MemDown
- accountdown-command
- abstract-leveldown
- level-updown -- LevelDOWN backed by LevelUP
- redisdown -- Redis backend for LevelUP
This tutorial will explain how to setup and run an OpenVPN container with the help of Docker.
OpenVPN provides a way to create virtual private networks (VPNs) using TLS (evolution of SSL) encryption. OpenVPN protects the network traffic from eavesdropping and man-in-the-middle (MITM) attacks. The private network can be used to securely connect a device, such as a laptop or mobile phone running on an insecure WiFi network, to a remote server that then relays the traffic to the Internet. Private networks can also be used to securely connect devices to each other over the Internet.
Docker provides a way to encapsulate the OpenVPN server process and configuration data so that it is more easily managed. The Docker OpenVPN image is prebuilt and includes all of the necessary dependencies to run the server in a sane and stable environment. Scripts are included to significantly autom
| import android.graphics.Bitmap; | |
| import android.graphics.BitmapShader; | |
| import android.graphics.Canvas; | |
| import android.graphics.Color; | |
| import android.graphics.Paint; | |
| import com.squareup.picasso.Transformation; | |
| public class CircleTransform implements Transformation { | |
| private final int BORDER_COLOR = Color.WHITE; |
| package com.github.manuelpeinado.toolbartest; | |
| import android.graphics.Color; | |
| import android.graphics.drawable.Drawable; | |
| import android.os.Bundle; | |
| import android.support.v7.app.ActionBarActivity; | |
| import android.support.v7.widget.Toolbar; | |
| import android.view.Menu; | |
| import android.view.View; |
| var DEFAULT_MAX_LISTENERS = 12 | |
| function error(message, ...args){ | |
| console.error.apply(console, [message].concat(args)) | |
| console.trace() | |
| } | |
| class EventEmitter { | |
| constructor(){ | |
| this._maxListeners = DEFAULT_MAX_LISTENERS |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| function hostReachable() { | |
| // Handle IE and more capable browsers | |
| var xhr = new ( window.ActiveXObject || XMLHttpRequest )( "Microsoft.XMLHTTP" ); | |
| var status; | |
| var server = window.location.hostname; | |
| if (window.location.port != '') { | |
| server += ':'+window.location.port; | |
| } |
| // === Arrays | |
| var [a, b] = [1, 2]; | |
| console.log(a, b); | |
| //=> 1 2 | |
| // Use from functions, only select from pattern | |
| var foo = () => [1, 2, 3]; |
| module AlertConfirmer | |
| class << self | |
| def reject_confirm_from &block | |
| handle_js_modal 'confirm', false, &block | |
| end | |
| def accept_confirm_from &block | |
| handle_js_modal 'confirm', true, &block | |
| end |
Moved to git repository: https://github.com/denji/nginx-tuning
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.