Skip to content

Instantly share code, notes, and snippets.

View ceddc's full-sized avatar
🙃
👍

Cédric Despierre Corporon ceddc

🙃
👍
View GitHub Profile
@ceddc
ceddc / dlPatchEnterprise.py
Created July 4, 2023 08:16
ArcGIS Enterprise Download patches for a specific version
import requests
import json
import os
version = "10.9.1"
fileType = "msp" #tar for linux
url = "https://downloads.esri.com/patch_notification/patches.json"
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3'
}
@ceddc
ceddc / gist:5a1e27cfb6820ea154aefef8dd1693ec
Last active June 1, 2016 11:51
Because there is only one result on a deleted forum page about arcgis / esri and error 80040356 on all the internet !
Subject Programmatically start editing a non-versioned database
Author Berend Veldkamp
Date Sep 29, 2009
Message When I call IEditor.StartEditing() on a non-versioned database, I get this error: "Run-time error '-2147220650 (80040356)'". I can prevent this by unchecking the option "Editor > Options > Versioning > Edit a version....". Is there a way to set that option programmatically, so that I can call IEditor.StartEditing() on such a database?
Sub startEdit()
Dim doc As IDocument
Set doc = ThisDocument