Skip to content

Instantly share code, notes, and snippets.

View Yash089610's full-sized avatar
🎯
Focusing

Yash Agarwal Yash089610

🎯
Focusing
View GitHub Profile
@thealphadollar
thealphadollar / AutoConnectLinkedIn.js
Last active November 9, 2025 10:19
JS script to send connection requests to your LinkedIn search results with customisation options, accept all received connection requests, and withdraw pending sent connection requests.
// If the script does not work, you may need to allow same site scripting https://stackoverflow.com/a/50902950
Linkedin = {
config: {
scrollDelay: 3000,
actionDelay: 5000,
nextPageDelay: 5000,
// set to -1 for no limit
maxRequests: -1,
totalRequestsSent: 0,
@chrismccoy
chrismccoy / gitcheats.txt
Last active January 5, 2026 21:36
git cheats
# alias to edit commit messages without using rebase interactive
# example: git reword commithash message
reword = "!f() {\n GIT_SEQUENCE_EDITOR=\"sed -i 1s/^pick/reword/\" GIT_EDITOR=\"printf \\\"%s\\n\\\" \\\"$2\\\" >\" git rebase -i \"$1^\";\n git push -f;\n}; f"
# convert users public repos into private
gh repo list --source --visibility public --limit 5000 --json nameWithOwner | jq -r '.[].nameWithOwner' | xargs -I % sh -c 'echo "Converting % to private..."; gh repo edit % --visibility private --accept-visibility-change-consequences'
# convert users public repos into private (legacy gh-cli version)
gh api user/repos --paginate | jq -r '.[] | select(.fork == false and .private == false) | .full_name' | xargs -I % sh -c 'echo "Converting % to private..."; gh repo edit % --visibility private --accept-visibility-change-consequences'