Skip to content

Instantly share code, notes, and snippets.

View nagi1's full-sized avatar
✍️
Writing

Ahmed Nagi nagi1

✍️
Writing
View GitHub Profile
@abhisheksarkar30
abhisheksarkar30 / WithdrawAllSentRequestsOnLinkedIn.js
Last active May 6, 2021 16:19
Withdraw all pending sent invitations from LinkedIn automatically in bulk. Usage: - Go to https://www.linkedin.com/mynetwork/invitation-manager/sent/ - Open DevInspector, paste the script to the console, hit Enter to execute the script and the desired action.
var button1 = document.getElementsByClassName("invitation-card__action-btn artdeco-button artdeco-button--muted artdeco-button--3 artdeco-button--tertiary ember-view")
var button2 = document.getElementsByClassName("artdeco-modal__confirm-dialog-btn artdeco-button artdeco-button--2 artdeco-button--primary ember-view")
setInterval(()=>{
for(var i=0;i<button1.length;i++){
button1[i].click()
while(button2.length > 0) {
button2[0].click()
break
}
}},1000)
@wizioo
wizioo / gitignore_per_git_branch.md
Last active May 2, 2024 15:42
HowTo have specific .gitignore for each git branch

How to have specific .gitignore for each git branch

Objective

My objective is to have some production files ignored on specific branches. Git doesn't allow to do it.

Solution

My solution is to make a general .gitignore file and add .gitignore.branch_name files for the branches I want to add specific file exclusion. I'll use post-checkout hook to copy those .gitignore.branch_name in place of .git/info/exclude each time I go to the branch with git checkout branch_name.