Skip to content

Instantly share code, notes, and snippets.

@Mattie
Mattie / all_deathrow.md
Created June 9, 2023 03:25
Testing changes to the model responses over time (all together now)

OpenAI davinci (GPT-3, June 2020)

Answer the question factually using 2 full paragraphs.

QUESTION: Is it the case that a person sentenced to death for a crime in the United States has later been found innocent of that crime and released?

ANSWER: Yes.

In the United States, a person sentenced to death for a crime has later been found innocent of that crime and released.

@Mattie
Mattie / deathrow.txt
Last active June 9, 2023 03:31
Testing changes to the model responses over time
OpenAI ChatGPT (GPT-4, ~gpt-4-0524, May, 2023)
------
Answer the question factually using 2 full paragraphs.
QUESTION:
Is it the case that a person sentenced to death for a crime in the United States has later been found innocent of that crime and released?
ANSWER:
Yes, it is indeed the case that individuals in the United States who were sentenced to death have later been found innocent and released. This typically occurs after new evidence comes to light, often through advances in forensic technology such as DNA testing, or through reevaluation of existing evidence or witness testimony. As of my knowledge cutoff in September 2021, the Death Penalty Information Center reported that 185 death row inmates had been exonerated since 1973.
@Mattie
Mattie / rotate_screenshot_splash.py
Last active December 21, 2021 04:27
Put a random screenshot in my Star Citizen splash screen
# Replace the StarCitizen\LIVE\EasyAntiCheat\SplashScreen.png file with a random picture from the folder StarCitizen\LIVE\ScreenShots
import os
import random
import shutil
import datetime
from PIL import Image
# constants
# the folder where the screenshots are (your path will be different than mine, edit it)
@Mattie
Mattie / README.md
Last active October 7, 2024 20:04 — forked from HeedfulCrayon/README.md
Script for OBS Studio to publish session stats to MQTT broker with autodiscovery set up for Home Assistant

OBS MQTT Status to Home Assistant

Setup:

  1. Download script
  2. Install mqtt-wrapper pip install mqtt-wrapper
  3. Open OBS Studio
  4. In OBS Studio add a script (Tools -> Scripts)
  5. Configure script parameters (my base channel is homeassistant and my sensor name is obs, creating the path homeassistant/sensor/obs)

script_parameters

@Mattie
Mattie / latest-ffmpeg-centos6.sh
Last active October 31, 2017 17:27 — forked from mustafaturan/latest-ffmpeg-centos6.sh
Installs latest ffmpeg on Centos 6
# source: https://trac.ffmpeg.org/wiki/CentosCompilationGuide
yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel
mkdir ~/ffmpeg_sources
cd ~/ffmpeg_sources
curl -O http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
tar xzvf yasm-1.2.0.tar.gz
cd yasm-1.2.0
@Mattie
Mattie / Program.cs
Created February 1, 2017 15:28
Taken from https://www.citrix.com/blogs/2010/03/02/fun-with-the-ica-client-object-ico-and-net-console-applications/ The following code example illustrates the use of Client Simulation Keyboard APIs to type within our Notepad application session, take a screen shot and save it to the %temp% directory, and finally enumerate and output the top leve…
/// <summary>
/// This program demo's the basic of launching and ICO session from within an application.
/// </summary>
class Program
{
/// <summary>
/// Auto Reset Event used to block execution until we receive the OnLogon event
/// </summary>
public static AutoResetEvent onLogonResetEvent = null;