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 | |
# -*- coding: utf-8 -*- | |
import pymysql | |
import argparse | |
import getpass | |
def parse_command_line_args(): | |
parser = argparse.ArgumentParser() |
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
# PS > notepad $PROFILE | |
function Get-History-All | |
{ | |
Get-Content -Path (Get-PSReadlineOption).HistorySavePath | |
} | |
New-Alias history-all Get-History-All |
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 sh | |
OPENAI_API_KEY="sk-xxx" | |
request_params=$( | |
cat <<EOF | |
{ | |
"model": "gpt-3.5-turbo", | |
"stream": true, | |
"messages": [ |
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
see: https://github.com/woodongwong/tvfix |