Skip to content

Instantly share code, notes, and snippets.

View altryne's full-sized avatar
🌐
translating

altryne altryne

🌐
translating
View GitHub Profile
@altryne
altryne / baka_trace.py
Created March 9, 2023 17:58 — forked from nullcline/baka_trace.py
tsundere error traces
import traceback
import openai
import sys
# list models
models = openai.Model.list()
def baka(error, character="tsundere",):
exc_type, exc_value, exc_traceback = sys.exc_info()
traceback_list = traceback.extract_tb(exc_traceback)
@altryne
altryne / vagrant-port-forwarding.md
Last active May 30, 2016 05:47 — forked from carlossless/jenkins-port-forwarding.md
Vagrant port fowarding with Yosemite/Mavericks

Vagrant Port Forwarding (8080 -> 80, 8443 -> 443) with pf on Mavericks/Yosemite/El-Cap

This guide is a fork from this gist.

Since Mavericks stopped using the deprecated ipfw (as of Mountain Lion), we'll be using pf to allow port forwarding.

1. Create the anchor file

Create an anchor file under /etc/pf.anchors/com.vagrant with your redirection rule like:
important note the trailing whitespace is nessesary