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
import threading | |
import time | |
from nsetools import Nse | |
from pprint import pprint | |
nse = Nse() | |
allStocks = nse.get_stock_codes() | |
def get_stock_info(stock): | |
try: |
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
#!/bin/bash | |
apt update | |
apt install -y vim mlocate wget curl net-tools zip | |
FILE=/usr/share/javascript/proxmox-backup/js/proxmox-backup-gui.js | |
cp $FILE $FILE.$(date +%d_%m_%Y_%Hhr_%Mm_%Ss).original | |
# Change Logo, Favicon, Bios Image | |
mkdir /usr/share/custom/backup | |
cp /usr/share/javascript/proxmox-backup/images/{logo-128.png,proxmox_logo.png} /usr/share/custom/backup/ |
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
#!/bin/bash | |
sed -i.orginal "s/quiet/quiet intel_iommu=on/g" /etc/default/grub 2>/dev/null | |
update-grub | |
cp /etc/modules /etc/modules.original | |
echo "vfio | |
vfio_iommu_type1 | |
vfio_pci | |
vfio_virqfd" >> /etc/modules | |
echo "find /sys/kernel/iommu_groups/ -type l" >> /root/checkhdd.sh |
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
#!/bin/bash | |
cp /etc/network/interfaces /etc/network/interfaces.original | |
echo "auto lo | |
iface lo inet loopback | |
iface eno2 inet manual | |
iface eno1 inet manual | |
auto vmbr0 |
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
#!/bin/bash | |
# Post Install | |
cd /root | |
wget https://gansan.in/downloads/virt_logo.png | |
mv /usr/share/pve-manager/images/proxmox_logo.png /usr/share/pve-manager/images/proxmox_logo.png.original | |
mv /usr/share/pve-docs/ /usr/share/noshow/ | |
cp /root/virt_logo.png /usr/share/pve-manager/images/proxmox_logo.png 2>/dev/null | |
sed -i.original "s/Proxmox VE Login/LCMC Login/g;s/Proxmox VE authentication server/Special/g" /usr/share/pve-manager/js/pvemanagerlib.js | |
sed -i.original "s/\[% nodename %\] - Proxmox Virtual Environment/LCMC - Virtual Enviornment/g" /usr/share/pve-manager/index.html.tpl | |
sed -i.original "s/data.status !== 'Active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service |
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
#!/bin/bash | |
apt install -y net-tools vim wget mlocate bridge-utils git sudo | |
cd /root | |
echo "deb http://download.proxmox.com/debian/pve buster pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list | |
wget http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg | |
chmod +r /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg | |
apt update -y && apt full-upgrade -y | |
apt install -y proxmox-ve postfix open-iscsi | |
NewerOlder