Check out the code snippet below to see how it works to generate a number between 1 and 100.
for x in range(10):
The code above will print 10 random values of numbers between 1 and 100. The second line, for x in range(10), determines how many values will be printed (when you use range(x), the number that you use in place of x will be the amount of values that you’ll have printed. if you want 20 values, use range(20). use range(5) if you only want 5 values returned, etc.). Then the third line: print random.randint(1,101) will automatically select a random integer between 1 and 100 for you. The process is fairly simple.
Block an IP
iptables -I INPUT -s 220.127.116.11 -j DROP
After rebooting the server we notice the rules are removed. It’s best to save your configs and restore them after a reboot.
iptables-save > /etc/iptables/rules
iptables-restore < /etc/iptables/rules
flush all rules
flush rules in the input chain
iptables -F INPUT
iptables -L –line-numbers
iptables -D INPUT 3 – delete a line
The application launcher *.desktop has not been marked as trusted. If you do not know the source of this file, launching it may be unsafe.
Then there is no other options available to you. I found this to be a permission issue if you downloaded the application as root. The app group will need to be changed to a users group with executable rights.
Applications => Utilities => Tweak Tool => Power=> Don’t suspend on lid close => ON