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 / Lead_Developer_NeuronOS.md
Created July 19, 2024 21:53
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 {
@greenido
greenido / maintenance.sh
Created August 2, 2023 22:52
A shell script to automate system monitoring, maintenance and email you the results
#!/bin/bash
# System Maintenance Script
# Create log file
log=/var/log/maintenance.log
# Print start status
echo "$(date) - Starting system maintenance" >> $log
@greenido
greenido / remoteCopy.sh
Created August 2, 2023 22:00
A shell script that accesses a server over SSH and copies a specific directory
#!/bin/bash 
# Set the variables. 
server_ip="192.168.1.100" 
username="user" 
password="passwd" 
source_directory="/home/user/my_directory" 
destination_directory="/opt/my_directory" 
# Connect to the server. 
@greenido
greenido / backup.sh
Created August 2, 2023 21:59
This bash script will back up all the files in the current directory to a .tar.gz file. 
#!/bin/bash 
# This script will back up all the files in the current directory to a .tar.gz file. 
# Get the current date and time. 
date +"%Y-%m-%d_%H:%M:%S" 
# Create a backup file. 
backup_file="backup_$(date +"%Y-%m-%d_%H:%M:%S").tar.gz" 
# Tar up all of the files in the current directory. 
#!/usr/bin/env zx
await $`cat package.json | grep name`
let branch = await $`git branch --show-current`
await $`dep deploy --branch=${branch}`
await Promise.all([
$`sleep 1; echo 1`,
$`sleep 2; echo 2`,
@greenido
greenido / pushToArtifactory.ts
Created July 31, 2023 19:11
Push you LLM to JFrog Artifactory
import axios from 'axios';
import fs from 'fs';
// Artifactory configuration
const ARTIFACTORY_URL = 'https://your-artifactory-url.com';
const ARTIFACTORY_REPO = 'your-repo-name';
const ARTIFACTORY_USERNAME = 'your-username';
const ARTIFACTORY_API_KEY = 'your-api-key';
// LLM model file path
@greenido
greenido / LLM_2_Artifactory.py
Created July 31, 2023 18:22
A script to push a new LLM (Large Language Model) model to JFrog Artifactory (under 30 lines of code :)
import requests
# Artifactory configuration - Change it to your own settings
ARTIFACTORY_URL = 'https://your-artifactory-url.com'
ARTIFACTORY_REPO = 'your-repo-name'
ARTIFACTORY_USERNAME = 'your-username'
ARTIFACTORY_API_KEY = 'your-api-key'
# LLM model file path
LLM_MODEL_FILE = 'path/to/your/llm_model.tar.gz'