from langchain_core.messages import HumanMessage, SystemMessage, AIMessage
from .chat_history import *
llm_history_oiginal = [
SystemMessage(
content=[
{"type": "text", "text": "You are an helpful and intelligent assistant. But converting your text to the speech process can be long so please make short your answers as possible."},
{"type": "text", "text": "Answer with maximum 3 sentences. Also please feel free to use tools."},
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
# SOURCE: https://askubuntu.com/questions/205520/history-list-without-timestamp-and-unique-the-results | |
history 10 | cut -c8- | pbcopy |
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
yt-dlp -v -f "bv*+ba/b" -n --ignore-errors --no-mtime --recode-video mp4 --embed-thumbnail --convert-thumbnails jpg --cookies=~/Downloads/yt-cookies.txt -o "%(uploader|uploader_id|creator)s__%(title)s__-%(id)s.%(ext)s" -o "thumbnail:%(uploader)s__%(title)s__-%(id)s.%(ext)s" -j "<WEBSITE>" |
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
yt-dlp -I "1::2" <url> |
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
aiohttp==3.9.5 | |
aiosignal==1.3.1 | |
annotated-types==0.7.0 | |
anyio==4.4.0 | |
asr_python==0.4.1 | |
async-timeout==4.0.3 | |
attrs==23.2.0 | |
beautifulsoup4==4.10.0 | |
blinker==1.8.2 | |
boto3==1.34.122 |
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 bash | |
### | |
# @Author: Cloudflying | |
# @Date: 2023-03-27 20:24:49 | |
# @LastEditTime: 2024-05-01 09:14:45 | |
# @LastEditors: Cloudflying | |
# @Description: Node Init | |
### | |
_install() { |
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 bash | |
#/ Usage: bin/zsh-dotfiles-prereq-installer [--debug] | |
export ZSH_DOTFILES_PREP_CI=1 | |
export ZSH_DOTFILES_PREP_DEBUG=1 | |
export ZSH_DOTFILES_PREP_GITHUB_USER=bossjones | |
export ZSH_DOTFILES_PREP_SKIP_BREW_BUNDLE=1 | |
# Colors | |
ESC_SEQ="\x1b[" |
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 functools | |
import asyncio | |
from concurrent.futures import ThreadPoolExecutor | |
def to_async(func): | |
"""Turns a sync function to async function using event loop""" | |
@functools.wraps(func) | |
async def run(*args, loop=None, executor=None, **kwargs): | |
if loop is None: |
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
# Instructions: https://api.slack.com/automation/quickstart | |
# check permissions of your /usr/local/bin dir (slack needs /usr/local/bin to be owned by the user) | |
# should look like: | |
# # before | |
# ❯ ls -lta /usr/local/ | grep bin | |
# drwxr-xr-x 20 root wheel 640 Mar 20 10:37 bin | |
# # after | |
# ❯ ls -lta /usr/local/ | grep bin |
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 bash | |
# SOURCE: https://github.com/kodekloudhub/certified-kubernetes-administrator-course/blob/master/kubeadm-clusters/apple-silicon/deploy-virtual-machines.sh | |
# When VMs are deleted, IPs remain allocated in dhcpdb | |
# IP reclaim: https://discourse.ubuntu.com/t/is-it-possible-to-either-specify-an-ip-address-on-launch-or-reset-the-next-ip-address-to-be-used/30316 | |
ARG=$1 | |
set -euo pipefail | |
# Set the build mode |
NewerOlder