Thank you everybody, Your comments makes it better
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"| import requests | |
| import json | |
| import os | |
| from langchain_community.chat_models import ChatOllama | |
| from langchain_core.output_parsers import StrOutputParser | |
| from langchain_core.prompts import PromptTemplate | |
| # Assuming the above imports for LangChain are set up correctly | |
| # https://access.redhat.com/articles/3626371 |
Thank you everybody, Your comments makes it better
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"| #!/bin/env python | |
| # Requires: youtube_dl module | |
| # Requires: ffmpeg | |
| # Usage: | |
| # | |
| # python youtube2mp3.py <URL>, ... | |
| # | |
| # Example: | |
| # | |
| # python youtube2mp3.py https://www.youtube.com/watch?v=dQw4w9WgXcQ |
| #!/bin/sh | |
| ####################################################### | |
| # | |
| # Edits the proxmox Subscription file to make it | |
| # think that it has a Subscription. | |
| # | |
| # Will disable the annoying login message about | |
| # missing subscription. | |
| # |
| cat > /etc/systemd/system/pve-patcher.service <<EOT | |
| [Unit] | |
| Description=PVE subscription popup disabler | |
| [Service] | |
| Type=oneshot | |
| RemainAfterExit=yes | |
| ExecStart=/bin/sed -i "s/data.status !== 'Active'/false/g" /usr/share/pve-manager/js/pvemanagerlib.js /usr/share/pve-manager/touch/pvemanager-mobile.js | |
| [Install] |
| # source: https://forum.proxmox.com/threads/removing-deleting-a-created-cluster.18887/ | |
| #/bin/sh | |
| # stop service | |
| systemctl stop pvestatd.service | |
| systemctl stop pvedaemon.service | |
| systemctl stop pve-cluster.service | |
| systemctl stop corosync | |
| systemctl stop pve-cluster | |
| # edit through sqlite, check, delete, verify |
| # Configuration file for runtime kernel parameters. | |
| # See sysctl.conf(5) for more information. | |
| # See also http://www.nateware.com/linux-network-tuning-for-2013.html for | |
| # an explanation about some of these parameters, and instructions for | |
| # a few other tweaks outside this file. | |
| # Protection from SYN flood attack. | |
| net.ipv4.tcp_syncookies = 1 |
| # Kernel sysctl configuration file for Red Hat Linux | |
| # | |
| # For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and | |
| # sysctl.conf(5) for more details. | |
| # Turn on execshield | |
| # 0 completely disables ExecShield and Address Space Layout Randomization | |
| # 1 enables them ONLY if the application bits for these protections are set to “enable” | |
| # 2 enables them by default, except if the application bits are set to “disable” | |
| # 3 enables them always, whatever the application bits |
| #!/bin/bash | |
| lsblk | |
| echo -n "Enter disk name and press [ENTER]: " | |
| read disk | |
| echo -e "o\nn\np\n1\n\n\nw" | fdisk /dev/$disk | |
| mkfs.xfs -f /dev/$disk |
| REVISION: 1 | |
| RELEASED: Fri May 5 19:47:55 2017 | |
| CHART: gitlab-ce-0.1.7 | |
| USER-SUPPLIED VALUES: | |
| storageClass: ceph | |
| COMPUTED VALUES: | |
| httpPort: 80 | |
| httpsPort: 443 | |
| image: gitlab/gitlab-ce:9.0.0-ce.0 |