Skip to content

Instantly share code, notes, and snippets.

View potatoqualitee's full-sized avatar
big permz energy

Chrissy LeMaire potatoqualitee

big permz energy
View GitHub Profile
@potatoqualitee
potatoqualitee / function-calling.ipynb
Created April 22, 2024 21:06 — forked from kylemcdonald/function-calling.ipynb
Example of OpenAI function calling API to extract data from LAPD newsroom articles.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@potatoqualitee
potatoqualitee / function_calling.json
Created April 21, 2024 20:53
function_calling.json
[
{
"type": "function",
"function": {
"name": "Invoke-DbaQuery",
"description": "Use this function to answer user questions about Northwind. Input should be a fully formed SQL query.",
"parameters": {
"properties": {
"Query": {
"type": "string",
@potatoqualitee
potatoqualitee / bean-labeler.ts
Created March 16, 2024 20:09 — forked from haileyok/bean-labeler.ts
Bean Auto Labeler
import {
AppBskyEmbedImages,
AppBskyFeedPost,
BskyAgent,
} from '@atproto/api'
import * as dotenv from 'dotenv'
import {ComAtprotoSyncSubscribeRepos, subscribeRepos, SubscribeReposMessage} from 'atproto-firehose'
import Anthropic from '@anthropic-ai/sdk'
import axios from 'axios'
Begin trace logging for SharePoint Products Configuration Wizard. Version 16.0.14326.20450
11/29/2023 13:20:01 1 INF Entering function PsconfigUserInterfaceMain.Main
11/29/2023 13:20:01 1 INF Entering function Common.SetCurrentThreadCultureToInstalledCulture
11/29/2023 13:20:01 1 INF Entering function Common.SetThreadCultureToInstalledCulture
11/29/2023 13:20:01 1 INF Current thread culture is English (United States), current thread ui culture is English (United States), installed culture is English (United States)
11/29/2023 13:20:01 1 INF Leaving function Common.SetThreadCultureToInstalledCulture
11/29/2023 13:20:01 1 INF The current ui culture English (United States) is NOT right to left
11/29/2023 13:20:01 1 INF Leaving function Common.SetCurrentThreadCultureToInstalledCulture
11/29/2023 13:20:01 1 INF Creating the psconfig application context
11/29/2023 13:20:01 1 INF Entering function PsconfigApplicationContext.PsconfigApplicationContext
@potatoqualitee
potatoqualitee / swagger.json
Created November 28, 2022 18:47
swagger.json
{
"openapi": "3.0.0",
"info": {
"title": "Mastodon API",
"description": "This an attempt to document Mastodon's API based on the code in https://github.com/mastodon/mastodon",
"contact": {
"name": "Malcolm VanOrder",
"email": "mvanorder1390@gmail.com"
},
"license": {
@potatoqualitee
potatoqualitee / encryption-commands.md
Created November 16, 2022 12:12
Encryption Commands

Thanks for attending the session! Here are all of our related security commands:

Add-DbaComputerCertificate              
Backup-DbaComputerCertificate           
Backup-DbaDbCertificate                 
Backup-DbaDbMasterKey                   
Backup-DbaServiceMasterKey              
Disable-DbaDbEncryption                 
Disable-DbaForceNetworkEncryption       
@potatoqualitee
potatoqualitee / winterm.json
Created September 22, 2022 11:13
winterm.json
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false
@potatoqualitee
potatoqualitee / Invoke-Program.ps1
Created September 7, 2022 12:59
Invoke-Program
function Invoke-Program {
[CmdletBinding()]
[OutputType([System.Management.Automation.PSObject])]
param
(
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string]$FilePath,
[Parameter()]
@potatoqualitee
potatoqualitee / download-file.js
Created September 3, 2022 01:43
download-file.js
const { chromium } = require('playwright');
(async () => {
const browser = await chromium.launch({ headless: true, downloadsPath: '' });
const page = await browser.newPage({ acceptDownloads: true });
await page.goto('https://windowsterminalthemes.dev/');
const [download] = await Promise.all([
page.waitForEvent('download'),
@potatoqualitee
potatoqualitee / colors.ps1
Created September 1, 2022 19:08
colors.ps1
function Get-Rgb {
[cmdletbinding()]
param(
[string[]]$Color
)
# Clean up
if ($first = $Color[1]) {
$cleanedcolor = $Color -join ","
if ($first -notmatch "rgb" -and $first -notmatch "\(") {