MySQL Download URL
https://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.46-linux-glibc2.12-x86_64.tar.gz
- Uninstall any existing version of MySQL
sudo rm /var/lib/mysql/ -R
git clone https://github.com/OpenDevin/OpenDevin.git | |
cd OpenDevin | |
conda create -n od python=3.10 | |
conda activate od | |
docker ps | |
(optional) install docker if not already installed | |
docker pull ghcr.io/opendevin/sandbox | |
export OPENAI_API_KEY={your key} | |
(optional I had to install rust) curl --proto '=https' --tlsv1.2 -sSf [https://sh.rustup.rs](https://sh.rustup.rs/) | sh | |
(optional) restart terminal |
import requests | |
import json | |
import gradio as gr | |
url = "http://localhost:11434/api/generate" | |
headers = { | |
'Content-Type': 'application/json', | |
} |
conda create -n textgen python=3.10.9 | |
conda activate textgen | |
install pytorch: pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117 | |
git clone https://github.com/oobabooga/text-generation-webui | |
cd text-generation-webui | |
pip install -r requirements.txt | |
python server.py | |
# download model | |
# refresh model list | |
# load model |
# Basic script for using the OpenAI Whisper model to transcribe a video file. You can uncomment whichever model you want to use. | |
# Author: ThioJoe ( https://github.com/ThioJoe ) | |
# Required third party packages: whisper | |
# See instructions for setup here: https://github.com/openai/whisper#setup | |
# - You can use the below command to pull the repo and install dependencies, then just put this script in the repo directory: | |
# pip install git+https://github.com/openai/whisper.git | |
import whisper | |
import io |
<?php | |
// //remove emoji support | |
remove_action('wp_head', 'print_emoji_detection_script', 7); | |
remove_action('wp_print_styles', 'print_emoji_styles'); | |
// // Remove rss feed links | |
remove_action( 'wp_head', 'feed_links_extra', 3 ); | |
remove_action( 'wp_head', 'feed_links', 2 ); |
<?php | |
namespace docker { | |
function adminer_object() { | |
require_once('plugins/plugin.php'); | |
class Adminer extends \AdminerPlugin { | |
function login($login, $password) { | |
return true; | |
} | |
} |
KEYMAPOPTS="us us" | |
HOSTNAMEOPTS="-n alpine" | |
INTERFACESOPTS="auto lo | |
iface lo inet loopback | |
auto eth0 | |
iface eth0 inet dhcp | |
hostname alpine | |
" | |
TIMEZONEOPTS="-z UTC" |
# | |
# ref https://github.com/tebeka/pythonwise/blob/master/docker-miniconda/Dockerfile | |
# | |
# miniconda vers: http://repo.continuum.io/miniconda | |
# sample variations: | |
# Miniconda3-latest-Linux-armv7l.sh | |
# Miniconda3-latest-Linux-x86_64.sh | |
# Miniconda3-py38_4.10.3-Linux-x86_64.sh | |
# Miniconda3-py37_4.10.3-Linux-x86_64.sh | |
# |
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# some more ls aliases | |
alias ll='ls -alF' | |
alias la='ls -A' | |
alias l='ls -CF' | |
alias gs='git status ' | |
alias ga='git add ' |