Data URI manipulation made easy.
This isn't very robust, and will reject a number of valid data URIs. However, it meets the most useful case: a mimetype, a charset, and the base64 flag.
from OpenSSL.crypto import load_privatekey, load_certificate, FILETYPE_PEM | |
#from OpenSSL.SSL import SSLv3_METHOD | |
from twisted.internet import reactor | |
from twisted.internet.ssl import CertificateOptions, DefaultOpenSSLContextFactory, DiffieHellmanParameters | |
from twisted.web import proxy, server | |
from twisted.python.filepath import FilePath | |
sample_site = server.Site(proxy.ReverseProxyResource('localhost', 80, '')) # ignore it. | |
# AES256-SHA |
from twisted.internet.protocol import DatagramProtocol | |
from twisted.internet import reactor | |
forwardMap = { | |
5500 : [ "192.168.110.32:5500", "10.0.1.1:5500" ], | |
5499 : [ "192.168.110.32:5499" ], | |
15501 : [ "localhost:5501" ] | |
} |
WAL-E needs to be installed on all machines, masters and slaves.
Only one machine, the master, writes WAL segments via continuous archiving. The configuration for the master postgresql.conf
is:
archive_mode = on
archive_command = 'envdir /etc/wal-e.d/env wal-e wal-push %p'
archive_timeout = 60
Open Computing Language (OpenCL) is a language and framework for writing computationally intensive kernels that run accross heterogenious platforms, including GPUs, CPUs, and perhaps other more esoteric devices.
Intel provides an OpenCL implementation for Intel CPUs, but there's not a lot of instructions on how to get it set up. Here's what I did.
intel_sdk_for_ocl_applications_2013_xe_sdk_3.0.67279_x64.tgz
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
Result: 1 | |
Items { | |
TemplateId: "BADGE_BATTLE_ATTACK_WON" | |
Badge { | |
BadgeType: BADGE_BATTLE_ATTACK_WON | |
BadgeRanks: 4 | |
Targets: "\nd\350\007" | |
} | |
} | |
Items { |
Result: 1 | |
Items { | |
TemplateId: "BADGE_BATTLE_ATTACK_WON" | |
Badge { | |
BadgeType: BADGE_BATTLE_ATTACK_WON | |
BadgeRanks: 4 | |
Targets: [10, 100, 1000] | |
} | |
} | |
Items { |