Skip to content

Instantly share code, notes, and snippets.

View hsayed21's full-sized avatar
🏠
Working from home

Hamada Sayed hsayed21

🏠
Working from home
View GitHub Profile

Git Power


Basics Git

# Clone Project From Github
git clone https://github.com/test/test.git 

For Windows

Tools Used:

after install git make file call.bat contains bash_git path and the shell_script file that we want to run it from windows using batch script

cmd /c ""C:\Program Files\Git\bin\bash.exe" --login -i -- H:\myshell.sh"

after that goto obsidian workspace folder create file .gitignore

var result = "";
// for each on all elements in div with id "grid"
var elements = document.getElementById("grid").children;
// get all children divs in div with id "grid"
for (var i = 0; i < elements.length; i++) {
// get the current element
var element = elements[i];
// add the class "selected" to the current element
element.classList.add("selected");
// after that click on ocr button
@hsayed21
hsayed21 / WhatsAppSortUnreadedMessages.js
Last active June 20, 2024 09:28
Web WhatsApp Sort Unreaded Messages
// ==UserScript==
// @name WhatsApp Sort Unreaded Messages
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Web WhatsApp Sort Unreaded Messages Based On Rearest datetime
// @author @hsayed21
// @match https://web.whatsapp.com/
// @icon https://www.google.com/s2/favicons?sz=64&domain=whatsapp.com
// @updateURL https://gist.github.com/hsayed21/36195f69519e040642624a0a3f8dd705.js
// @downloadURL https://gist.github.com/hsayed21/36195f69519e040642624a0a3f8dd705.js
@hsayed21
hsayed21 / OdooAutoSortByColumn.js
Last active June 22, 2024 07:06
Odoo Auto Sort By Column
// ==UserScript==
// @name Odoo Auto Sort
// @namespace http://tampermonkey.net/
// @version 1.0
// @description try to take over the world!
// @author @hsayed21
// @match https://www.posbank.me/web
// @icon https://www.google.com/s2/favicons?sz=64&domain=posbank.me
// @updateURL https://gist.github.com/hsayed21/288fce3d49fb0d68ba03f05ee11ca73f.js
// @downloadURL https://gist.github.com/hsayed21/288fce3d49fb0d68ba03f05ee11ca73f.js
@hsayed21
hsayed21 / OdooTicketOpenInNewTab.js
Last active June 24, 2024 08:29
Odoo Set Ticket to Open in a New Tab
// ==UserScript==
// @name Open Ticket in New Tab
// @namespace http://tampermonkey.net/
// @version 1.0
// @description try to take over the world!
// @author @hsayed21
// @match https://www.posbank.me/web
// @icon https://www.google.com/s2/favicons?sz=64&domain=posbank.me
// @updateURL https://gist.github.com/hsayed21/45dfe751d552ea9ce44386439ae8a5dc.js
// @downloadURL https://gist.github.com/hsayed21/45dfe751d552ea9ce44386439ae8a5dc.js
@hsayed21
hsayed21 / medium.user.js
Created April 19, 2024 22:59 — forked from mathix420/medium.user.js
Bypass Medium Paywall - Working late 2023 - Greasy Fork, Violentmonkey, Tampermonkey - Click the RAW button to install
// ==UserScript==
// @name Medium Paywall Bypass
// @namespace Violentmonkey Scripts
// @run-at document-start
// @match *://*.medium.com/*
// @match *://medium.com/*
// @match *://*/*
// @grant none
// @version 2.3
// @inject-into content
@hsayed21
hsayed21 / Auto_Send_Friend_Request_FB.js
Last active July 16, 2024 17:20
Facebook Send Friend Request
// ==UserScript==
// @name Facebook Send Friend Request
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author @hsayed21
// @match https://www.facebook.com/profile.php?id=*&sk=friends
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==