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
@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 / OdooTicketOpenInNewTab.js
Created March 17, 2024 22:20
Odoo Set Ticket to Open in a New Tab
try
{
function startAutoLink() {
const displayNamesWithoutLinks = document.querySelectorAll('tr.o_data_row td[name="display_name"]:not(:has(a))');
if (displayNamesWithoutLinks.Length <= 0)
{
return;
}
// Base URL part (you might want to customize this)
@hsayed21
hsayed21 / OdooAutoSortByColumn.js
Last active March 11, 2024 15:32
Odoo Auto Sort By Column
let intervalId; // Variable to hold the interval ID
function startAutoSort(sortSelector) {
const sortElement = document.querySelector(sortSelector);
if (sortElement)
{
try
{
const ariaSortValue = sortElement.getAttribute('aria-sort');
if (ariaSortValue !== 'ascending') {
@hsayed21
hsayed21 / WhatsAppSortUnreadedMessages.js
Last active March 5, 2024 15:33
Web WhatsApp Sort Unreaded Messages
// TODO:
// 1.[x] Add a button to toggle the unread messages div
// 2. if the unread messages change not clear previous divs
// 2.1 if exist and readed remove from unread div
// 2.2 after 10 time is still not exist remove from unread div
let lastUnreadMessages = [];
function simulateMouseEvents(element, eventName) {
var mouseEvent= document.createEvent ('MouseEvents');
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

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

Git Power


Basics Git

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