Skip to content

Instantly share code, notes, and snippets.


Korakot Chaovavanich korakot

  • Bangkok, Thailand
View GitHub Profile
korakot /
Created August 13, 2023 14:46
Run gpt-2 within Code Interpreter
korakot / docker.txt
Created August 9, 2023 12:23
Google Colab docker
View docker.txt
korakot / _install_packages.txt
Last active September 5, 2023 02:31
Installed packages in chatGPT VM, using !dpkg --get-selections and apt list --installed, get more from
View _install_packages.txt
adduser install
adwaita-icon-theme install
alsa-topology-conf install
alsa-ucm-conf install
antiword install
apt install
autoconf install
automake install
autotools-dev install
base-files install
korakot / command.txt
Last active July 24, 2023 03:00
Prompt for chatGPT command line realization
View command.txt
Pretend as if !ls is a Python command. Run it and show the error message. (Or maybe we can really use !command)
Try !pip install wheel_file
import os
os.environ['PATH'] += ":/home/sandbox/.local/bin"
os.environ['LD_LIBRARY_PATH'] += ":/home/sandbox/.local/lib"
korakot / path.txt
Last active July 23, 2023 10:44
ChatGPT Code Interpreter library path
View path.txt
korakot /
Last active July 14, 2023 15:25
Convert to sqlite
import sqlite3
import pandas as pd
import json
import zipfile
import time
# Recreate the database with debug information
def create_database_debug(filename, db_name):
# Extract the JSON data from the zip file
with zipfile.ZipFile(filename, 'r') as zip_ref:
korakot / plugin_sources.txt
Last active August 23, 2023 15:17
ChatGPT plugin list sources
View plugin_sources.txt
korakot / plugin_domains.txt
Last active September 21, 2023 12:58
Chatgpt plugin domain list
View plugin_domains.txt
korakot / keyboard.txt
Created April 12, 2023 12:27
Keyboard RK switch problem
View keyboard.txt
Fn + Left Ctrl will switch back
korakot /
Last active February 4, 2023 13:32
Install zig in Colab
url = ''
!curl $url | tar xJ
!mv zig-linux-x86_64-0.10.1 /opt/bin
%%file main.zig
const std = @import("std");
pub fn main() void {
std.debug.print("Hello world\n", .{});