Skip to content

Instantly share code, notes, and snippets.

@famzah
famzah / test.mjs
Created Sep 22, 2021
Prove that we can compare ArrayBuffer variables by casting them to a Uint8Array TypedArray view
View test.mjs
// in regards to: https://github.com/inspect-js/node-deep-equal/issues/94
/* global console */
/* eslint-disable no-console */
/* global ArrayBuffer */
/* global Uint8Array */
/* global Float32Array */
/* global Float64Array */
/* global Uint32Array */
@famzah
famzah / fcgid_proc_unix.c
Created Jan 17, 2017
mod_fcgi: Excessive memory usage when large files are uploaded
View fcgid_proc_unix.c
#define FCGID_VEC_COUNT 8
apr_status_t proc_write_ipc(fcgid_ipc *ipc_handle,
apr_bucket_brigade *output_brigade)
{
apr_status_t rv;
struct iovec vec[FCGID_VEC_COUNT];
int nvec = 0;
apr_bucket *e;
for (e = APR_BRIGADE_FIRST(output_brigade);
View ABC.groovy
package com.onresolve.jira.groovy.jql
import com.atlassian.crowd.embedded.api.User
import com.atlassian.jira.jql.query.QueryCreationContext
import com.atlassian.jira.util.MessageSet
import com.atlassian.query.clause.TerminalClause
import com.atlassian.query.operand.FunctionOperand
import org.apache.lucene.search.Query
class ABC extends AbstractScriptedJqlFunction implements JqlQueryFunction{