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
    
  
  
    
  | Blocking YouTube ads by modifying your computer's hosts file involves redirecting requests to YouTube's ad servers to a non-existent domain. This method can be used to block advertisements on YouTube, but it requires some technical knowledge and is not recommended for inexperienced users. | |
| Here's how you can modify your hosts file to block YouTube ads: | |
| Locate your hosts file: The location of the hosts file varies depending on your operating system. On Windows, it is located at C:\Windows\System32\drivers\etc\hosts. On Mac, it is located at /private/etc/hosts. On Linux, it is located at /etc/hosts. | |
| Open the hosts file: You will need administrator privileges to edit the hosts file. On Windows, you can open the hosts file using a text editor, such as Notepad, as an administrator. On Mac and Linux, you can open the hosts file using the terminal and a text editor, such as nano. | |
| Add the following lines to the end of the file: | 
  
    
      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
    
  
  
    
  | def kissing_number(d): | |
| if d == 2: | |
| return 6 | |
| else: | |
| return None | |
| d = int(input("Enter the number of dimensions: ")) | |
| if d > 1: | |
| k = kissing_number(d) | |
| if k: | 
  
    
      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
    
  
  
    
  | def riemann_hypothesis(n): | |
| from math import log | |
| for i in range(2, n): | |
| if i ** (i - 1) > 2 * log(i): | |
| return i | |
| return None | |
| n = int(input("Enter a positive integer: ")) | |
| if n > 2: | |
| counterexample = riemann_hypothesis(n) | 
  
    
      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
    
  
  
    
  | def collatz(n): | |
| print(n) | |
| while n != 1: | |
| if n % 2 == 0: | |
| n = n // 2 | |
| else: | |
| n = 3 * n + 1 | |
| print(n) | |
| n = int(input("Enter a positive integer: ")) | 
  
    
      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
    
  
  
    
  | # Disable unnecessary services | |
| Get-Service | Where-Object {$_.DisplayName -notmatch "Windows Defender.*|Windows Update.*"} | Stop-Service -PassThru | Disable-Service | |
| # Enable firewall | |
| New-NetFirewallRule -DisplayName "Block all incoming traffic" -Direction Inbound -Action Block | |
| # Set strong passwords | |
| $PasswordPolicy = New-Object -TypeName System.DirectoryServices.AccountManagement.PasswordPolicy | |
| $PasswordPolicy.Length = 14 | |
| $PasswordPolicy.UppercaseCount = 3 | 
  
    
      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 | |
| # 1. Update system packages | |
| sudo apt-get update | |
| sudo apt-get upgrade -y | |
| # 2. Create a new non-root user | |
| sudo adduser <new_user> | |
| sudo usermod -aG sudo <new_user> |