Skip to content

Instantly share code, notes, and snippets.

View 2good4hisowngood's full-sized avatar

Sean Connelly 2good4hisowngood

View GitHub Profile
@2good4hisowngood
2good4hisowngood / archive_disk_before_destroy.ps1
Last active April 6, 2024 18:32
Script I put together to archive relevant files from old windows drives before destroying them.
# Define file types by category
$documentExtensions = @('.doc', '.docx', '.odt', '.rtf', '.txt', '.pdf', '.pages', '.xls', '.xlsx', '.ods', '.csv', '.ppt', '.pptx', '.odp', '.key', '.one', '.enex')
$photoExtensions = @('.jpg', '.jpeg', '.png', '.gif', '.bmp', '.tif', '.tiff', '.raw', '.cr2', '.nef', '.orf', '.sr2')
$videoExtensions = @('.mp4', '.mov', '.avi', '.wmv', '.mkv', '.flv', '.mpeg', '.mpg', '.hevc', '.h265', '.m2ts', '.vob')
$musicExtensions = @('.mp3', '.wav', '.aac', '.flac', '.ogg', '.m4a', '.wma', '.ape', '.alac')
# Combine all extensions for easier processing
$allExtensions = $documentExtensions + $photoExtensions + $videoExtensions + $musicExtensions
# Define directories to exclude
# BabyAGI User Guide
# This notebook demonstrates how to implement BabyAGI by Yohei Nakajima. BabyAGI is an AI agent that can generate and pretend to execute tasks based on a given objective.
# This guide will help you understand the components to create your own recursive agents.
# Although BabyAGI uses specific vectorstores/model providers (Pinecone, OpenAI), one of the benefits of implementing it with LangChain is that you can easily swap those out for different options. In this implementation we use a FAISS vectorstore (because it runs locally and is free).
import os, langchain, faiss
from collections import deque
from typing import Dict, List, Optional, Any
from langchain import PromptTemplate, LLMChain
from langchain.callbacks.manager import CallbackManager
@2good4hisowngood
2good4hisowngood / Sean's Starfinder Adventure Generator.ipynb
Created May 31, 2023 23:48
Sean's Starfinder Adventure Generator
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@2good4hisowngood
2good4hisowngood / deployment.yaml
Created May 9, 2022 16:03 — forked from amritanshu-pandey/deployment.yaml
Create Kubernetes storage class using NFS provisioner
kind: Deployment
apiVersion: apps/v1
metadata:
name: nfs-client-provisioner
spec:
selector:
matchLabels:
app: nfs-client-provisioner
replicas: 1
strategy: