export ANTHROPIC_BASE_URL="http://localhost:11434"
export ANTHROPIC_AUTH_TOKEN="ollama"
export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
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/zsh | |
| # Take a baseline snapshot of a macOS system into a timestamped folder under ~ | |
| # Safe to run on a brand new Mac before you make major changes. | |
| set -u # (no -e so one failing command doesn't abort everything) | |
| TIMESTAMP=$(date +%Y%m%d-%H%M%S) | |
| SNAPDIR="$HOME/macOS-baseline-$TIMESTAMP" | |
| echo "▶ Creating baseline snapshot in: $SNAPDIR" |
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
| granted credential-process --profile $AWS_PROFILE | jq -r '"export AWS_ACCESS_KEY_ID=\(.AccessKeyId)\nexport AWS_SECRET_ACCESS_KEY=\(.SecretAccessKey)\nexport AWS_SESSION_TOKEN=\(.SessionToken)"' |
This nginx.conf can be used to convert an OAuth2 / OIDC client_credentials POST request (e.g. from am application) into the form required by Azure Managed Identities tokenss issued by the Azure Instance Metadata Service (IMDS).
IMDS presents a non-standard interface for OAuth - namely:
- It only accepts HTTP GETs, not POSTs as is required for
client_credentials. - It doesn't require the normal HTTP BASIC credentials presented, but these are safely ignored.
- It requires a static HTTP request header
Metadata=true.
This config proxies these requests, makes the above changes and forwards to local IMDS on 169.254.169.254:80.
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 -euo pipefail | |
| IFS=$'\n\t' |
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
| FROM centos:centos8.2.2004 | |
| RUN yum update -y && \ | |
| yum group install -y "Development Tools" && \ | |
| yum install -y git cyrus-sasl-devel cmake libcurl-devel | |
| RUN git clone https://github.com/edenhill/kafkacat.git && \ | |
| cd kafkacat/ && \ | |
| ./bootstrap.sh && \ | |
| ./kafkacat -h |
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
| FROM ubuntu:18.04 | |
| ENV SASL_MECHANISMS="PLAIN" | |
| ENV SECURITY_PROTOCOL="SASL_SSL" | |
| RUN apt-get update && \ | |
| apt-get install -y python3 python3-pip curl vim git build-essential zlib1g-dev libssl-dev libsasl2-dev libzstd-dev libcurl4-openssl-dev liblz4-dev rapidjson-dev | |
| RUN git clone https://github.com/confluentinc/librdkafka.git && \ | |
| cd librdkafka && \ |
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
| // Code generated by protoc-gen-go. DO NOT EDIT. | |
| // source: gtfs-realtime.proto | |
| package main | |
| import ( | |
| fmt "fmt" | |
| proto "github.com/golang/protobuf/proto" | |
| math "math" | |
| ) |
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 test; | |
| import javax.jms.Connection; | |
| import javax.jms.ConnectionFactory; | |
| import javax.jms.JMSException; | |
| import com.tibco.tibjms.TibjmsConnectionFactory; | |
| public class TibJmsPoke { | |
| public static void main(String[] args) throws JMSException { |
NewerOlder