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
| DELETE FROM secrets WHERE secret_repo_id!=120; | |
| INSERT INTO secrets (secret_repo_id, secret_name, secret_value,secret_images,secret_events,secret_skip_verify,secret_conceal) | |
| SELECT repo_id, secret_name, secret_value,secret_images,secret_events,secret_skip_verify,secret_conceal | |
| FROM repos, secrets | |
| WHERE repo_active AND repo_id != 120 AND secret_repo_id=120; |
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
| --- /usr/share/perl5/PVE/Storage/GlusterfsPlugin.pm 2017-11-29 13:32:31.000000000 +0300 | |
| +++ GlusterfsPlugin.pm 2017-12-14 09:11:34.313837830 +0300 | |
| @@ -41,7 +41,7 @@ | |
| if ($server && $server ne 'localhost' && $server ne '127.0.0.1' && $server ne '::1') { | |
| # ping the echo port (7) without service check | |
| - $status = PVE::Network::tcp_ping($server, undef, 2); | |
| + $status = PVE::Network::tcp_ping($server, 24007, 2); | |
| } else { |
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
| --- /usr/share/pve-manager/js/pvemanagerlib.js 2017-11-30 13:35:28.000000000 +0300 | |
| +++ pvemanagerlib.js 2017-12-14 09:27:22.761055436 +0300 | |
| @@ -847,22 +847,7 @@ | |
| success: function(response, opts) { | |
| var data = response.result.data; | |
| - if (data.status !== 'Active') { | |
| - Ext.Msg.show({ | |
| - title: gettext('No valid subscription'), | |
| - icon: Ext.Msg.WARNING, |
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/sh | |
| # to enable this script uncomment the case loop at the bottom | |
| # to report mwan status on interface hotplug ifup/ifdown events modify the lines in the send_alert function | |
| send_alert() | |
| { | |
| # variable "$1" stores the MWAN status information | |
| # insert your code here to send the contents of "$1" | |
| echo "$1" |
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
| pref.vmplayer.exit.vmAction = "disconnect" | |
| pref.vmplayer.confirmOnExit = "FALSE" |
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
| //go run main.g | |
| import "net/http" | |
| func main() { | |
| http.ListenAndServe(":8000", http.FileServer(http.Dir("."))) | |
| } |
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
| #disk | |
| fdisk /dev/vda # vda1 512M vda2 .. | |
| vgcreate vg /dev/vda2 | |
| lvcreate vg -l 100%FREE --name rootfs | |
| mkfs.ext4 /dev/vda1 | |
| mkfs.ext4 /dev/mapper/vg-rootfs | |
| mount /dev/mapper/vg-rootfs /mnt | |
| mkdir /mnt/boot | |
| mount /dev/vda1 /mnt | |
| #install base system & chroot to it |
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
| dnf -y install @lxqt | |
| dnf -y install tigervnc-server | |
| firewall-cmd --add-service=vnc-server --permanent | |
| firewall-cmd --reload | |
| vncpasswd | |
| vncserver :1 -geometry 1367x768 -depth 16 | |
| vncserver -kill :1 | |
| vi ~/.vnc/xstartup | |
| #exec startlxqt | |
| vncserver :1 -geometry 1367x768 -depth 16 |
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
| ipset create rkn hash:ip || ipset flush rkn | |
| ipset create rkn2 hash:ip || ipset flush rkn2 | |
| wget http://api.antizapret.info/all.php\?type\=csv -O - | cut -d';' -f4 | sed -e "s#,#\n#g" | sort | uniq | grep -v '/' > /tmp/IPlist | |
| while read IP; do ipset add rkn $IP || ipset add rkn2 $IP ; done </tmp/IPlist | |
| rm -f /tmp/IPlist |
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
| #dig form bind-utils | |
| while read DNS; do | |
| echo $DNS | |
| dig @$DNS getbootstrap.com | grep "Query time:" | |
| done <dns.list |