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 / 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": "[email protected]"
},
"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 "\(") {
@potatoqualitee
potatoqualitee / screenshot.js
Created August 30, 2022 10:31
screenshot.js
var { chromium } = require('playwright');
(async function () {
var themeparam = process.argv[2];
var path = require('path');
var fs = require('fs');
var directoryPath = path.join(__dirname, 'themes');
var file = path.join(directoryPath, `${themeparam}.json`);
console.log("processing " + file);
@potatoqualitee
potatoqualitee / whatever.yml
Created August 27, 2022 16:42
doesnt work
on: push
env:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: postgres_password
POSTGRES_PORT: 5432
POSTGRES_USER: postgres
DATABASE_URL: postgres://postgres:postgres_password@localhost:5432/postgres
jobs:
process-json:
runs-on: ubuntu-latest