Category Archives: Linux

How to Change the Timezone in Linux.

A time zone is a region on Earth that has a uniform standard time for legal, commercial, and social purposes. It is convenient for areas in close commercial or other communication to keep the same time, so time zones tend to follow the boundaries of countries and their subdivisions.

How to do that into linux OS?

It changes /etc/localtime …

You will see this window to setup your localtime.

timezone

Another way to change the localtime it’s:

and select your local time by region …

Posted in All, Commands, Linux. Tagged with , , , .

How to show your passwords saved in Chrome.

It’s very easy , just open one google chrome tab and write this :
chrome://settings/passwords
Now you can see one new window with your saved passwords …

Posted in All, Linux, web, Windows 7, Windows 8, Windows XP. Tagged with , , , , , .

Rename multiple files by cutting first part , the end or in middle of name under Linux – part 001.

You can see the images I make with Screenshot application and is named like :

When you want to rename multiple files recursively is very good to know how is finally format name.

It’s tree way to deal with this issue.

First you can cut the first part , the end or in middle of name.

Let cut first part in the named files. In this example I will remove : Screenshot – 10272013 – .

The next command will cut first 24 letters from the name of files.

Let’s see the output of this command:

Now I will cut the last 4 letters from the names of the files:

… and output will be :

Now you don’t use in command this:

… because you dont have now the .png in your names of files.

When you want to rename file in middle of name the you need something new.

Using the sed command to solve this issue:

You can see I change somethig from :

in this :

“$(echo $my_file | sed ‘s/ AM/ PM/g’)”

This will change the second from args of mv command into you want.

In this case will replace ‘ AM’ with ‘ PM’…

Sed also can change the special characters… Let’s remove the colon : with nothing.

… and the result of this command:

Posted in All, Bash, Commands, Linux. Tagged with , , , , .

fasm about format ELF executable 3 – part 002 .

If you read fasm-about-format-elf-executable-3 tutorial then you will have some errors.
It’s just a simple example to show you how to deal with .inc files in your project.
You need to have func.inc and date.inc files to run fasm with proj.asm.
This tow files will come with date and functions for your project.
First the proj.asm file :

The next two .inc files  …first date.inc come with :

and the func.inc file come with :

And the result is:

Posted in All, Assembler, Linux. Tagged with , , , .

How to fix : Netflix is not available in your country yet.

You can watch instantly from any Internet-connected device that offers a Netflix.

But just if you are from US…

netflix_hack

Also you can solve this under linux.

Open the /etc/resolv.conf file and add this:

Under Window OS is very easy : open Network Connections and find the Use the following DNS server addresses then change this: The primary (preferred) DNS server is 69.197.169.9 and The secondary (alternate) DNS server is: 192.95.16.109.

You can register and watch on Netflix.

Posted in All, Linux, web, Windows 7. Tagged with , , , , .