Skip to content

Instantly share code, notes, and snippets.

View valenting's full-sized avatar
🏖️
Vacation until Aug 3rd

Valentin Gosu valenting

🏖️
Vacation until Aug 3rd
View GitHub Profile
@valenting
valenting / ipc-redirect-graph.md
Last active August 9, 2022 09:09
HTTP IPC redirect
  sequenceDiagram  
 participant HttpChannelChild  
 participant HttpChannelParent  
 participant nsHttpChannel

% slightly simplified to avoid HttpChannelParentListener and nsAsyncRedirectVerifyHelper
 
 Note over HttpChannelChild: AsyncOpen
  HttpChannelChild->>HttpChannelParent: gNeckoChild->SendPHttpChannelConstructor
@valenting
valenting / prune_closed_revisions.py
Last active August 18, 2025 08:52
This script lists all of the WIP revisions in your Gecko mercurial repo and prunes those that have already been published
import subprocess
import re
import requests
import os
# Retrieve the API token from an environment variable
API_TOKEN = os.getenv('PHABRICATOR_API_TOKEN')
PHABRICATOR_URL = 'https://phabricator.services.mozilla.com/api/differential.revision.search'
def get_wip_commits():