Skip to content

Instantly share code, notes, and snippets.

View rjocoleman's full-sized avatar

Robert Coleman rjocoleman

  • Christchurch, New Zealand
View GitHub Profile
@rjocoleman
rjocoleman / change_use_mac_fileprovider.py
Last active July 13, 2022 11:14 — forked from emersonford/change_gdrive_smb_port.py
Python script to rewrite the `use_mac_fileprovider` setting for Google Drive to true to enable File Provider.
#!/usr/bin/env python3
# see https://apple.stackexchange.com/questions/420959/spotlight-indexing-of-google-drive-file-stream-disabled-on-restart/424445#424445 for an explanation
# based on https://gist.github.com/emersonford/85cc74f7f90c81d1b75c3c246124591d
import os
from copy import deepcopy
from math import log
from pathlib import Path
DEBUG = 0

Simplified TwoLevels

This backend is based on the concept of Zend_Cache's TwoLevels backend except it is only intended to use the fast backend for actual cache record storage and the slow backend for tagging support. The slow backend stores only empty records.

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecl="http://ECL.Online.BT.ChangeLog.ChangeLogRequest_v1_0_XML.xsd" xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Body>
<ecl:ChangeLogRequest>
<ecl:MessageDateTime>2013-02-25T14:03:09+13:00</ecl:MessageDateTime>
<ecl:BusinessUnit>CP</ecl:BusinessUnit>
<ecl:AccountNumber>91327067</ecl:AccountNumber>
<ecl:ReturnData>Pricing</ecl:ReturnData>
</ecl:ChangeLogRequest>
</soap:Body>