This file contains hidden or 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
from langchain.agents.agent_toolkits import create_python_agent | |
from langchain.tools.python.tool import PythonREPLTool | |
from langchain.python import PythonREPL | |
from langchain.llms.openai import OpenAI | |
from langchain.agents import load_tools | |
from langchain.utilities import BashProcess | |
bash = BashProcess() | |
agent_executor = create_python_agent( |
This file contains hidden or 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
from langchain.agents.agent_toolkits import create_python_agent | |
from langchain.tools.python.tool import PythonREPLTool | |
from langchain.python import PythonREPL | |
from langchain.llms.openai import OpenAI | |
import os | |
os.ENVIRON['OPENAI_API_KEY'] = "sk-xxxxxxxxxxxxxxx" | |
agent_executor = create_python_agent( | |
llm=OpenAI(temperature=0, max_tokens=1000), |
This file contains hidden or 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
# These are submission Keywords that are Filtered | |
type: submission | |
~title+body+url (includes-word, regex): ['r/mysub', 'r/my-sub', 'my sub', 'my name'] | |
title+body+url (includes-word, regex): ['/?r/\w+','war', 'ban'] | |
moderators_exempt: true | |
action: filter | |
action_reason: "Words not allowed: {{match}}" |
This file contains hidden or 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
const sourceCode = document.documentElement.outerHTML; | |
const regex = /https:\/\/v2\.site-name\.pink\/videos\/\d+\.mp4/; | |
const match = sourceCode.match(regex); | |
const url = match[0]; | |
function openInNewTab(url) { | |
var win = window.open(url, '_blank'); | |
win.focus(); | |
} | |
openInNewTab(url); |
This file contains hidden or 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
@echo off | |
cd "C:\prod\local-repo" | |
git add . | |
set /p input="Name the commit: " | |
git commit -m "%input%" | |
git push origin main | |
cd .. |
NewerOlder