Skip to content

Instantly share code, notes, and snippets.

View displague's full-sized avatar
🐝
Mergin' 🎶 on a Sunday afternoon 🎶

Marques Johansson displague

🐝
Mergin' 🎶 on a Sunday afternoon 🎶
View GitHub Profile
@displague
displague / mssql_helper.php
Created July 26, 2012 03:56
PDO_SQLSRV wrapper for legacy MSSQL PHP database functions
<?php
if (! extension_loaded('mssql') && extension_loaded('pdo_sqlsrv')) {
//Return an associative array. Used on mssql_fetch_array()'s result_type parameter.
define('MSSQL_ASSOC', '1');
//Return an array with numeric keys. Used on mssql_fetch_array()'s result_type parameter.
define('MSSQL_NUM', '2');
//Return an array with both numeric keys and keys with their field name. This is the default value for mssql_fetch_array()'s result_type parameter.
# encoding: utf-8
xml.instruct!
# Drop this file in your source directory
#
# Uses the builder gem.
# Add
# gem 'builder', '~> 2.0'
# to the Gemfile, and run builder install
#

Keybase proof

I hereby claim:

  • I am displague on github.
  • I am marques (https://keybase.io/marques) on keybase.
  • I have a public key whose fingerprint is CF2B 41F9 641B C514 131F 0534 2771 7999 E2D0 9AB6

To claim this, I am signing this object:

--- a/drivers/net/xen-netfront.c 2014-10-31 15:33:16.000000000 -0400
+++ b/drivers/net/xen-netfront.c 2014-10-31 15:36:04.000000000 -0400
@@ -497,7 +497,13 @@
offset = frag->page_offset;
/* Data must not cross a page boundary. */
- BUG_ON(len + offset > PAGE_SIZE<<compound_order(page));
+ // BUG_ON(len + offset > PAGE_SIZE<<compound_order(page));
+ if (len + offset > PAGE_SIZE<<compound_order(page)) {
+ netdev_err(queue->info->netdev, "len %d offset %d order %d PageHead %d i %d nr_frags %d \n",
@displague
displague / puphpet_local.patch
Created November 8, 2014 14:56
Run puphpet with: APP_ENV=dev php -S 127.0.0.1:8000 -t web/ web/app_dev.php
diff --git a/web/app_dev.php b/web/app_dev.php
index 453b353..866c46f 100644
--- a/web/app_dev.php
+++ b/web/app_dev.php
@@ -1,12 +1,18 @@
<?php
+$filename = __DIR__.preg_replace('#(\?.*)$#', '', $_SERVER['REQUEST_URI']);
+if (php_sapi_name() === 'cli-server' && is_file($filename)) {
+ return false;
<pre>
<cfscript>
function x() {
z = "1";
y();
}
function y() {
writeOutput("child sees " & z & "<br>");
}
@displague
displague / mvn-install.log
Created March 30, 2015 00:05
cflint mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building CFLint 0.4
[INFO] ------------------------------------------------------------------------
[WARNING] The artifact ant:ant:jar:1.7.0 has been relocated to org.apache.ant:ant:jar:1.7.0
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ CFLint ---
[INFO] Deleting /home/displague/src/CFLint/target
[INFO]
"============================================================================
"File: cflint.vim
"Description: Syntax checking plugin for cflint-syntastic
"
"============================================================================
" See http://vimdoc.sourceforge.net/htmldoc/quickfix.html#efm-ignore
"
" Sample Follows
"
"
<!--- Child.cfc --->
<cfcomponent extends="Parent">
<!--- No init method here. Inherits from Parent.cfc --->
</cfcomponent>
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.0.2-x86_64-linode56 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_PERF_EVENTS_INTEL_UNCORE=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"