Skip to content

Instantly share code, notes, and snippets.

View mustafiz012's full-sized avatar
🎯
Focusing

Md. Mustafizur Rahman mustafiz012

🎯
Focusing
  • Vivasoft Limited
  • Dhaka, Bangladesh
  • 21:19 (UTC +06:00)
  • X @mustaifz012
View GitHub Profile
@nuhkoca
nuhkoca / HiltDataBinding.kt
Last active February 26, 2024 16:33
A demonstration about how to inject BindingAdapters with Dagger Hilt.
BindingScoped.kt
@Scope
@Retention(AnnotationRetention.BINARY)
annotation class BindingScoped
-------------------------------------------------------
CustomBindingComponent.kt
@rahularity
rahularity / work-with-multiple-github-accounts.md
Last active July 31, 2024 11:56
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent
@aguilarcarlos
aguilarcarlos / TipsForGit.md
Last active May 20, 2020 17:52
Fixing untracked files

Some tips for Git to Save your Life 👍

Rest branch to spefic commit or last commit

Firstly you need select th commit desired or simply reset the HEAD in current branch, (can check if you are in current branch using git branch.

git reset HEAD^ --hard // Or git reset +[commit]^ --hard

After that we need to force push doing this way: