Skip to content

Instantly share code, notes, and snippets.

View RickyMarou's full-sized avatar
🌻
Computers

Marwan Zibaoui RickyMarou

🌻
Computers
View GitHub Profile
@RickyMarou
RickyMarou / dbx_notebook_task_debug_datadog.py
Created September 18, 2025 07:16
Databrick Notebook task: Debug datadog init script
import os
displayHTML("<h1>datadog agent config</h1>")
def read_file_in_driver(file_path):
with open(file_path, 'r') as file:
return file.read()
file_content = read_file_in_driver('/etc/datadog-agent/datadog.yaml')
print(file_content)
@RickyMarou
RickyMarou / review_offline_cache.js
Created October 29, 2020 08:58
Mark offline cache files as viewed in GH PR
Array.from(document.querySelectorAll("a[title^='offline-cache/']")).forEach(linkElt => {
const fileElt = linkElt.closest("[data-details-container-group='file']");
const viewedLabel = fileElt.querySelector("input[name='viewed']").closest("label");
viewedLabel.click();
})