Skip to content

Instantly share code, notes, and snippets.

View erelado's full-sized avatar
🎓
Learning new things

Erel erelado

🎓
Learning new things
  • Israel
  • 01:28 (UTC +03:00)
View GitHub Profile
@erelado
erelado / Flatten-Json.ps1
Last active September 25, 2022 10:50
Powershell function(s) to Flatten JSON to the expected Key/Value format used by Azure.
Function Flatten-Json() {
Param(
[Parameter(Mandatory)]
[Object]
$JsonObject,
[Parameter(Mandatory = $False)]
[String]
$Delimiter = ":"
)
@erelado
erelado / Chat with an unknown number.md
Created June 7, 2022 14:05
WhatsApp Web: Chat with an unknown number

Function

const openChat = phone => {
  const link = document.createElement("a");
  link.setAttribute("href", `whatsapp://send?phone=${phone}`);
  document.body.append(link);
  link.click();
  document.body.removeChild(link);
};
@erelado
erelado / Israel Railways Bookmarklet.md
Last active March 27, 2023 15:33
Bookmarklet for rail.co.il

Bookmarklet for rail.co.il 🚆

❓ How to

  1. Create a new bookmark.
  2. Under the URL field enter the javascript line below.
  3. Replace the ${FromStationID} and ${ToStationID} with your desired stations.
    • The station IDs relevant to you can be found under the Rail Station IDs section.
  • Works properly in Chrome and Firefox.
@erelado
erelado / CheckerPlus-forGmail-Theme.css
Last active October 7, 2022 02:57
Checker Plus for Gmail: A Theme by Erel
/* Add your desirable color pallete over here
* {
--primary-text-color: [COLOR];
--primary-background-color: [COLOR];
--secondary-text-color: [COLOR];
--secondary-background-color: [COLOR];
--disabled-text-color: [COLOR];
--highlight-background-color: [COLOR];
--hover-message-color: [COLOR];