Skip to content

Instantly share code, notes, and snippets.

View strayer's full-sized avatar
🇺🇦
🕊

Sven Grunewaldt strayer

🇺🇦
🕊
View GitHub Profile
@strayer
strayer / aws-bedrock-converse-api.md
Created May 23, 2025 17:30
Quick and dirty Markdown export of AWS Bedrock Converse and ConverseStream APIs (no guarantees for completeness and correctness)

Converse

Sends messages to the specified Amazon Bedrock model. Converse provides a consistent interface that works with all models that support messages. This allows you to write code once and use it with different models. If a model has unique inference parameters, you can also pass those unique parameters to the model.

Amazon Bedrock doesn't store any text, images, or documents that you provide as content. The data is only used to generate the response.

You can submit a prompt by including it in the messages field, specifying the modelId of a foundation model or inference profile to run inference on it, and including any other fields that are relevant to your use case.

You can also submit a prompt from Prompt management by specifying the ARN of the prompt version and including a map of variables to values in the promptVariables field. You can append more messages to the prompt by using the messages field. If you use a prompt from Prompt management, you can't include the following fields in t

#!/usr/bin/env bash
set -euo pipefail
# Set the path to your local repository
readonly REPO_PATH="/path/to/your/local/repository"
# Set the log file path
readonly LOG_FILE="/path/to/your/logfile.log"
start=Seyda Neen
skip-menu=0
no-sound=0
groundcover=Vurt's Groundcover - Reeds.esp
groundcover=Rem_GL.esp
groundcover=Rem_WG.esp
groundcover=Rem_AL.esp
groundcover=Rem_BC.esp
# This is the OpenMW user 'settings.cfg' file. This file only contains
# explicitly changed settings. If you would like to revert a setting
# to its default, simply remove it from this file. For available
# settings, see the file 'files/settings-default.cfg' in our source repo or the documentation at:
#
# https://openmw.readthedocs.io/en/master/reference/modding/settings/index.html
[Camera]
viewing distance = 48680
view over shoulder = true
@strayer
strayer / gen-telegraf-vigor-snmp.conf
Created December 21, 2020 14:45
Generate telegraf.conf for Vigor DSL model ADSL SNMP
#!/usr/bin/env bash
set -Eeuo pipefail
# download http://www.circitor.fr/Mibs/Mib/A/ADSL-LINE-MIB.mib to $HOME/.snmp/mibs
NAMES=$(snmpwalk -m ALL -v2c -cpublic $VIGOR_IP | grep ADSL | cut -f1 -d' ')
for i in $NAMES; do
SHORTNAME=$(printf "$i" | cut -f3 -d":" | cut -f1 -d'.')
OID=$(snmptranslate -On "$i")
@strayer
strayer / i2c.ex
Created September 19, 2018 11:28
defmodule ExLCD.HD44780.I2C do
@moduledoc """
**ExLCD.HD44780** is the display driver module for Hitachi
HD44780 type parallel LCD display controller managed display modules.
## Hitachi HD44780 Style Controller (including Sitronix ST7066)
The HD44780 is the most ubiquitous character matrix display controller
but not the only one. It supports a number of standard operations like
moving the cursor, displaying characters and scrolling. It is an 8-bit
@strayer
strayer / titusz-cryptop.rb
Created November 14, 2017 09:32
titusz/cryptop Homebrew Formula
class TituszCryptop < Formula
desc "command line crypto portfolio"
homepage "https://github.com/titusz/cryptop"
head "https://github.com/titusz/cryptop.git"
include Language::Python::Virtualenv
depends_on :python3
resource "certifi" do
@strayer
strayer / btcconf.py
Last active November 17, 2017 14:14
Simple Python script to show BTC to EUR/USD as Alfred workflow result
#!/usr/local/bin/python3
import sys
from urllib.request import urlopen
import json
from decimal import Decimal
import locale
def format_eur(eur):
locale.setlocale(locale.LC_ALL, "de_DE.UTF-8")
return locale.currency(eur, grouping=True, international=True)

Keybase proof

I hereby claim:

  • I am strayer on github.
  • I am strayer (https://keybase.io/strayer) on keybase.
  • I have a public key ASDL-9eATKRsw97yAX7vxbrfC3_qs0jfB0yS_cbGm-TqAwo

To claim this, I am signing this object:

@strayer
strayer / Dockerfile
Created May 24, 2016 08:48
Spigot Dockerfile
FROM alpine:3.3
ENV SPIGOT_BUILDTOOLS_REV=1.8.8
RUN apk add --no-cache --repository http://dl-1.alpinelinux.org/alpine/edge/community/ tini && rm -rf /var/cache/apk/*
RUN apk add --no-cache openjdk8-jre && rm -rf /var/cache/apk/*
RUN apk add --no-cache --virtual=build-dependencies curl bash git grep && \
mkdir /tmp/minecraft-builder && \