The meeting is on Tuesday, Apr 28 @ 6pm. It will be held, as the last few meetings were, at Center for Open Science.
RSVP here: https://alephpoint.wufoo.com/forms/pycho-rsvp-beyond-pycon/
# 0 is too far from ` ;) | |
set -g base-index 1 | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
#set -g default-terminal screen-256color | |
set -g status-keys vi | |
set -g history-limit 10000 |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
The meeting is on Tuesday, Apr 28 @ 6pm. It will be held, as the last few meetings were, at Center for Open Science.
RSVP here: https://alephpoint.wufoo.com/forms/pycho-rsvp-beyond-pycon/
import os | |
import sys | |
import io | |
import tarfile | |
import urllib.request | |
ARCHIVE_URL = 'http://d.pr/f/YqS5+' | |
set-option -g status-utf8 on | |
set -g status-interval 1 | |
set -g status-justify left # center align window list | |
set -g status-left-length 75 | |
set -g status-right-length 150 | |
set -g status-fg white | |
set -g status-bg black | |
set -g status-attr bright |
Linode's NodeBalancer assumes (as of Apr 2015) that a 500 response means that the node should be removed from rotation. Naturally, exceptions happen, so this is a very serious design limitation for any application which allows its code to have uncaught exceptions. I have opened a support ticket, with discussion copied here.
Ultimately, we had to rewrite our 500 responses to a non-50x response, which is strange to our application, but at least the change was limited to an nginx config and a single line of JavaScript to handle our status code as a server error. Linode specifically advised to use a non-50x response. All we need is a configuration in the NodeBalancer to not use passive checks on 500 Internal Server Error responses. There is no such configuration.
Due to the head-scratching nature of this configuration, we used 418 I'm a teapot
in place of 500 responses. In nginx:
proxy_intercept_errors on;
error_page 500 =418 /_error/internal-serve
Credential Type | Consumer Use |
---|---|
Driver's License | Open a new bank account |
Loyalty Card | Purchase winter clothes |
Passport | Buy an airline ticket |
In this guide I’ve tested a number of different commands and configurations using Docker to run a container with dhcpd (+macvlan driver) to serve my clients in my home network. In the end i’ll migrate from my Windows 2012 R2 Server running DHCP to a much more lightweight Docker container (7.42 MB in total). Wow.
interface PlainText extends String { | |
__plaintext__: never | |
} | |
interface Base64Encoded extends String { | |
__base64Encoded__: never | |
} | |
interface Encrypted extends String { | |
__encrypted__: never | |
} |
#!/bin/bash | |
## Create the response FIFO | |
rm -f response | |
mkfifo response | |
function handle_GET_home() { | |
RESPONSE=$(cat home.html | \ | |
sed "s/{{$COOKIE_NAME}}/$COOKIE_VALUE/") | |
} |