Powershell Running Scripts (PS1) Error

When running some ps1 file in Powershell and you get some error like:

File <Path-to-some-ps1-file>.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see “get-help about_signing” for more details.

You can solve it by running the following command in Powershell:

Set-ExecutionPolicy -Scope "CurrentUser" -ExecutionPolicy "RemoteSigned"

To reset the policy setting run:

Set-ExecutionPolicy -Scope "CurrentUser" -ExecutionPolicy "AllSigned"

Cheers!.

Connect to Wi-Fi Network through Ubuntu Terminal

Lot many people end up in a situation where they want to use internet while in console mode. It’s not that difficult task to connect to the Wi-Fi from the terminal.
There are some simple steps that you need to follow.

  1. Open the terminal.
  2. Type ifconfig wlan0 and press Enter. You will not see any output in the terminal, as this command just turns your wireless card on. Most wireless cards are designated wlan0. If yours has a different designation, use that instead.
  3. Type iwconfig wlan0 essid name key password and press Enter. Replace name with the actual network name, and replace password with the actual security key for the network. If your wireless network does not require a security key, do not enter key password.
    Note: If you want to type the ASCII password, you would use iwconfig wlan0 essid name key s:password.
  4. Type dhclient wlan0 and press Enter to obtain an IP address and connect to the WiFi network.

Enjoy!