Skip to content

Instantly share code, notes, and snippets.

View allmarkedup's full-sized avatar

Mark Perkins allmarkedup

View GitHub Profile
@allmarkedup
allmarkedup / insert-missing-newlines.md
Last active September 8, 2025 17:19
Add missing trailing newline to all files in a git repo #codesnippet

Insert missing newlines into all files in git repo

git ls-files -z | while IFS= read -rd '' f; do if file --brief --mime-encoding "$f" | grep -qv binary; then tail -c1 < "$f" | read -r _ || echo >> "$f"; fi; done

Filter by extension type

@allmarkedup
allmarkedup / Full-Markdown.md
Created November 22, 2025 23:03 — forked from allysonsilva/Full-Markdown.md
⚡️ Full Markdown Example

Headers

# h1 Heading 8-)
## h2 Heading
### h3 Heading
#### h4 Heading
##### h5 Heading
###### h6 Heading
@allmarkedup
allmarkedup / killport.sh
Created January 6, 2026 20:08 — forked from xdesro/killport.sh
Kill processes at a given port.
function killport {
echo '🚨 Killing all processes at port' $1
lsof -ti tcp:$1 | xargs kill
}