Skip to content

Instantly share code, notes, and snippets.

View mattparlane's full-sized avatar

Matt Parlane mattparlane

View GitHub Profile
@mattparlane
mattparlane / cookie-storage.js
Last active August 25, 2017 04:25
localStorage-compatible store backed by cookies. Spans across multiple cookies if data is too big for one cookie.
h2o server (pid:3919) is ready to serve requests
old worker 3789 died, status:0
received HUP, spawning a new worker
starting new worker 4060
new worker is now running, sending TERM to old workers:3228,3919
killing old workers
received SIGTERM, gracefully shutting down
[INFO] raised RLIMIT_NOFILE to 1048576
h2o server (pid:4060) is ready to serve requests
old worker 3919 died, status:0
dr@drvm1:/$ sudo grep -riF --exclude-dir={proc,sys} "52.0.0.0" /
/home/dr/data/projects/marketing-api/node_modules/ipaddr.js/test/ipaddr.test.coffee: test.equal(ipaddr.IPv4.parse('252.0.0.0').prefixLengthFromSubnetMask(), 6)
/home/dr/data/projects/marketing-api/node_modules/ipaddr.js/test/ipaddr.test.coffee: test.equal(ipaddr.IPv4.subnetMaskFromPrefixLength("6"), "252.0.0.0")
/home/dr/.bash_history:route del 52.0.0.0
/home/dr/.bash_history:sudo route del 52.0.0.0
/home/dr/.bash_history:sudo route del -net 52.0.0.0
/home/dr/.bash_history:sudo route del -net 52.0.0.0 gw 0.0.0.0 netmask 255.0.0.0 dev eth0
/home/dr/.bash_history:sudo grep -ri "52.0.0.0" / 2> /dev/null
/home/dr/.bash_history:sudo grep -riF "52.0.0.0" / 2> /dev/null
/home/dr/.bash_history:sudo grep -riF "52.0.0.0" /
Delivered-To: mimi@destinyrescue.org
Received: by 10.159.59.102 with SMTP id j38csp1430993uah;
Tue, 24 Oct 2017 23:29:25 -0700 (PDT)
X-Google-Smtp-Source: ABhQp+QXeby6to6gc7KuOOfTL3xnRFU/dnPmU6kdfV6HTU1/6a/56nnBe3gIz44fHgpl3s2S63nc
X-Received: by 10.200.27.163 with SMTP id z32mr29417253qtj.8.1508912965090;
Tue, 24 Oct 2017 23:29:25 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1508912965; cv=none;
d=google.com; s=arc-20160816;
b=mptnPShzIr27g4dh6SdbmdvYoUWkY+2G+ZqSlYxrTtjfKKgPZRtCkRfBAy1c026Y7r
k9j7v6AK4wcwcPXSOGiHcxH3ow9UJnws579ljituQHJZ9f0lcpy7ksuciljWjHSQ/AAz
@mattparlane
mattparlane / add_containers_to_hosts.rb
Last active January 29, 2018 07:50
Add containers to host's /etc/hosts file
require 'json'
require 'hosts'
loop do
hosts = Hosts::File.read('/etc/hosts')
host_elements = hosts.elements
all_aliases = []
`docker ps`.split(/\n/).each do |line|
cols = line.split(/\s/)
next if cols[0] =~ /[^a-f0-9]/
class AlphabetEncoder {
private static $ALPHABET;
private static $ENCODE_LENGTH;
private static function populateAlphabet() {
if (self::$ENCODE_LENGTH) return;
for ($n = 48; $n < 58; $n++)
self::$ALPHABET[] = chr($n);
for ($n = 65; $n < 91; $n++)
self::$ALPHABET[] = chr($n);
openjdk version "10.0.1" 2018-04-17
OpenJDK Runtime Environment (build 10.0.1+10-Ubuntu-3ubuntu1)
OpenJDK 64-Bit Server VM (build 10.0.1+10-Ubuntu-3ubuntu1, mixed mode)
**********************************************************************************************************************************************
* Starting Relational Junction for Salesforce 5.8.0.032318.2 at Thu May 31 08:31:35 GMT 2018
* Copyright (c) 2004 Sesame Software, Inc. All rights reserved.
* U.S. Patents 8122040, 8375010 Sesame Software, Inc. All rights reserved.
* This agreement is subject to licensing terms as specified in the Sesame Software, Inc Software License Agreement.
* See http://www.sesamesoftware.com/license.html for the full text of this agreement.
**********************************************************************************************************************************************
This file has been truncated, but you can view the full file.
Skip to main content
Salesforce.com
Search...
Sandbox: Dev
Switch to Lightning ExperienceMatt Parlane
SetupHelp & Training
Marketing
Tab Navigation
HomeChatterGroupsCampaignsLeadsContactsAccountsOpportunitiesReportsDashboardsFilesRecurring DonationsSponsorships All Tabs
MacBook-Pro-3:fnsf-dx matt$ NODE_OPTIONS=--max-old-space-size=8192 /usr/local/bin/sfdx --dev-debug force:source:retrieve --manifest /Users/matt/sites/fnsf-dx/manifest/package.xml
Executing1: /Users/matt/.local/share/sfdx/client/bin/sfdx --dev-debug force:source:retrieve --manifest /Users/matt/sites/fnsf-dx/manifest/package.xml
Executing: SFDX_BINPATH=/Users/matt/.local/share/sfdx/client/bin/sfdx /Users/matt/.local/share/sfdx/client/bin/node --max-old-space-size=8192 /Users/matt/.local/share/sfdx/client/bin/sfdx.js --dev-debug force:source:retrieve --manifest /Users/matt/sites/fnsf-dx/manifest/package.xml
@oclif/config reading core plugin /Users/matt/.local/share/sfdx/client +0ms
@oclif/config loadJSON /Users/matt/.local/share/sfdx/client/package.json +0ms
@oclif/config loadJSON /Users/matt/.local/share/sfdx/client/oclif.manifest.json +3ms
@oclif/config:sfdx-cli using manifest from /Users/matt/.local/share/sfdx/client/oclif.manifest.json +0ms
@oclif/config reading user plugins pjson /Users/matt/.loca
<!doctype html>
<html>
<head>
<script crossorigin=anonymous src="https://code.jquery.com/jquery-3.5.1.slim.js"></script>
<script crossorigin=anonymous src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.js"></script>
<link rel=stylesheet crossorigin=anonymous href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.css">
<link rel=stylesheet crossorigin=anonymous href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css">
<link rel=stylesheet href="{{{default_style}}}">
<link rel=stylesheet href="{{{google_font_urls}}}">
</head>