This file contains 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/env python3 | |
""" | |
OpenRouter Chat Transcript Converter | |
This script converts JSON chat data from OpenRouter to a markdown format. | |
It reads a JSON file and outputs a markdown file with the chat transcript. | |
Usage: openrouter2md input_file1.json [input_file2.json ...] | |
Output: input_file1.md [input_file2.md ...] |
This file contains 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 | |
# Exit unless xclip and html2markdown are installed, using the return code of 'which' | |
if ! which xclip >/dev/null 2>&1; then | |
echo "xclip is not installed" >&2 | |
exit 2 | |
fi | |
if ! which html2markdown >/dev/null 2>&1; then | |
echo "html2markdown is not installed" >&2 | |
exit 2 |
This file contains 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 | |
# | |
# Example wrapper script to run an application jailed inside the VPN. | |
# "myvpn" is the name of my namespace. | |
# | |
sudo -E ip netns exec myvpn sudo -E -u lis -- ~/bin/firefox.bin/firefox & |