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 / EDR Test Script for macOS.sh
Created December 11, 2025 19:21
EDR Test Script for macOS (no external dependencies like Winston)
#!/bin/zsh
# EDR Dashboard Reports Test Script for macOS
# Adapted for EICAR-based EDR alert testing and logging
# Uses embedded Node.js script with console logging (no external dependencies like Winston)
# Parameters
SCRIPT_NAME="edr_alert_test.js"
TEMP_DIR="/tmp/edr_test"
@greenido
greenido / BitDefender Alert Simulator.js
Created December 11, 2025 16:44
BitDefender Alert Simulator - more events
const fs = require('fs');
const path = require('path');
const winston = require('winston');
// customize file here or via CLI in future
const LOG_FILE = process.env.LOG_FILE || 'bitdefender_sim.log';
// Winston logger (console + file)
const logger = winston.createLogger({
level: 'info',
@greenido
greenido / Screen Record on iPhone.md
Created October 22, 2025 23:29
How to Screen Record with Audio on iPhone

How to Screen Record with Audio on iPhone

iPhones running iOS 11 or later have a built-in screen recording feature that captures both video and audio (including system sounds and microphone input). The recordings are saved as videos in your Photos app. Here's a step-by-step guide based on Apple's official instructions.

Step 1: Add Screen Recording to Control Center (If Not Already Added)

  • Open the Settings app.
  • Scroll down and tap Control Center.
  • Under "More Controls," find Screen Recording and tap the green + icon next to it to add it to your included controls.
  • (Optional: Toggle on Access Within Apps if you want quick access while using other apps.)
const http = require('http');
const url = require('url');
const server = http.createServer((req, res) => {
const parsedUrl = url.parse(req.url, true);
// Set CORS headers
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS');
res.setHeader('Access-Control-Allow-Headers', 'Content-Type, Authorization');
@greenido
greenido / espresso-labs-1-pager-v4.md
Last active July 22, 2025 03:54
Espresso Labs: AI-First IT & Cybersecurity for SMBs

Espresso Labs: AI-First IT & Cybersecurity for SMBs

Too many tools? Too little time?

Small and mid-sized businesses can’t afford a full IT team or juggle dozens of tools. Espresso Labs offers the first autonomous IT & cybersecurity platform, built for businesses like yours. We deliver enterprise-grade protection and productivity—without tool sprawl or extra headcount.


☕ What We Deliver

🎯 GOAL Drive traffic and conversions (sales) for custom 3D-printed travel bag tags via Facebook & Google Ads with a small, testable budget.

✅ STEP 1: Prepare Your Website Before running ads:

Ensure fast loading speed and mobile responsiveness.

Use clear Call to Action (CTA) like “Create Your Tag” or “Customize Yours Now”.

@greenido
greenido / csv-2-json.js
Created July 9, 2025 16:36
CSV JSON Extractor tool that will help you extract JSON data from CSV columns
import React, { useState } from 'react';
import { Upload, Download, FileText, AlertCircle } from 'lucide-react';
import Papa from 'papaparse';
const JSONExtractor = () => {
const [csvData, setCsvData] = useState([]);
const [headers, setHeaders] = useState([]);
const [selectedColumns, setSelectedColumns] = useState([]);
const [extractedJSON, setExtractedJSON] = useState([]);
const [error, setError] = useState('');
@greenido
greenido / posgres-deep-delete.sh
Created May 28, 2025 21:36
This script finds and removes all PostgreSQL Docker data locations
#!/bin/bash
# PostgreSQL Docker Data Cleanup Script
# This script finds and removes all PostgreSQL Docker data locations
set -e # Exit on any error
echo "=== PostgreSQL Docker Data Cleanup ==="
echo "Warning: This will permanently delete all PostgreSQL data!"
echo "Press Ctrl+C within 10 seconds to cancel..."
@greenido
greenido / ShortWindowsPatchManagement.ps1
Created April 29, 2025 01:04
A Minimal Windows Patch Management Script - Gathers essential Windows Update info
# Minimal Windows Patch Management Script
# Gathers essential Windows Update info
# Output setup
$OutputDir = "$env:USERPROFILE\Desktop\PatchReport"
if (!(Test-Path $OutputDir)) { New-Item -Path $OutputDir -ItemType Directory -Force | Out-Null }
$outputFile = "$OutputDir\PatchReport-$(Get-Date -Format 'yyyyMMdd-HHmmss').txt"
# Write helper
function Write-OutputFile {
@greenido
greenido / WindowsPatchManagement.ps1
Created April 29, 2025 01:03
Windows Patch Management Information Script # Refined for improved structure, efficiency, and consistency
#########################################################
# Windows Patch Management Information Script
# Refined for improved structure, efficiency, and consistency
#########################################################
# Output setup
$OutputDir = "$env:USERPROFILE\Desktop\PatchManagementReport"
if (-not (Test-Path -Path $OutputDir)) {
New-Item -ItemType Directory -Path $OutputDir -Force | Out-Null
}