Thank you everybody, Your comments makes it better
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"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 |