This file contains 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
// Logging. | |
error_log (print_r ($whatever, true)); | |
foreach (debug_backtrace() as $en) | |
error_log (' ' . (empty ($en['file']) ? '' : $en['file'] . ':' . $en['line']) . '; ' . $en['function']); | |
file_put_contents ('/tmp/php.delme.log', print_r ($..., true) . "\n", FILE_APPEND); | |
// Interpolation hack (http://php.net/manual/en/language.types.string.php#91628). | |
function _e ($v) {return $v;} // Usage: $_e = '_e'; "foo {$_e ('bar')}" | |
// Casting a variable in IntelliJ. |
This file contains 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
// apxs -i -a -c mod_sustest.c | |
// SetHandler sustest | |
#include <httpd.h> | |
#include <http_protocol.h> | |
#include <http_config.h> | |
#include <http_request.h> | |
#include <http_log.h> | |
#include <http_connection.h> | |
#include <ap_mpm.h> |
This file contains 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
--- a/server/mpm/event/event.c 2013-07-11 16:24:26.000000000 +0400 | |
+++ b/server/mpm/event/event.c 2014-03-31 12:05:54.314892858 +0400 | |
@@ -1044,6 +1044,7 @@ | |
} | |
} | |
else if (cs->pub.state == CONN_STATE_SUSPENDED) { | |
+ cs->c->vhost_lookup_data = cs; // A hack to save the `cs` for `resume_suspended`. | |
apr_atomic_inc32(&suspended_count); | |
} | |
/* |
This file contains 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
// Cygwin: cd /tmp; g++ -O3 -fno-inline-functions -Wall -std=c++11 eador-unpack.cc -o eador-unpack -lz | |
// MinGW: g++ -static -O3 -fno-inline-functions -Wall -std=c++11 eador-unpack.cc -o eador-unpack -lz && upx eador-unpack.exe | |
// "They are just using ionic zip to compress part of the contents" | |
// http://www.cheathappens.com/show_board2.asp?headID=117333&titleID=19617&onPage=11 | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <sys/stat.h> | |
#include <unistd.h> |
This file contains 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
[package] | |
name = "err" | |
version = "0.0.1" | |
authors = ["ArtemGr"] | |
[[bin]] | |
name = "test" | |
path = "test.rs" | |
[dependencies] |
This file contains 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
pub mod ICU { | |
// --- Hand-made ICU bindings --- | |
// $ apt-get install -y libicu-dev | |
// To check the argument types: | |
// $ apt-get install -y libicu52-dbg | |
// $ cd /usr/lib/x86_64-linux-gnu && gdb libicui18n.so | |
// ) print utrans_open_52 | |
// ) ptype UChar | |
// ) ptype UParseError |
This file contains 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
#![feature(scoped_tls)] | |
#[macro_use] extern crate nickel; | |
use nickel::Nickel; | |
use nickel::router::http_router::HttpRouter; | |
use nickel::ResponseFinalizer; | |
struct MyObject; | |
impl MyObject { |
This file contains 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
INFO:cargo::ops::cargo_rustc::fingerprint: fingerprint at: /tmp/yup-oauth2/target/debug/.fingerprint/yup-oauth2-f648bac97266aa1c/lib-yup-oauth2 | |
DEBUG:cargo::ops::cargo_rustc::fingerprint: extra Target { kind: Lib([Lib]), name: "yup-oauth2", src_path: "/tmp/yup-oauth2/src/lib.rs", metadata: Some(Metadata { metadata: "f648bac97266aa1c", extra_filename: "-f648bac97266aa1c" }), tested: true, benched: true, doc: true, doctest: true, harness: true, for_host: false } Profile { opt_level: 0, lto: false, codegen_units: None, rustc_args: None, debuginfo: true, debug_assertions: true, rpath: false, test: false, doc: false } None = def601c33e56949f | |
DEBUG:cargo::ops::cargo_rustc::fingerprint: extra Target { kind: Lib([Dylib]), name: "serde_macros", src_path: "/root/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_macros-0.4.0/src/lib.rs", metadata: Some(Metadata { metadata: "a56f347bda653264", extra_filename: "-a56f347bda653264" }), tested: true, benched: true, doc: true, doctest: false, harness: true, for_host: true |
This file contains 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
[artemgr@pcbsd /tmp/plotkit-patches]$ git diff | |
diff --git a/PlotKit/SweetCanvas.js b/PlotKit/SweetCanvas.js | |
index dcfdfc5..39cbf2c 100644 | |
--- a/PlotKit/SweetCanvas.js | |
+++ b/PlotKit/SweetCanvas.js | |
@@ -195,6 +195,10 @@ PlotKit.SweetCanvasRenderer.prototype._renderLineChart = function() { | |
// faux shadow for firefox | |
if (this.options.shouldFill) { | |
+ // Transparent fill. |
OlderNewer