Skip to content

Instantly share code, notes, and snippets.

View kerzhner's full-sized avatar

Mike Kerzhner kerzhner

View GitHub Profile
http.request.full_uri eq "https://www.producthunt.com/frontend/graphql"
(starts_with(http.request.full_uri, "https://links.producthunt.com/") or starts_with(http.request.full_uri, "http://links.producthunt.com/")) and not (starts_with(http.request.full_uri, "http://") and http.request.full_uri contains "producthunt.com/")
(starts_with(http.request.full_uri, "https://cards.producthunt.com/cards/") or starts_with(http.request.full_uri, "http://cards.producthunt.com/cards/")) and not (starts_with(http.request.full_uri, "http://") and http.request.full_uri contains "producthunt.com/")
(starts_with(http.request.full_uri, "https://api.producthunt.com/widgets/") or starts_with(http.request.full_uri, "http://api.producthunt.com/widgets/")) and not (starts_with(http.request.full_uri, "http://") and http.request.full_uri contains "producthunt.com/") and not (http.request.full_uri eq "https://api.producthunt.com/widgets/internal/sidekiq" or http.request.full_uri eq "http://api.producthunt.com/widgets/internal/sidekiq")
@kerzhner
kerzhner / safe-costs.csv
Last active February 9, 2022 17:44
SAFE costs
Batch Size Function Gas Posting Fee
1 depositOnFromChain 142410 4932
1 authorizeWithdrawal 116269 5240
1 claimFromChainFunds 82169 3904
1 claimBatch 52862 6100
5 depositOnFromChain 712050 24660
5 authorizeWithdrawal 155577 5240
5 claimFromChainFunds 147939 3904
5 claimBatch 117878 9608
20 depositOnFromChain 2848200 98640
@kerzhner
kerzhner / machine.js
Last active February 29, 2020 01:12
Generated by XState Viz: https://xstate.js.org/viz
const config = {"id":"application-workflow","initial":"initializing","on":{"CHANNEL_UPDATED":{"actions":["sendChannelUpdatedNotification"]}},"states":{"initializing":{"on":{"CREATE_CHANNEL":{"target":"confirmCreateChannelWorkflow","actions":["assignChannelParams"]},"JOIN_CHANNEL":{"target":"confirmJoinChannelWorkflow","actions":["assignChannelId"]}}},"confirmCreateChannelWorkflow":{"initial":"getDataForCreateChannelConfirmation","states":{"getDataForCreateChannelConfirmation":{"invoke":{"src":"getDataForCreateChannelConfirmation","onDone":"invokeCreateChannelConfirmation"}},"invokeCreateChannelConfirmation":{"invoke":{"id":undefined,"src":"invokeCreateChannelConfirmation","data":(_, { data }) => data,"onDone":"done","autoForward":true}},"done":{"type":"final"}},"onDone":"createChannelInStore"},"confirmJoinChannelWorkflow":{"initial":"getDataForCreateChannelConfirmation","states":{"getDataForCreateChannelConfirmation":{"invoke":{"src":"getDataForCreateChannelConfirmation","onDone":"invokeCreateChannelConfirma
@kerzhner
kerzhner / machine.js
Created February 29, 2020 00:42
Generated by XState Viz: https://xstate.js.org/viz
const config = {"key":"advance-channel","initial":"sendState","states":{"sendState":{"entry":"spawnObserver","invoke":{"src":"sendState"},"on":{"ADVANCED":"success"}},"success":{"type":"final"}}}
const machine = Machine(config)
@kerzhner
kerzhner / console.log
Last active December 16, 2018 16:13
Firefox console logs
Download the React DevTools for a better development experience: https://fb.me/react-devtools bundle.js line 1435 > eval:66:9
Firefox can’t establish a connection to the server at http://zalmoxisus.github.io/__webpack_hmr. bundle.js line 2899 > eval:39:15
Source map error: Error: sourceMapURL could not be parsed
Resource URL: null
Source Map URL: data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMzg1LmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLyh3ZWJwYWNrKS1ob3QtbWlkZGxld2FyZS9jbGllbnQuanM/M2FjNSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKmVzbGludC1lbnYgYnJvd3NlciovXG4vKmdsb2JhbCBfX3Jlc291cmNlUXVlcnkqL1xuXG52YXIgb3B0aW9ucyA9IHtcbiAgcGF0aDogXCIvX193ZWJwYWNrX2htclwiLFxuICB0aW1lb3V0OiAyMCAqIDEwMDAsXG4gIG92ZXJsYXk6IHRydWUsXG4gIHJlbG9hZDogZmFsc2UsXG4gIGxvZzogdHJ1ZSxcbiAgd2FybjogdHJ1ZVxufTtcbmlmIChfX3Jlc291cmNlUXVlcnkpIHtcbiAgdmFyIHF1ZXJ5c3RyaW5nID0gcmVxdWlyZSgncXVlcnlzdHJpbmcnKTtcbiAgdmFyIG92ZXJyaWRlcyA9IHF1ZXJ5c3RyaW5nLnBhcnNlKF9fcmVzb3VyY2VRdWVyeS5zbGljZSgxKSk7XG4gIGlmIChvdmVycmlkZXMucGF0aCkgb3B0aW9ucy5wYXRoID0
looker_global_messages([{message: "Some video queries might timeout due to high request volume. See yo/sputnik-video-faq for support contacts. Apologies for the inconvenience!", level: "notice"}])
url = window.location.href;
var regex = new RegExp("[?&]callback(=([^&#]*)|&|#|$)")
results = regex.exec(url);
sCallback = results[2];
sCallback([{message: "Video Sputnik is experience a disk space outage on 6/30. We expect to restore the service on 7/1."}, {message: "Apologies for the inconvenience!"}]);
looker_global_messages([{"message": "AppsFlyer install attribution is coming to Sputnik! As we deploy this change, all install attribution data will be delayed until 1pm PST 09-29-2015."}])