Skip to content

Instantly share code, notes, and snippets.

View scivision's full-sized avatar
💭
I will be slow to respond.

scivision

💭
I will be slow to respond.
View GitHub Profile
@scivision
scivision / Readme.md
Last active June 27, 2026 00:43
GCC/Gfortran or Clang/Flang PowerShell source scripts for Windows

PowerShell source scripts for GCC/Gfortran or Clang/Flang

Use from Windows Powershell like:

. clang_arm.ps1

or

@scivision
scivision / Readme.md
Last active May 6, 2026 16:07
Moved to regular repository
@scivision
scivision / memory_pressure.sh
Last active April 13, 2026 02:47
Sample maximum memory (RAM) pressure on Linux or macOS
#!/bin/bash
# Process tree memory peak monitor (samples at 10 Hz) for a given command.
# Works on Linux (uses PSS) and macOS (uses RSS)
#
# Usage:
# ./memory_pressure.sh /path/to/executable [arguments...]
#
# Alternative:
# for Linux only, one could use Cgroups v2 to track memory usage of the process tree
@scivision
scivision / .gitignore
Last active March 30, 2026 04:02
macOS DYLD_* environment variable wrapper script example
.buildtool/
bin/
lib/
@scivision
scivision / collisions3D.py
Last active February 24, 2026 23:43 — forked from ljlamarche/collisions3D.py
Debugging collision frequency calculation
# /// script
# requires-python = ">=3.10"
# dependencies = [
# "gemini3d",
# "numpy",
# "matplotlib",
# "xarray",
# ]
# ///
"""
@scivision
scivision / Readme.md
Last active February 16, 2026 15:38
Detect Windows .exe CPU arch (ARM64, x86_64, ...)

Windows .exe CPU arch detection and DLL import list

Use LIEF with Python for introspection of executable files.

Print Windows DLL imports

python print_imports.py $Env:WINDIR/System32/notepad.exe
@scivision
scivision / 2025.3.md
Last active March 9, 2026 02:42
Intel oneAPI Windows bin/*.exe lists
dir "%CMPLR_ROOT%\bin\*.exe" /b /a-d
aocl-ioc64.exe
deftofd.exe
dpcpp-cl.exe
dpcpp.exe
fpp.exe
@scivision
scivision / Readme.md
Last active March 17, 2026 13:59
Examples of using E-CHAIM model

E-CHAIM altitude profile MATLAB

E-CHAIM ionospheric model is available for C, IDL, and Matlab. We will describe the Matlab version only here.

This example is for E-CHAIM Matlab release 4.3.2. Free registration is required to download the E-CHAIM Zip archive. Extract this archive from Matlab:

@scivision
scivision / Readme.md
Last active February 16, 2026 13:27
YouTube channel download with yt-dlp from Python script

YouTube channel download using yt-dlp from Python

Just a simple script to store useful yt-dlp options. Like what one would do with a Bash script, but platform-agnostic.