Skip to content

Instantly share code, notes, and snippets.

@hattesen
hattesen / github-raw-content-type.md
Last active September 6, 2026 16:10
Creating URL links to GitHub (binary) PDF resources

Creating URL links to GitHub (binary) PDF resources

While GitHub provides a … menu that offers Download (raw file content) and Copy Permalink choices, the Permalink shows the content in the GitHub UI, and while it has a viewer for formats like PDF, it only displays a couple of pages at a time and doesn't provide content seach.

Github serving "raw" content

The Download menu item results in a a Save As… dialog, and doesn't expose the download URL, which makes it very difficult to share a link to the raw content.

The URL of the raw content of a file in a Github repository can be determined using the Inspect/Debug features of a browser, and inspecting the actual HTTP requests and responses being generated when pressing "Download …".

@hattesen
hattesen / .gitignore
Last active May 16, 2025 21:44
KiCAD 7 .gitignore files
## KiCad 7 - https://www.kicad.org/
## KiCad temporary files
# eg: ~PROJECT.kicad_sch.lck
~*.kicad_???.lck
# eg: .~lock.PROJECT.csv#
.~lock.*#
\#auto_saved_files#
fp-info-cache
@hattesen
hattesen / NestedLists.md
Last active October 13, 2023 13:30
GitHub MarkDown - Nested Lists

GitHub Web Editor Syntax Hilghlighting Bug in Nested Lists

The nested lists below are entered as per the Markdown formatting syntax in Nested Lists but in the GitHub Web Editor list entries with levels 3 and 6 are colored RED, indicating a syntax error.

Unordered Nested List

This markdown ...

- One