Skip to content

Instantly share code, notes, and snippets.

View mustafaerbay's full-sized avatar
🎯
Focusing

Mustafa Erbay mustafaerbay

🎯
Focusing
View GitHub Profile
@mustafaerbay
mustafaerbay / isexist_vs_isnotexist.go
Created March 14, 2025 10:56 — forked from mastef/isexist_vs_isnotexist.go
os.IsExist(err) vs os.IsNotExist(err)
/*
Watch out, os.IsExist(err) != !os.IsNotExist(err)
They are error checkers, so use them only when err != nil, and you want to handle
specific errors in a different way!
Their main purpose is to wrap around OS error messages for you, so you don't have to test
for Windows/Unix/Mobile/other OS error messages for "file exists/directory exists" and
"file does not exist/directory does not exist"
@mustafaerbay
mustafaerbay / web-servers.md
Created February 23, 2022 10:48 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@mustafaerbay
mustafaerbay / ke_list.txt
Created September 23, 2021 11:22
ke kelime listesi
ke
keke
kerrake
keşke
komplike
koşullu tepke
koşulsuz tepke
ilke
sakar meke
sake