A single-file, cross-platform script that detects Electron Apps and their versions — without external dependencies.
Works on:
- macOS (via
mdfind
+strings
) - Linux (Debian, Ubuntu, Fedora, Arch, Flatpak, AppImage)
- Windows (via PowerShell)
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" | |
"http://www.apple.com/DTDs/PropertyList-1.0.dtd"\> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key><string>com.melashri.ssid-dns</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/Users/melashri/.local/bin/ssid-dns</string> | |
</array> |
#!/usr/bin/env python3 | |
""" | |
Syntax Highlighting CSS Generator for Zola from Pygments Themes | |
Description: | |
Generate a combined light/dark mode syntax highlighting CSS file for Zola. | |
This script takes one light theme and one dark theme from Pygments and produces | |
a CSS file in the same format as the existing highlight.css file. | |
Author: Mohamed Elashri |
#!/usr/bin/env bash | |
# root_benchmark.sh – compile a minimal ROOT and collect build metrics | |
set -euo pipefail | |
############### Color helpers ############### | |
bold=$(tput bold) || true | |
red=$(tput setaf 1) || true | |
green=$(tput setaf 2) || true | |
yellow=$(tput setaf 3) || true |
Electron-based applications (e.g., 1Password, VSCode, Discord, etc.) crash on Linux systems where AMD's ROCm or amdgpu-install
driver stack is present. A representative error message looks like this:
Cannot find target for triple amdgcn-- Unable to find target for this triple (no targets are registered)
...
[ERROR:gpu_process_host.cc(981)] GPU process exited unexpectedly: exit_code=139
Condor _q
Cheatsheet
1. View & Summarize Jobs
Command | What it Does | Example |
---|---|---|
condor_q |
Batched summary (one line per cluster) | condor_q |
condor_q -nobatch |
Per‑job listing (one line per proc) | condor_q -nobatch 195 |
This script fetches and analyzes the top cited High Energy Physics - Phenomenology (HEP-PH) papers from 2024 using the INSPIRE API. It focuses on papers with 10 or fewer authors and generates a detailed table of the most cited papers.
pip install requests pandas tabulate
This script automates the creation of a Conda environment for working with ROOT and Python, including optional configuration for additional packages, Conda channels, and Python versions. It also sets up environment variables for seamless integration with tools like VSCode and Jupyter Notebook.