In terminal.app, install ffmpeg through homebrew
brew install ffmpeg
Validate the installation:
| """ | |
| This script creates and interacts with ReActAgents for PDF and CSV data. | |
| Dependencies (install in your virtual environment) : | |
| python = "3.11.1" | |
| llama-index-agent-openai = "^0.2.5" | |
| openai = "^1.30.1" | |
| pandas = "^2.2.2" | |
| fitz = "^0.0.1.dev2" |
| import { css, html, LitElement } from 'lit'; | |
| import { customElement, property, state } from 'lit/decorators.js'; | |
| import { RouteEvent, Router } from './Router'; | |
| @customElement('router-link') | |
| export class RouterLink extends LitElement { | |
| static router: Router | null = null; | |
| @property({ type: String }) to = ''; |
| import torch | |
| import peft | |
| import transformers | |
| from transformers import AutoTokenizer, AutoModelForCausalLM | |
| from huggingface_hub.hf_api import HfFolder | |
| ACCESS_TOKEN = "ENTER YOUR HUGGINGFACE ACCESS TOKEN HERE" | |
| HfFolder.save_token(ACCESS_TOKEN) |
| #!/bin/bash | |
| # Remove outdated letsencrypt CSRs, keys and certificates | |
| lesslBasePath=/etc/letsencrypt | |
| keepOldVersions=1 | |
| keepOldCsrDays=180 | |
| keepOldKeysDays=180 | |
| if [ ! -d "$lesslBasePath" ]; then |
| --- | |
| - name: Docker install | |
| hosts: all | |
| become: yes | |
| tasks: | |
| - name: Install docker-ce (centos) via amazon-linux-extras packages | |
| shell: "amazon-linux-extras install docker -y" | |
| - name: Install dependencies | |
| yum: |
| /* eslint-disable no-undef */ | |
| /* eslint-disable @typescript-eslint/no-var-requires */ | |
| var fs = require('fs'); | |
| function deleteFolderRecursive(path) { | |
| if(!fs.existsSync(path)) return console.log(`${path} does not exist!`) | |
| if (fs.existsSync(path) && fs.lstatSync(path).isDirectory()) { | |
| // eslint-disable-next-line @typescript-eslint/no-unused-vars | |
| fs.readdirSync(path).forEach(function(file, _index){ | |
| var curPath = path + "/" + file; |
| { | |
| "project_options":{ | |
| "connections":{ | |
| "hostname_resolution":[], | |
| "out_of_scope_requests":{ | |
| "advanced_mode":false, | |
| "drop_all_out_of_scope":false, | |
| "exclude":[], | |
| "include":[], | |
| "scope_option":"suite" |
| import { Injectable } from '@angular/core'; | |
| @Injectable() | |
| export class POIService { | |
| // LEFT, BOTTOM, RIGHT, TOP | |
| private country_bounding_boxes = [ | |
| {'AF': {'Afghanistan': [60.5284298033, 29.318572496, 75.1580277851, 38.4862816432]}}, | |
| {'AO': {'Angola': [11.6400960629, -17.9306364885, 24.0799052263, -4.43802336998]}}, | |
| {'AL': {'Albania': [19.3044861183, 39.624997667, 21.0200403175, 42.6882473822]}}, | |
| {'AE': {'United Arab Emirates': [51.5795186705, 22.4969475367, 56.3968473651, 26.055464179]}}, |
I used to sift trough my shell history and bookmarks every time I set up a new testing server in order to be able to send mails. So this should help...
Be aware don't use ssmtp anymore. It's unmaintained and has been removed
from Debian
and Ubuntu will most definitely follow suit.