Category Archives: Windows 10

PowerShell tips – part 003.

Today I will show you new tips and tricks with powershell.

If you want to see more about your operating system information:
Get-CimInstance Win32_OperatingSystem | FL *

Show your Video Driver version:
gwmi win32_VideoController | select DeviceID,Name,DriverVersion | FT *

Take infos about your laptop battery:
gwmi win32_battery
gwmi -Class batterystatus -Namespace root\wmi

You can retrieve performance information about the current Windows PowerShell process:
Get-Process -Id $pid

Resize your command prompt window:
mode 90,30

Posted in All, Commands, PowerShell, Windows 10. Tagged with , , , , , .

Windows 10 – netsh commands.

Today I will tell you about netsh command with args.
If you using the Windows XP the take a look here.
This command will help you with your interfaces.
How to show the help:

Show all ipv4 interfaces:

Show all ipv6 interfaces:

Show the subinterfaces for ipv6:

– change ipv6 to ipv4 to see for ipv4.
Let’s check interface parameters with this command:

– the 7 interface is the Idx of the interface.
Disable Teredo IPv6 Tunneling interface.

If you wish to re-enable Teredo at some point you can issue the command:

Take a look at this link – DDOS attack.
Now I change Base Reachable Time, just:

Reachable Time is strictly connected to the arp caching, his value can’t be changed but it is automatically calculated anytime the interface comes up. Also the Reachable Time = BaseReachable Time X Random Value (MIN_RANDOM_FACTOR 0.5 and MAX_RANDOM_FACTOR 1,5). BaseReachable Time is editable, so if you need to increase Reachable Time, you have to increase BaseReachable Time.
If routing don’t want to work well then take a look at this – solved-it-myself-router-keeps-re-configuring-my.

Posted in All, Commands, Windows 10. Tagged with , , , .

Remove pre-installed Windows 10 applications.

Windows 10 come with pre-installed applications.
You may want to uninstall some of this applications.
Just press Windows and R keys and write powershell.
You can see your powershell command line with this text:
Windows PowerShell
Copyright (C) 2015 Microsoft Corporation. All rights reserved.

PS C:\Users\your_user>
I will show you one list with this pre-installed applications. For each application you can use this commands:

Posted in All, Commands, PowerShell, Windows 10. Tagged with , , , , .

Share images over internet with snaggy website tool.

This tool can be very suitable for artists who want to fix or to request details in their artistic process.
Also for those who want to report bugs, represented by static images.
Here’s what makes this tool:
capture your screen with your keyboard’s Print Screen key.
use snaggy’s simple editor to crop and annotate your image.
you can also paste selections from your favorite image editor.
paste local files and images from websites into snaggy.

Posted in All, web, Windows 10. Tagged with , , , .

Programming with C# and Unity 3D game engine – part 003 .

In this tutorials I will show how to deal with lists and enumerations.
First you need to make one C# script under Unity 3D. If don’t know how to do it then read this tutorial.
The list is an object which holds variables in a specific order.
The enumeration is an object with one distinct type that consists of a set of named constants called the enumerator list.
Let’s start with lists.
You need to put this on your script:

Now you can create list under your class , see the example with one class named YourClass:

We can see the List’s syntax is at first confusing. If you take a look to types – int, sting and GameObject and variables – ages, names and objects then the base remain this: List<...> … = new List<...>(); where types are into <> and variables can be created with = new … ().
Now will add one value to names with:

To reverse one list in-place then use this:

If you want then can remove one:

We can use an array to initialize a List named animals:

Loop into the list animals and print the list:

To get the number of elements from animals list, use this:

To clean the list just use this:

The next step is enumerations and is define by the enum type.
An enum type internally contains an enumerator list like this example:

In this enum named animals, cat will be zero (unless given another value explicitly), dog will be one, and fox will be two …
To print out the enum values, you can call ToString on the enum variable in a program.
The Console.WriteLine can automatically call the ToString method.
Using GetValues method with foreach to returns an array that contains a value for each member of the enumType enumeration.

Sometimes we have a string value that we want to convert to an equivalent enum and we can use Parse().
Also you can used many enum like: Enum.Parse, Enum.TryParse, Enum.Format, Enum.IsDefined…
You can get values from enum , see the example:

Convert enums to list:

Posted in C#, Game engine, Unity 3D, Visual Studio, Windows 10. Tagged with , , , , , , .