본문 바로가기

Script

(4)
Dump Zotero files with folder/file structures restored (zotero2papis) The difference between "storage" (Zotero original) and "output" (result of zotero2papis) is because each zotero folders contains additional 'cache' and 'info' files. Instead of papis-zotero importer, zotero2papis works better when dumping Zotero files with folder/file structures restored* papis/papis-zotero: Zotero compatibility layer for papis (github.com)> papis zotero import --from-sql-folder..
Visualize 3gpp yang model with pyang+iplantuml on python jupyter notebook 1. Fetch the latest yang model from 3gpp (Management and Orchestration APIs repository) SA5 – Management & Orchestration and Charging / Management and Orchestration APIs · GitLab (3gpp.org)Model file is located at: e.g., https://forge.3gpp.org/rep/sa5/MnS/-/tree/Rel-18/yang-models 2. install prerequisites$ pip install pyang iplantumldownload plantuml ( https://github.com/plantuml/plantuml/releas..
Fetch Zotero collection items recursively with pagination (C#) using System.Linq;string url = "https://api.zotero.org/users//collections/GDRUMMLB/items/top";string responseText = string.Empty;while (true) { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); request.Method = "GET"; request.Headers.Add("Zotero-API-Version", "3"); request.Headers.Add("Zotero-API-Key", ""); using (WebResponse resp = request.GetResponse()) { ..
Dump Chrome LocalDB contents with python import json import pathlib import ccl_chromium_localstorage level_db_in_dir = pathlib.Path(R"C:\Users\user\AppData\Local\Microsoft\Edge\User Data\Default\Local Extension Settings\fcmfnpggmnlmfebfghbfnillijihnkoh") with ccl_chromium_localstorage.LocalStoreDb(level_db_in_dir) as local_storage: for record in local_storage._ldb.iterate_records_raw(): j=json.loads(record.value.decode('utf8')) if 'val..