Skip to content

Instantly share code, notes, and snippets.

View feoh's full-sized avatar
💭
Excitedly diving in to my new position at MIT!

Chris Patti feoh

💭
Excitedly diving in to my new position at MIT!
View GitHub Profile
@feoh
feoh / florida_wifi_measurements.txt
Last active March 14, 2024 02:32
Geri & Ron's Wifi Bandwidth Measurements
```
## Living Room
144 MB/s
165 MB/s
165 MB/s
## TV Room
## Computer Room
@feoh
feoh / mistral_7b_lamb_slaughter_ish_lion_ish.txt
Created December 13, 2023 22:29
Ask Mistral-7b to write a story with VAGUELY matching details from _The Lamb Will Slaugher the Lion_ and see what it spews out :)
>>> Tell me a story about a bunch of anarchists living in an abandoned town in the Pacific Northwest who summon a spirit guardian in deer form that turns demonic and begins preying on the residents.
Title: The Enchanted Forest of Deception: A Tale of Anarchists and the Malevolent Spirit
Once upon a time, deep in the heart of the Pacific Northwest, there existed an abandoned town shrouded in mystery. The once-thriving community was now inhabited by a group of anarchists who sought refuge from the confines
of society. They cherished their freedom and embraced their alternative way of living.
Deep within the enchanted forest that surrounded the town, there was a powerful spirit known as "The Deer Guardian." This spirit had been revered for generations by the indigenous people who inhabited the land before it was
abandoned. The Deer Guardian protected the forest and its inhabitants with benevolence and grace.
One fateful day, driven by their curiosity, a group of anarchists ventured deep into the enchanted fo
@feoh
feoh / NJJR6.ROM.txt
Created November 18, 2023 23:05
NJJR6 ROM disassembly
This file has been truncated, but you can view the full file.
RAM:0000 00 ?? 00h
RAM:0001 00 ?? 00h
RAM:0002 00 ?? 00h
RAM:0003 00 ?? 00h
RAM:0004 00 ?? 00h
RAM:0005 00 ?? 00h
RAM:0006 00 ?? 00h
RAM:0007 00 ?? 00h
RAM:0008 18 ?? 18h
RAM:0009 18 ?? 18h
@feoh
feoh / chatgptclasspolicy.txt
Created July 20, 2023 20:09
I asked ChatGPT to write a class policy on ChatGPT use for a college level English course
Class Policy on Chat and GPT Use in a College Level English Course
1. Purpose:
The purpose of this class policy is to set clear guidelines for the use of chat and GPT (Generative Pre-trained Transformer) technologies in a college-level English course. This policy aims to ensure a productive and fair learning environment where students can engage in meaningful discussions and develop their language and critical thinking skills.
2. Chat Guidelines:
a. Respectful Communication: All students must engage in respectful and courteous communication during chat discussions. Use appropriate language and avoid engaging in personal attacks, harassment, or any form of disrespectful behavior towards fellow students or the instructor.
b. Active Participation: Students are encouraged to actively participate in chat discussions by sharing their thoughts, insights, and questions related to the course materials and assigned readings. Active participation is vital for creating a dynamic and engaging learning environment.
c.
@feoh
feoh / gpttests.md
Created May 2, 2023 00:36
example of chatgpt generating scaffold unit tests
Sure! Here are some sample unit tests for the provided code:

import unittest import socket from unittest.mock import Mock, patch from board_game_server import BoardGameServer

class TestBoardGameServer(unittest.TestCase):

@feoh
feoh / gist:02ee40453032cb6162496354f4633877
Created May 2, 2023 00:33
example of chatgpt generating scaffold unit tests
Sure! Here are some sample unit tests for the provided code:
```
import unittest
import socket
from unittest.mock import Mock, patch
from board_game_server import BoardGameServer
class TestBoardGameServer(unittest.TestCase):
@feoh
feoh / .\test_craigtest.py
Created August 20, 2021 03:57
Working version using requests_mock
import pytest
from unittest.mock import Mock, patch
import requests_mock
import craigtest
def test_get_json_success():
with requests_mock.Mocker() as m:
m.get("http://localhost:8907/apinot.json", json=
{
"blue": [
@feoh
feoh / .\craigtest.py
Created August 20, 2021 03:20
Simple API client to be tested
from unicodedata import name
from pip import main
import requests
from requests import status_codes
import logging
from sys import exit
from time import sleep
import json
import subprocess
[feoh@vault gitea_pod]$ podman-compose up
podman pod create --name=gitea_pod --share net -p 222:22 -p 3000:3000
3d5f6520f17459d95630e134c1f11f56400fbcfa53a89fcc9af2540720bb20fa
0
podman create --name=gitea --pod=gitea_pod -l io.podman.compose.config-hash=123 -l io.podman.compose.project=gitea_pod -l io.podman.compose.version=0.0.1 -l com.docker.compose.container-number=1 -l com.docker.compose.service=server -e USER_UID=1000 -e USER_GID=1000 --mount type=bind,source=/cifs/squishingzoo/container_configs/compose/gitea_pod/./data,destination=/cifs/squishingzoo/git_repos --mount type=bind,source=/cifs/squishingzoo/container_configs/compose/gitea_pod/./config,destination=/etc/gitea_config --mount type=bind,source=/etc/timezone,destination=/etc/timezone,ro --mount type=bind,source=/etc/localtime,destination=/etc/localtime,ro --add-host server:127.0.0.1 --add-host gitea:127.0.0.1 gitea/gitea:latest
Error: statfs /cifs/squishingzoo/container_configs/compose/gitea_pod/data: no such file or directory
125
podman start -a
@feoh
feoh / gist:2f234cfd1f7597d0f4b9f9e1318d3c92
Created December 3, 2020 16:55
System76 monster machine specs
Thelio AMD
Motherboard
650 Watt Power Supply
Noctua NH-U9S
System76 Thelio I/O board
140mm High RPM PWM fan
Pop!_OS 20.10 (64-bit) with full disk-encryption
4.8 GHz AMD 4th Gen Ryzen 9 5900X (3.7 up to 4.8 GHz - 12 Cores - 24 Threads) $639
64 GB $30 Off $299 Dual Channel DDR4 @ 3200 MHz (2x 32GB) $269
2 TB PCIe Gen4 $50 Off $479 Seq Read: 5,000 MB/s, Seq Write: 4,400 MB/s $429