Skip to content

Instantly share code, notes, and snippets.

@sndao
sndao / dc.sh
Created October 29, 2025 03:03 — forked from GNOMES/dc.sh
cd backwards to named directoy in current path
# Add to ~/.bashrc
# jump backwards from cwd path
dc() {
cd "${PWD%/$1/*}/$1/" 2>/dev/null || echo "Directory not found: $1"
}
# Function to add tab completion to dc
_dc_complete() {
IFS='/' read -ra dirs <<<"$(pwd)"
local dir_names=("${dirs[@]:1}")
@sndao
sndao / ebay_listing_template.html
Created November 22, 2022 17:25
ebay_listing_template.html
<!--ITEM TITLE-->
<h1 style="font-size:24px; font-weight:bold; margin-bottom:0;">
<ITEM_TITLE_TEXT/>
</h1>
<!--DETAILS ABOUT THIS ITEM-->
<h2 style="font-size:20px; font-weight:bold; margin-top:32px; margin-bottom:3px;">
Details About This Item
</h2>
@sndao
sndao / business-models.md
Created November 30, 2019 06:28 — forked from ndarville/business-models.md
Business models based on the compiled list at http://news.ycombinator.com/item?id=4924647. I find the link very hard to browse, so I made a simple version in Markdown instead.

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google