Skip to content

Instantly share code, notes, and snippets.

View mike-marcacci's full-sized avatar

Mike Marcacci mike-marcacci

View GitHub Profile
@mike-marcacci
mike-marcacci / gist:3493402
Created August 27, 2012 23:36
Hacked /system/expressionengine/modules/member/mod.member_settings.php allows Socialee users to change their screen names. Changes are noted by comments.
<?php
// ------ Line 1365 ---------
/**
* Username/Password Update
*/
function update_userpass()
{
@mike-marcacci
mike-marcacci / _debug_table_status.json
Last active February 19, 2016 20:37
backfilling debug
[
{
"config": {
"db": "75015e86-96ba-4e9a-bf50-f51d85bd533a",
"durability": "hard",
"id": "409eeee7-94b6-4f92-b0e3-ab836afa1c6f",
"indexes": [
"created",
"monitored",
"record_id",

Keybase proof

I hereby claim:

  • I am mike-marcacci on github.
  • I am mikemarcacci (https://keybase.io/mikemarcacci) on keybase.
  • I have a public key whose fingerprint is A10E BC70 B049 180C C1B8 FCE3 1841 0600 4D9F 3D76

To claim this, I am signing this object:

@mike-marcacci
mike-marcacci / AreaObject.js
Created January 8, 2018 19:00
Working around Google Cloud's Postgis ST_GeomFromGeoJSON failures
// @flow
import { mix } from 'mixwith';
import Model from '../../../Model';
import { type GeoJSONMultiPolygonCoordinates } from '../..';
import { NodeMixin, NodeInterface, type FieldDefinition } from '../../../core';
import { ObjectMixin, ObjectInterface } from '../../../delta';
import { AreaChange } from '../AreaChange/AreaChange';
import { Area } from '../Area/Area';
import wkx from 'wkx';
@mike-marcacci
mike-marcacci / Root.js
Last active July 10, 2019 13:18
Relay Modern SSR
// @flow
import React, { Component } from "react";
import PropTypes from "prop-types";
import App from "./components/App";
type Props = {
environment: *,
queryTracker?: *
};
Verifying my Blockstack ID is secured with the address 15D9vXeiJr4gNSBb5VMXrZ8qnWa5ZXN53a https://explorer.blockstack.org/address/15D9vXeiJr4gNSBb5VMXrZ8qnWa5ZXN53a
@mike-marcacci
mike-marcacci / index.js
Created June 8, 2018 16:28
Testing http/https/http2
const fs = require("fs");
const http = require("http");
const https = require("https");
const http2 = require("http2");
const form = `
<html>
<body>
<script>
const send = () => {
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex, nofollow">
<meta name="googlebot" content="noindex, nofollow">
<meta name="viewport" content="width=2000, initial-scale=1">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex, nofollow">
<meta name="googlebot" content="noindex, nofollow">
<meta name="viewport" content="width=2000, initial-scale=1">
//…
// Add readiness endpoint
let isShuttingDown = false;
app.use(
async (ctx, next): Promise<void> => {
if (ctx.request.path === "/_ready" || ctx.request.path === "/_ready/") {
if (isShuttingDown) {
ctx.status = 503;
ctx.set("Connection", "close");
ctx.body = "not ready";