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
<include> | |
<context name="public"> | |
<extension name="localxtens"> | |
<condition field="destination_number" expression="^([0]?[9]?88975[0-9][0-9])$"> | |
<action application="set" data="ringback=${us-ring}"/> | |
<action application="bridge" data="${sofia_contact(internal/$1@$${domain})}"/> | |
</condition> | |
<condition field="${sip_has_crypto}" expression="^(AES_CM_128_HMAC_SHA1_32|AES_CM_128_HMAC_SHA1_80)$" break="never"> |
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 StreamHandler(tornado.web.RequestHandler): | |
@tornado.web.asynchronous | |
def get(self): | |
self.post() | |
@tornado.web.asynchronous | |
def post(self): | |
self.ioloop = tornado.ioloop.IOLoop.instance() | |
self.pipe = self.get_pipe() | |
self.ioloop.add_handler( |
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
static | |
08602cf1.0 -> boxes_CA.pem | |
9b5e6b55.r0 -> crl.pem | |
aabda215.0 -> afikoman_CA.pem | |
ea48d2c0.0 -> customers_CA.pem | |
1000.key | |
1000.pem | |
customers_CA.pem | |
afikoman_CA.pem | |
boxes_CA.pem |
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
There are a lot of simple, intuitive explanations of this to be had out there … but I kind of hate them all. You might google around a bit and find discussion of something called "relativistic mass," and how it requires more force to accelerate an object that's already moving at a high velocity, stuff like that. That's a venerable way of interpreting the mathematics of special relativity, but I find it unnecessarily misleading, and confusing to the student who's just dipping her first toe into the ocean of modern physics. It makes the universe sound like a much different, and much less wonderful, place than it really is, and for that I kind of resent it. | |
When I talk about this subject, I do it in terms of the geometric interpretation that's consistent with general relativity. It's less straightforward, but it doesn't involve anything fundamentally more difficult than arrows on pieces of paper, and I think it offers a much better understanding of the universe we live in than hiding behind abstractions like "f |
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 StreamHandler(AMSHandler): | |
@tornado.web.asynchronous | |
def get(self): | |
self.post() | |
@tornado.web.asynchronous | |
def post(self): | |
self.write("<pre>") | |
self.ioloop = tornado.ioloop.IOLoop.instance() | |
self.pipe = self.get_pipe() |
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
#!/usr/bin/env python | |
# -*- coding: UTF-8 -*- | |
from amsutils import common, confighelpers | |
from amsutils.common import shell | |
from amsutils.confighelpers import get_meta_config | |
lines = [ | |
# take the bridge down | |
"ifconfig afik_br down", |
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
#!/usr/bin/env python | |
# -*- coding: UTF-8 -*- | |
import sys, os, time, atexit | |
from signal import SIGTERM | |
class Daemon: | |
""" | |
A generic daemon class. | |
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
rocommunity afikoman | |
## sec.name source community | |
## ======== ====== ========= | |
com2sec local localhost afikoman | |
com2sec network_1 20.0.0.0/24 afikoman | |
com2sec network_2 10.0.0.0/24 afikoman | |
## Access.group.name sec.model sec.name | |
## ================= ========= ======== | |
group MyROGroup_1 v1 local |
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
www: | |
requirements: | |
- faye | |
- jade |
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
hash32 = lambda value: hash(value) & 0xffffffff |