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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(''); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################### | |
# 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 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# BitDefender Alert Test Setup and Execution Script | |
param( | |
[string]$GistUrl = "https://gist.githubusercontent.com/greenido/044823b9e1ab3c409fe4d3b04dad8292/raw/638b7199564efc59062b1d314f4aec567863d748/test-bitDefender.js", | |
[string]$ScriptName = "bitdefender_alert_test.js" | |
) | |
# Function to check if Node.js is installed | |
function Test-NodeJSInstalled { | |
try { | |
$nodeVersion = node --version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const path = require('path'); | |
const winston = require('winston'); | |
class BitDefenderAlertSimulator { | |
constructor(logFile = 'bitdefender_test_alerts.log') { | |
// Configure logging using Winston | |
this.logger = winston.createLogger({ | |
level: 'info', | |
format: winston.format.combine( |
Build a simple real-time chat application that allows multiple users to join and interact in a chat room. This assignment is designed to evaluate your ability to work with real-time communication, authentication, and scalable architecture. Please use ReactJS.
90 minutes
NewerOlder