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
import telegram | |
import openai | |
# Replace 'YOUR_TELEGRAM_TOKEN' and 'YOUR_OPENAI_API_KEY' with your actual tokens. | |
telegram_token = 'YOUR_TELEGRAM_TOKEN' | |
openai_api_key = 'YOUR_OPENAI_API_KEY' | |
# Initialize the Telegram bot. | |
bot = telegram.Bot(token=telegram_token) |
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
import time | |
def get_timezone(): | |
return time.tzname[time.localtime().tm_isdst] |
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
package main | |
import ( | |
"archive/tar" | |
"fmt" | |
"io" | |
"io/ioutil" | |
"os" | |
"github.com/docker/docker/api/types" |
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
package main | |
import ( | |
"flag" | |
"fmt" | |
"github.com/mirtchovski/walk" | |
"log" | |
"os" | |
"runtime/pprof" | |
"time" |