Monday, May 29, 2017

How to make Windows 7 bootable install USB stick

Please note: during this procedure you'll lose any data on your USB flash drive. Please be extra careful during formatting, choosing the wrong drive will erase it completely. This guide provided as-is, at your own risk.
You will need:
1. PC running Windows XP/Vista/7/8
2. Windows 7, 32/64-bit (depending on the system) installation disk
3. USB drive with at least 8GB of free storage

Preparing the USB drive:
1. Open command prompt as administrator - Right click on Start > All Programs > Accessories > Command Prompt and select Run as administrator or type cmd in the Start search bar.
2. Run diskpart utility by typing
diskpart
into command prompt window and pressing “Enter”.
3. Locate your USB drive disk number by executing list disk. We'll assume the USB drive is 1.
4. Run the following commands:
1. select disk 1
2. clean
3. create partition primary
4. select partition 1
5. active
6. format fs=NTFS
7. assign
8. exit
Now we have prepared USB drive. Lets make it bootable:
1. Insert Windows 7, 32/64-bit installation disk into DVD drive. Let's assume it's D
2. Go to D:\boot (cd d:\boot)
3. If your USB drive letter is “e” please run
bootsect /nt60 e:
4. Copy DVD Windows 7 media content to USB root folder (etc. don't put it into any folder)

You are now ready to install Windows 7 from USB flash drive!

Original

Friday, November 25, 2016

Perl debug output

Perl debug output:


say( __LINE__ .' # DEBUG # Sub: '. (caller(0))[3] . '$var: '. Dumper( \$var ) );

Tuesday, May 24, 2016

Video surveillance through the Internet



http://demo.pmm.su

The project is a cloud service that provides customers with a simple solution for the organization of video surveillance via internet, creation and storage of video recordings.
This solution is an alternative to the use of the DVR (difficult and expensive) software products from equipment manufacturers (limit viewing and recording capabilities, a long delay) and foreign cloud services (long delay, restrictions on entry).

Sunday, January 24, 2016

The 25 Most Popular Passwords of 2015: We're All Such Idiots

http://gizmodo.com/the-25-most-popular-passwords-of-2015-were-all-such-id-1753591514


1. 123456 (Unchanged)

2. password (Unchanged)

3. 12345678 (Up 1)

4. qwerty (Up 1)

5. 12345 (Down 2)

6. 123456789 (Unchanged)

7. football (Up 3)

8. 1234 (Down 1)

9. 1234567 (Up 2)

10. baseball (Down 2)

11. welcome (New)

12. 1234567890 (New)

13. abc123 (Up 1)

14. 111111 (Up 1)

15. 1qaz2wsx (New)

16. dragon (Down 7)

17. master (Up 2)

18. monkey (Down 6)

19. letmein (Down 6)

20. login (New)

21. princess (New)

22. qwertyuiop (New)

23. solo (New)

24. passw0rd (New)

25. starwars (New)

Monday, October 19, 2015

Resource agents Path

find /usr/lib/ -name heartbeat

/usr/lib/ocf/lib/heartbeat
/usr/lib/ocf/resource.d/heartbeat

Thursday, September 24, 2015

list mysql connections

lsof -nPi :3306

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
mysqld 5748 mysql 20u IPv4 19843 0t0 TCP *:3306 (LISTEN)
mysqld 5748 mysql 132u IPv4 24831149 0t0 TCP 10.50.124.17:3306->172.31.24.12:51908
mysqld 5748 mysql 163u IPv4 24831150 0t0 TCP 10.50.124.17:3306->172.31.24.12:51909
mysqld 5748 mysql 169u IPv4 24831446 0t0 TCP 10.50.124.17:3306->172.31.24.11:56843
mysqld 5748 mysql 193u IPv4 24831447 0t0 TCP 10.50.124.17:3306->172.31.24.11:56844
mysqld 5748 mysql 198u IPv4 24831448 0t0 TCP 10.50.124.17:3306->172.31.24.11:56845
mysqld 5748 mysql 265u IPv4 24831404 0t0 TCP 10.50.124.17:3306->172.31.24.12:51917
mysqld 5748 mysql 280u IPv4 24831505 0t0 TCP 10.50.124.17:3306->172.31.24.12:51918

Wednesday, September 2, 2015

ssh tunnel with key for tunnel only

cat .ssh/authorized_keys

no-pty,no-X11-forwarding,permitopen="10.157.80.133:8090",command="/bin/echo do-not-send-commands" ssh-dss AAAxSEm45jSTIFxSWl+JmeiaOe/re2J6xDQ/PMiKd9VkaVUdg== lunohod@deb

ssh -i /home/lunohod/.ssh/id_dsa lunohod@10.157.0.21 -L 10.10.0.1:8090:10.157.80.133:8090 -N -g #-f