Skip to content

Instantly share code, notes, and snippets.

View borisdiakur's full-sized avatar
🍵
♬♫♪◖(- ᵕ -)◗ノ ♪♫♬

Boris Diakur borisdiakur

🍵
♬♫♪◖(- ᵕ -)◗ノ ♪♫♬
View GitHub Profile
@borisdiakur
borisdiakur / git-tidy.sh
Last active September 28, 2023 07:39 — forked from antonio/delete_rebased_and_merged_branches.sh
Deletes branches which were rebased and merged into main.
#!/bin/sh
git stash
git checkout main
git fetch
git pull --rebase
for branch in $(git branch -a | sed 's/^\s*//' | sed 's/^remotes\///' | grep -v 'main$'); do
if [[ ! "$branch" =~ "origin/" ]]; then
last_commit_msg="$(git log --oneline --format=%f -1 $branch)"
if [[ "$(git log --oneline --format=%f | grep $last_commit_msg | wc -l)" -eq 1 ]]; then
@borisdiakur
borisdiakur / Nework_throttling_profiles.md
Created January 6, 2022 23:07 — forked from theodorosploumis/Nework_throttling_profiles.md
Web development - Custom network throttling profiles
Profile download (kb/s) upload (kb/s) latency (ms)
Native 0 0 0
GPRS 50 20 500
56K Dial-up 50 30 120
Mobile EDGE 240 200 840
2G Regular 250 50 300
2G Good 450 150 150
3G Slow 780 330 200