Skip to content

Instantly share code, notes, and snippets.

View imanilchaudhari's full-sized avatar
💻
Learning Dart On Flutter

Anil Chaudhari imanilchaudhari

💻
Learning Dart On Flutter
View GitHub Profile
@imanilchaudhari
imanilchaudhari / git-change-commit-messages.md
Created January 14, 2019 06:17 — forked from nepsilon/git-change-commit-messages.md
How to change your commit messages in Git? — First published in fullweb.io issue #55

How to change your commit messages in Git?

At some point you’ll find yourself in a situation where you need edit a commit message. That commit might already be pushed or not, be the most recent or burried below 10 other commits, but fear not, git has your back 🙂.

Not pushed + most recent commit:

git commit --amend

This will open your $EDITOR and let you change the message. Continue with your usual git push origin master.

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@imanilchaudhari
imanilchaudhari / gist:f3c0682b800cea1efdb7d28379c56007
Created November 28, 2022 18:18 — forked from dvlop/gist:fca36213ad6237891609e1e038a3bbc1
My long list of bad bots to block in htaccess, ready to copy and paste!
# Start Bad Bot Prevention
<IfModule mod_setenvif.c>
# SetEnvIfNoCase User-Agent ^$ bad_bot
SetEnvIfNoCase User-Agent "^12soso.*" bad_bot
SetEnvIfNoCase User-Agent "^192.comAgent.*" bad_bot
SetEnvIfNoCase User-Agent "^1Noonbot.*" bad_bot
SetEnvIfNoCase User-Agent "^1on1searchBot.*" bad_bot
SetEnvIfNoCase User-Agent "^3D_SEARCH.*" bad_bot
SetEnvIfNoCase User-Agent "^3DE_SEARCH2.*" bad_bot
SetEnvIfNoCase User-Agent "^3GSE.*" bad_bot