Skip to content

Instantly share code, notes, and snippets.

View schmichael's full-sized avatar

Michael Schurter schmichael

View GitHub Profile
11:51 < schmichael> Alex_Gaynor: someone just sent me this, and i thought you might find it interesting wrt your work with FFI via DWARF symbols: http://gcc.gnu.org/onlinedocs/gccint/LTO.html
11:51 < schmichael> but this is pretty far out of my area of expertise, so i could be way off
11:52 < Alex_Gaynor> schmichael: Yeah, I know how LTO to works, didn't think about it in the context of this.
11:52 < Alex_Gaynor> schmichael: I wonder if someone (academic probably) could build some crazy system where a JIT could actually inline C code using this.
let g:syntastic_python_checker = "flake8"
let g:syntastic_python_checker_args = "--ignore=E261,E225,E401"
package com.alpha;
message A {
required int32 a = 1;
}
message Common {
required int32 c = 1;
}
import mox
import time
# Pretend this is a web view and that calling time.time is something you actually want to test
def some_function_that_calls_time_twice():
start = time.time()
# do super expensive work here... hit a database maybe?
end = time.time()
Configuring ExtUtils-ParseXS-3.15 ... N/A
! Configure failed for ExtUtils-ParseXS-3.15. See /home/schmichael/.cpanm/build.log for details.
! Bailing out the installation for Module-Build-0.40. Retry with --prompt or --force.
! Bailing out the installation for App-cpanminus-1.5011. Retry with --prompt or --force.
8 distributions installed
# schmichael@drventure:~$ vi a.py
# schmichael@drventure:~$ python
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> def i():
... s = time.time()
... import a
diff -r c9910fd022fc -r 0cc743bd3a6d Doc/library/ssl.rst
--- a/Doc/library/ssl.rst Tue Apr 10 10:59:35 2012 -0400
+++ b/Doc/library/ssl.rst Tue May 29 14:31:16 2012 -0700
@@ -218,14 +218,6 @@
Note that use of this setting requires a valid certificate validation file
also be passed as a value of the ``ca_certs`` parameter.
-.. data:: PROTOCOL_SSLv2
-
- Selects SSL version 2 as the channel encryption protocol.
Index: SWIG/_ssl.i
===================================================================
--- SWIG/_ssl.i (revision 739)
+++ SWIG/_ssl.i (working copy)
@@ -48,8 +48,6 @@
%rename(ssl_get_alert_desc_v) SSL_alert_desc_string_long;
extern const char *SSL_alert_desc_string_long(int);
-%rename(sslv2_method) SSLv2_method;
-extern SSL_METHOD *SSLv2_method(void);
Index: SWIG/_ssl.i
===================================================================
--- SWIG/_ssl.i (revision 739)
+++ SWIG/_ssl.i (working copy)
@@ -48,8 +48,6 @@
%rename(ssl_get_alert_desc_v) SSL_alert_desc_string_long;
extern const char *SSL_alert_desc_string_long(int);
-%rename(sslv2_method) SSLv2_method;
-extern SSL_METHOD *SSLv2_method(void);
~/etc$ circusctl stop
error: command '{"command": "stop", "properties": {}}': process no longer exists (pid=5820)
~/etc$ circusctl stop
error: command '{"command": "stop", "properties": {}}': process no longer exists (pid=5832)
~/etc$ circusctl stop all
error: program all not found
~/etc$ circusctl stop
ok