- Documentation
- NGINX http_gzip module
- NGINX http_gunzip module
- Enable gzip. by default, we’re not going to compress the responses that we’re getting from proxied servers or any piece of content that isn’t HTML.
- But if one of our proxied servers happens to send us a pre-compressed response then we probably want to decompress it for clients that can’t handle gzip. In this situation, we’ll use the gunzip module
$ vim /etc/nginx/nginx.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Either | |
def self.pure(value) | |
Right.new(value) | |
end | |
class Left | |
def initialize(left) | |
@left = left | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* See all current contexts | |
* For each context see all the jobs that are running | |
* History of past jobs for a given context. Actually this is not technically available via API; but history of past jobs | |
* Be able to see configuration for each job present or past (this is available via a tiny "C" link in current UI) | |
* Job results | |
* Link to Spark UI for detailed analysis |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const daggy = require('daggy'); | |
const {foldMap} = require('pointfree-fantasy') | |
const {concat, toUpper, prop, identity, range, compose} = require('ramda'); | |
// Contravariant functors usually have this shape F(a -> ConcreteType). | |
// In other words, some type holding a function which is parametric on its input, but not output. | |
// They don't always have that shape, but it's a good intuition | |
// Covariant functors are what we're used to, which are parametric in their output | |
//================================================================ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Bosun unit file at /etc/systemd/system/bosun.service | |
[Unit] | |
Description=Bosun Service | |
After=network.target | |
After=docker.service | |
After=rsyslog.service | |
[Service] | |
Type=simple | |
User=root |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/vm_opts.h b/vm_opts.h | |
index b67e254..3e3935a 100644 | |
--- a/vm_opts.h | |
+++ b/vm_opts.h | |
@@ -18,8 +18,8 @@ | |
* Following definitions are default values. | |
*/ | |
-#define OPT_TRACE_INSTRUCTION 1 | |
-#define OPT_TAILCALL_OPTIMIZATION 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require( 'gulp' ), | |
server = require( 'gulp-develop-server' ); | |
// run server | |
gulp.task( 'server:start', function() { | |
server.listen( { path: './app.js' } ); | |
}); | |
// restart server if app.js changed | |
gulp.task( 'server:restart', function() { |
(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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'stringio' | |
module Capture | |
def self.stdout &block | |
$stdout = captured_stdout = StringIO.new | |
block.call | |
captured_stdout | |
ensure | |
$stdout = STDOUT | |
block.call |
NewerOlder