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 / PostgreSQL-aws-linux.md
Created November 13, 2024 02:46
PostgreSQL Installation Guide for Amazon Linux 2023

PostgreSQL Installation Guide for Amazon Linux 2023

Prerequisites

  • An Amazon Linux 2023 instance
  • Sudo privileges
  • Active internet connection

Installation Steps

1. Update System Packages

@greenido
greenido / chrome_ext_local_agent.js
Created November 7, 2024 22:43
Chrome Extension to Local Agent Communication
// manifest.json
{
"name": "Local Agent Connector",
"version": "1.0",
"manifest_version": 3,
"permissions": [
"nativeMessaging",
"tabs"
],
"background": {
@greenido
greenido / docker-aws-deplyment.md
Created November 6, 2024 22:09
Setting Up Test Environment for Docker Images on AWS

Setting Up Test Environment for Docker Images on AWS

1. Infrastructure Setup using AWS CDK or CloudFormation

# test-environment.yaml
AWSTemplateFormatVersion: '2010-09-01'
Description: 'Test environment for Docker applications'

Parameters:
@greenido
greenido / drive_by_downloads.js
Created November 4, 2024 23:31
Chrome Extension example: Drive-by downloads
// DriveByProtector.js
class DriveByProtector {
constructor() {
this.suspiciousPatterns = {
fileTypes: /\.(exe|msi|dmg|pkg|deb|bat|cmd|sh|ps1|vbs|jar|dll|scr)$/i,
mimeTypes: [
'application/x-msdownload',
'application/x-msdos-program',
'application/x-executable',
'application/x-dosexec',
@greenido
greenido / suspicious_redirects.js
Created November 4, 2024 23:30
Chrome extension example: suspicious redirects, listen to URL event and block ones who exhibit rapid switching and suspicious URL or DNS patterns
// manifest.json
{
"manifest_version": 3,
"name": "Redirect Detective",
"version": "1.0",
"description": "Detects and analyzes potentially malicious redirects",
"permissions": [
"webNavigation",
"webRequest",
"storage",
@greenido
greenido / DI_Examples.ts
Created November 3, 2024 00:13
Property, Method, and Container DI Examples in TypeScript
// 1. Basic interfaces and implementations
interface ILogger {
log(message: string): void;
}
interface IEmailSender {
send(to: string, message: string): void;
}
class ConsoleLogger implements ILogger {
@greenido
greenido / Dependency_Injection.ts
Created November 3, 2024 00:04
Dependency Injection Examples in TypeScript
// 1. Interfaces for our dependencies
interface ILogger {
log(message: string): void;
}
interface IEmailService {
sendEmail(to: string, subject: string, content: string): Promise<boolean>;
}
interface IUserRepository {
@greenido
greenido / golang_ex_1.md
Last active November 18, 2024 18:27
Cross-Platform Installation Application Assignment (Max 2 hours)

Objective

Create a basic cross-platform command execution application that can be installed on Windows and macOS, capable of executing simple system commands and returning their results.

Core Requirements (2 hours)

1. Installation Package (~30 minutes)

  • Create a simple installer for either Windows (.exe) or macOS (.pkg) [choose one]
  • Implement basic start-on-boot functionality

2. Command Execution (~45 minutes)

@greenido
greenido / concat_csv.sh
Created October 7, 2024 15:05
concat csv files - Up to 5 :)
#!/bin/bash
# Output file name
output_file="combined_table_data.csv"
# Keep the header from the first file
head -n 1 "table_data.csv" > "$output_file"
# Function to remove header and append content
append_without_header() {
@greenido
greenido / Senior Go Developer - Agent Lead Job Description [NeuronOS].md
Last active October 14, 2024 00:20
Senior Go Developer - AI Agent Lead [NeuronOS]

About NeuronOS ☕️

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 Golang Engineer to join our team and help bring our vision to life.

The Role

We're seeking an exceptional Go Developer to lead the development of our AI-powered agent software for the NeuronOS RMM system. As the Lead Engineer for our agent technology, you'll be at the forefront of innovation, architecting, and building scalable, high-performance software that leverages the latest advancements in artificial intelligence.

Key Responsibilities

  • Design and implement the core architecture for our cross-platform (Windows and macOS) agent software
  • Lead the development of high-performance, resource-efficient code that can run seamlessly on client systems