Skip to content

Instantly share code, notes, and snippets.

@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 18:19
Rimworld output log published using HugsLib
Log uploaded on Tuesday, February 11, 2025, 3:19:03 PM
Loaded mods:
Prepatcher(zetrith.prepatcher): 0Harmony(2.3.3), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.0.0), Prestarter(1.0.0)
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Fishery - Modding Library(bs.fishery): 0PrepatcherAPI(1.2.0), 1Fishery(0.6.1), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210)
Core(Ludeon.RimWorld): (no assemblies)
Performance Fish(bs.performance): PerformanceFish(0.6.2)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
from fastapi import APIRouter, Request
from opentelemetry import trace
from opentelemetry.trace import Status, StatusCode
from starlette.routing import Route
from typing import Callable
# Custom route class with OpenTelemetry instrumentation
class TracedRoute(Route):
def __init__(self, path: str, endpoint: Callable, **kwargs):
super().__init__(path, endpoint, **kwargs)
{
"scored_predictions": [
{
"concrete_prediction": "By 2022, GPT-3 will be considered obsolete due to the emergence of more advanced multimodal transformer models developed by major companies.",
"resolution_year": 2022,
"prediction_year": 2021,
"score": {
"score": 0,
"rationale": "The prediction claimed that by 2022 GPT-3 would be considered obsolete due to new, advanced multimodal transformer models from major companies. However, while multimodal models (like DALL-E 2) did emerge in 2022, GPT-3 itself remained widely used and influential. It continued to serve as a foundational model for many applications, and its derivatives (such as the models behind ChatGPT) built upon its architecture rather than rendering it obsolete."
}
@Schoolads
Schoolads / gist:033f99d4d9a388de8461a089074aaecc
Created February 11, 2025 18:18
School of Nursing, Bowen University Teaching Hospital, Ogbomosho 2025/2026 {O8125777035} Admission Form Is STILL ON SALE.. Call DR.MRS ALICE OGUNSOLA on {O8125777035}.The Management of the school hereby inform the general public of the sales of the general Nursing Admission form into the School of Nursing, Also midwifery, post-basic midwifery fo…
School of Nursing, Bowen University Teaching Hospital, Ogbomosho 2025/2026 {O8125777035} Admission Form Is STILL ON SALE.. Call DR.MRS ALICE OGUNSOLA on {O8125777035}.The Management of the school hereby inform the general public of the sales of the general Nursing Admission form into the School of Nursing, Also midwifery, post-basic midwifery form, post-basic nursing form and internship form are still on sale for more information on purchase of the form and admission assistance call Admin Officer{O8125777035}
<!DOCTYPE html>
<html>
<head>
<body>صفحة نكلم بين شخصين مجهولين
/Users/michaelsheinberg/code/nautobot-app-floor-plan/nautobot_floor_plan/forms.py
  /Users/michaelsheinberg/code/nautobot-app-floor-plan/nautobot_floor_plan/forms.py:111:13 - error: "__setitem__" method not defined on type "Mapping[str, Any]" (reportIndexIssue)
  /Users/michaelsheinberg/code/nautobot-app-floor-plan/nautobot_floor_plan/forms.py:112:13 - error: "__setitem__" method not defined on type "Mapping[str, Any]" (reportIndexIssue)
  /Users/michaelsheinberg/code/nautobot-app-floor-plan/nautobot_floor_plan/forms.py:115:13 - error: "__setitem__" method not defined on type "Mapping[str, Any]" (reportIndexIssue)
  /Users/michaelsheinberg/code/nautobot-app-floor-plan/nautobot_floor_plan/forms.py:116:13 - error: "__setitem__" method not defined on type "Mapping[str, Any]" (reportIndexIssue)
  /Users/michaelsheinberg/code/nautobot-app-floor-plan/nautobot_floor_plan/forms.py:122:13 - error: "__setitem__" method not defined on type "Mapping[str, Any]" (reportIndexIssue)
  /Users/michaelsheinberg/code/nau
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 18:18
Rimworld output log published using HugsLib
This file has been truncated, but you can view the full file.
Log uploaded on Wednesday, February 12, 2025, 2:18:11 AM
Loaded mods:
Prepatcher(zetrith.prepatcher): 0Harmony(2.3.3), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.0.0), Prestarter(1.0.0)
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Fishery - Modding Library(bs.fishery): 0PrepatcherAPI(1.2.0), 1Fishery(0.6.1), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210)
Core(Ludeon.RimWorld): (no assemblies)
Better Log - Fix your errors(bs.betterlog): 0PrepatcherAPI(1.2.0), 1Fishery(av:0.6.1,fv:0.5.1.2), BetterLog(1.1.0), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210)
Performance Fish(bs.performance): PerformanceFish(0.6.2)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
/mvnw text eol=lf
*.cmd text eol=crlf
Metric Manual Effort With GenAI Improvement
Documentation Writing Weeks Hours 80% faster
Diagram Generation Manual effort Automated Instant Real-time
Code Transposition Months Weeks 3× faster
Pull Request Automation Manual merging AI-driven PRs 100% automated
@zbeucler-largo
zbeucler-largo / steps.md
Created February 11, 2025 18:17
Using Systemd to manage a CANBus interface

Overview

  • Use systemd to manage a canbus interface on an ubuntu 18-22 machine

Steps

  1. Load the CAN kernal modules (can and can_raw) at boot by adding them to /etc/modules-load.d/can.conf. Create can.conf if its not already there.
sudo vi /etc/modules-load.d/can.conf

# within /etc/modules-load.d/can.conf