Monthly Archives: April 2015

Fedora 20 ethernet

p1p1 is Fedora 20 default ethernet interface name.

Comparing to traditional “eth0”, p1p1 is very different.

Mac address of p1p1 is 00:00:00:00:00 by default. The driver is not problem actually, however, I don’t know why Mac address is 00.

ifconfig p1p1 hw ether 02:01:02:03:04:08

ifconfig p1p1 up

 

then interface p1p1 will up and get ip address from dhcp server automatically.

199 Binary Tree Right Side View

Total Accepted: 2068 Total Submissions: 7422

Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.

For example:
Given the following binary tree,

   1            <---
 /   \
2     3         <---
 \     \
  5     4       <---

You should return [1, 3, 4].

 

[code]

binarySideView

[/code]

PsExec remote Invoke Command

Without Configuration, PsExec could not execute successfully.

copy the following text and saved into .reg file in target machine:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
“LocalAccountTokenFilterPolicy”=dword:00000001

 

Then PsExec could run successfully.