Skip to content

Instantly share code, notes, and snippets.

View whitep4nth3r's full-sized avatar

Salma Alam-Naylor whitep4nth3r

View GitHub Profile
@whitep4nth3r
whitep4nth3r / truncate.css
Created June 1, 2022 12:48
Truncate text by height with ellipses (CSS)
.truncate {
overflow: hidden;
-webkit-line-clamp: 2;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
display: -webkit-box;
}
@whitep4nth3r
whitep4nth3r / zero-kb-favicon
Created November 22, 2021 15:05
Zero KB Favicon
<link
href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQEAYAAABPYyMiAAAABmJLR0T///////8JWPfcAAAACXBIWXMAAABIAAAASABGyWs+AAAAF0lEQVRIx2NgGAWjYBSMglEwCkbBSAcACBAAAeaR9cIAAAAASUVORK5CYII="
rel="icon"
type="image/x-icon"
/>
@whitep4nth3r
whitep4nth3r / reset-next.sh
Last active September 22, 2024 14:49
Reset a new Next.js application with an HTML language attribute, responsive font sizes, and cleaned up index.js
#!/bin/bash
# Input flags
LANG=""
APP_NAME=""
# The directory path must be relative to where the script lives
DIR=""
@whitep4nth3r
whitep4nth3r / gist:e6b10ef17636e29010d7a8b57800685e
Created May 5, 2021 12:13
Delete all branches merged into main
// Add to your shell configuration to improve your life!
dam() {
git checkout main && git branch --merged | egrep -v "(^\*|main)" | xargs git branch -d
}