This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // .opencode/plugins/log-system-prompts.js | |
| // log system prompts to .opencode/system-prompts.jsonl | |
| // | |
| // This makes it easier to directly investigate how OpenCode constructs | |
| // system prompts and what environment data is being provided to the model. | |
| // This does not include tool call schema information. | |
| // | |
| import fs from "fs/promises" | |
| import path from "path" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // .opencode/plugins/request-instructions.js | |
| // replaces requestInstructions (model-specific coding instructions) with | |
| // the contents of .opencode/REQUEST_INSTRUCTIONS.md | |
| // | |
| // When using OpenCode for non-coding tasks (such as creative writing or | |
| // knowledge management), this reduces coding-related context poisoning | |
| // when paired with a general purpose prompt. | |
| // | |
| import fs from "fs/promises" | |
| import path from "path" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """Tools for memory management and utilities.""" | |
| import os | |
| import urllib.request | |
| import urllib.parse | |
| import json | |
| import datetime | |
| import zoneinfo | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| # Parse repository URL and extract username/reponame | |
| parse_repo_info() { | |
| local url="$1" | |
| # Handle git@github.com:username/repo.git format | |
| if [[ "$url" =~ ^git@github\.com:(.*)\.git$ ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/perl -wT | |
| use strict; | |
| use warnings; | |
| %ENV = (); | |
| $ENV{'PATH'} = '/bin:/usr/bin'; | |
| sub untaintfp { | |
| my $keyfp = shift or die "untaintfp missing parameter: keyfp\n"; | |
| my $utkeyfp = ''; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import board | |
| import neopixel | |
| import touchio | |
| from time import sleep | |
| import usb_hid | |
| from adafruit_hid.keyboard import Keyboard | |
| from adafruit_hid.keycode import Keycode | |
| # pin that the NeoPixel is connected to | |
| PIXEL_PIN: Pin = board.NEOPIXEL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "io/ioutil" | |
| "bytes" | |
| "fmt" | |
| "os" | |
| "github.com/yuin/goldmark" | |
| "github.com/yuin/goldmark/extension" | |
| "github.com/yuin/goldmark/parser" | |
| "github.com/yuin/goldmark/renderer/html" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # from https://minecraft.fandom.com/wiki/Tutorials/FreeBSD_startup_script | |
| # | |
| # PROVIDE: minecraft | |
| # REQUIRE: LOGIN DAEMON NETWORKING mountcritlocal | |
| # KEYWORD: shutdown | |
| # | |
| # Add the following lines to /etc/rc.conf.local to enable the minecraft server: | |
| # | |
| # minecraft_enable="YES" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import turtle | |
| print("Hello World.") | |
| t = turtle.Turtle() | |
| t.color('white') | |
| t.left(90) | |
| t.forward(100) | |
| t.left(270) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/perl | |
| #$Id$ | |
| use strict; | |
| use warnings; | |
| my $VERSION=1.000; | |
| =head1 NAME | |
| check_port80.pl |
NewerOlder