Skip to content

Instantly share code, notes, and snippets.

View greenido's full-sized avatar
🏃‍♂️
Running and building

Ido Green greenido

🏃‍♂️
Running and building
View GitHub Profile
@greenido
greenido / export-html-table-to-csv.js
Created October 2, 2024 21:55
Export a html table to a CSV file (just put this code in Chrome devtools)
// Function to convert HTML table to array
function tableToArray(tableId) {
const table = document.getElementById(tableId);
const rows = table.getElementsByTagName('tr');
const result = [];
for (let i = 0; i < rows.length; i++) {
const row = [];
const cells = rows[i].getElementsByTagName('td');
const headerCells = rows[i].getElementsByTagName('th');
@greenido
greenido / Chrome Extension Development Exercise.md
Last active September 30, 2024 21:01
This document outlines a practical task to create a Chrome extension that displays admin messages to users.

Chrome Extension Development Exercise 🍓

Overview

In this coding exercise, you will create a Chrome browser extension that displays organization-wide messages from an admin to users. This exercise is designed to evaluate your frontend development skills, understanding of browser extension architecture, and ability to implement real-world features.

Requirements

Functional Requirements

  1. Create a Chrome extension that displays messages from an organization's admin to users
  2. The extension should:
@greenido
greenido / g-doc_2_g-form.js
Created July 30, 2024 19:48
convert a good doc (with questions) to a google form you can share and collect data
function createSecurityToolsSurvey() {
// Create a new form
var form = FormApp.create('Security Tools Survey for SMB CTOs');
// Set the form description
form.setDescription('We are conducting a survey to understand the security tools used by startups and SMBs. Your input is valuable in helping us assess current trends in cybersecurity practices. Please select the option that best describes the tools your organization is currently using for each category. If you aren\'t using a tool - please feel free to skip the question.\n\nThank you for taking the time to help us!');
// Add questions to the form
addMultipleChoiceQuestion(form, 'Which Endpoint Protection (Antivirus/Anti-Malware) solution does your organization primarily use?', ['CrowdStrike Falcon', 'Symantec Endpoint Protection', 'McAfee Endpoint Security', 'Other']);
#!/bin/bash
# Stop all running containers
echo "Stopping all running containers..."
docker stop $(docker ps -q)
# Remove all containers
echo "Removing all containers..."
docker rm $(docker ps -a -q)
@greenido
greenido / Backend_Lead_Developer_NeuronOS.md
Last active July 23, 2024 00:27
A job description for a lead Backend Engineer

Backend Lead Developer - NeuronOS 📀

About Us

We're a dynamic startup on a mission to revolutionize security and IT software with cutting-edge AI technology. Our goal is to create a next-generation SAAS platform that will transform how Security & IT professionals manage and monitor their systems. We're looking for a passionate and experienced Backend Lead Developer to join our team and help shape the future of our infrastructure.

The Role

As our Backend Lead Developer, you'll be at the forefront of innovation, architecting and building scalable, high-performance systems on AWS that leverage the latest in AI and cloud technologies. You'll lead a team of talented backend developers, fostering a culture of excellence, creativity, and continuous improvement in our microservices architecture.

@greenido
greenido / Full-Stack_Engineer_NeuronOS.md
Created July 23, 2024 00:22
A job description for a lead Full-Stack Engineer with a focus on web technologies and UX/UI

Full-Stack Engineer - NeuronOS 🥂

About Us

We're an innovative startup dedicated to revolutionizing security and IT software through cutting-edge AI technology. Our mission is to create a next-generation platform that will transform how Security & IT professionals interact with and manage their systems. We're seeking a talented and passionate Full-Stack Engineer to join our team and help bring our vision to life.

The Role

As our Full-Stack Engineer, you'll be instrumental in crafting exceptional web experiences that seamlessly blend form and function. You'll work on both front-end and back-end components of our platform, with a particular focus on creating intuitive, responsive, and visually stunning user interfaces. Your expertise in web technologies will be crucial in developing features that not only look great but also perform efficiently at scale.

Key Responsibilities

  • Develop and maintain high-quality, responsive web applications using modern frameworks such as React or Vue.js
@greenido
greenido / Lead_Developer_NeuronOS.md
Last active August 1, 2024 01:31
Job description - Lead Developer NeuronOS.ai

Lead Developer - NeuronOS 👩🏽‍💻

About Us

We're a dynamic startup on a mission to revolutionize security and IT software with cutting-edge AI technology. Our goal is to create a next-generation platform that will transform how Security & IT professionals manage and monitor their systems. We're looking for a passionate and experienced Lead Developer to join our team and help shape the future.

The Role

As our Lead Developer, you'll be at the forefront of innovation, architecting and building scalable, high-performance systems that leverage the latest in AI and web technologies. You'll lead (by example) a team of talented developers, fostering a culture of excellence, creativity, and continuous improvement.

@greenido
greenido / GPT to Google Doc Formater.js
Last active May 20, 2024 21:37
convert raw output of GPT to a better google doc format - mainly for trip planning
//
// Change the main headlines (###) to Headline #2
//
function changeLinesToHeading2() {
// Get the active document
var doc = DocumentApp.getActiveDocument();
// Get the body of the document
var body = doc.getBody();
// Iterate through all paragraphs in the document
@greenido
greenido / getStavaToken.md
Created May 17, 2024 01:48
How to get a token for Strava API calls requiring OAuth

To get a token for Strava API calls requiring OAuth, you'll need to follow these steps:

1. Register Your Application:

  • Visit the Strava developer portal: https://developers.strava.com/
  • Create a developer account and register your application.
  • During registration, you'll receive a Client ID and Client Secret. These are essential for obtaining access tokens.

2. User Authorization:

// Find all buttons with data-testid="job-artifacts-delete-button"
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
// Function to click on the second button within the pop-up
const clickSecondButtonInPopup = async () => {
const secondButton = document.querySelector('.btn.js-modal-action-primary.btn-danger.btn-md.gl-button');
// If the second button is found, click on it
if (secondButton) {
secondButton.click();
} else {