2017-12-31

HOWTO: get a high-resolution version of an image on Blogger

Here is a quite big garbage JPEG picture made of pseudo-random noise.

A noisy picture thumbnail
Thumbnail URL:
https://4.bp.blogspot.com/-sEeS5fhFsls/WkhY4QbN6gI/AAAAAAAAB4Y/h3g9pKlr0UkRE3d4tcHXnMTBdGqOyXd2ACLcBGAs/s320/noise01.jpg
"Big image" direct link URL:
https://4.bp.blogspot.com/-sEeS5fhFsls/WkhY4QbN6gI/AAAAAAAAB4Y/h3g9pKlr0UkRE3d4tcHXnMTBdGqOyXd2ACLcBGAs/s1600/noise01.jpg
And now we can guess a link to even bigger-sized version:
https://4.bp.blogspot.com/-sEeS5fhFsls/WkhY4QbN6gI/AAAAAAAAB4Y/h3g9pKlr0UkRE3d4tcHXnMTBdGqOyXd2ACLcBGAs/s2048/noise01.jpg

2017-12-30

ZyXEL P660RT2 EE command line configuration (Ethernet)

ZyXEL P660RT2 EE is an old ADSL[2+] router that has been quite common in post-USSR/CIS countries.

This router permits to do some things (i. e. configuration and diagnostics) via command line (by Telnet; the default password is 1234).
E. g., you can set the Ethernet port mode manually.
$ telnet 192.168.1.1
Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.

Password: ****
Copyright (c) 1994 - 2010 ZyXEL Communications Corp.
P660RT2> ether driver config
Usage: driver config [0|1=auto|normal] [0|1=10|100] [0|1=HD|FD] <ch-name>
P660RT2> 
E. g., to set 10 Mbps full-duplex mode:
P660RT2> ether driver config 1 0 1 enet0
Then, maybe you want to reboot the router:
P660RT2> sys reboot
Connection closed by foreign host.
Or you can just exit the CLI instead:
P660RT2> exit
Connection closed by foreign host.
Notes:
  1. the <Backspace> key doesn't work as it should for the router's CLI, but you can use <←> (left arrow) key instead;
  2. after you enter the Ethernet configuration command, the router may become unresponsive for a couple (or dozen) of seconds;
  3. Ethernet configuration is saved into the non-volatile memory, and persists after reboot;
  4. incorrect configuration (or one incompatible with other network equipment) may result in the router becoming unresponsive, seemingly hung-up and unaccessible via its sole Ethernet port;
  5. you can reset it to the factory settings using the "RESET" button hole at its back;
  6. hence, please back up your current router configuration (e. g. via the router's web interface) before touching the settings.
References:
  1. ZyXEL Prestige 650M-6x ADSL Modem User's Guide
  2. ZyXEL P660RT2 EE manuals

ZyXEL P660RT2 EE manuals

ZyXEL P660RT2 EE is an old ADSL[2+] router that has been quite common in post-USSR/CIS countries.

Available manuals
DescriptionDocument URLInfo URL
Quick start guidehttp://download.from.zyxel.ru/download/84887071-3a11-4da9-97e0-cf5a3aa65770/P660RT2_QSG.pdfhttp://download.from.zyxel.ru/download/84887071-3a11-4da9-97e0-cf5a3aa65770/file_id.diz
User's guidehttp://download.from.zyxel.ru/download/d93a81bc-99b6-47c5-b8c7-09aaa696cf97/p660rt2_ee_ug.pdfhttp://download.from.zyxel.ru/download/d93a81bc-99b6-47c5-b8c7-09aaa696cf97/file_id.diz


Notes:
  1. the manuals are in Russian language;
  2. file_id.diz files contain the SHA256 hashes of the PDFs (and also some old and new download URLs).

Reference:

2017-12-29

ZyXEL P660RT2 EE firmware versions

ZyXEL P660RT2 EE is an old ADSL[2+] router that has been quite common in post-USSR/CIS countries.

Known FW versions
VersionArchive URLInfo URL
3.40(AXN.0)D0http://download.from.zyxel.ru/download/525e69ec-341d-46be-b594-484ec4378dbb/340AXN0D0.ziphttp://download.from.zyxel.ru/download/525e69ec-341d-46be-b594-484ec4378dbb/file_id.diz
3.40(AXN.1)D0http://download.from.zyxel.ru/download/2d13f8d6-241e-4cf9-b7f9-6a9974836d0a/340AXN1D0.ziphttp://download.from.zyxel.ru/download/2d13f8d6-241e-4cf9-b7f9-6a9974836d0a/file_id.diz
3.40(AXN.2)D0http://download.from.zyxel.ru/download/0c061795-afb5-4859-bade-80ccfbfef831/340AXN2D0.ziphttp://download.from.zyxel.ru/download/0c061795-afb5-4859-bade-80ccfbfef831/file_id.diz
3.40(AXN.3)D0http://download.from.zyxel.ru/download/a17310da-b9c7-402f-ab46-64a43ba09fc6/340AXN3D0.ziphttp://download.from.zyxel.ru/download/a17310da-b9c7-402f-ab46-64a43ba09fc6/file_id.diz
3.40(AXN.3)D0_20100617http://download.from.zyxel.ru/download/8b436301-004a-42c0-b698-563080eab1e2/340AXN3D0_20100617.ziphttp://download.from.zyxel.ru/download/8b436301-004a-42c0-b698-563080eab1e2/file_id.diz


Notes:
  1. the latest firmware version is 3.40(AXN.3)D0_20100617;
  2. file_id.diz files contain the SHA256 hashes of the ZIP archives (and also some old and new download URLs);
  3. usually, it's recommended to reset the router configuration after the firmware upgrade (you can find the "RESET" button hole at the back of the router).

Reference:

2017-12-28

HOWTO: grab online video stream with FFmpeg

Usually, it's quite easy to save some free online (live) video streams with FFmpeg.

Example: grabbing some HLS stream with MPEG-4 (H.264) video and AAC (or MP3) audio.
$ ffmpeg -i "http://some.streaming.server/favorite_stream.m3u8" -codec copy -f mpegts stream01.ts
(Generally, the output format can be guessed by extension automatically, so we can shorten the command line).
$ ffmpeg -i "http://some.streaming.server/favorite_stream.m3u8" -codec copy stream02.ts
The TS file is usually playable during download.
Usually, you can stop the grabbing operation at any time by pressing the <q> key.
After the stream dumping is finished, you can convert (remux) your video to a more familiar MP4 container format.
$ ffmpeg -i stream01.ts -codec copy stream01.mp4
(Usually, you'd prefer a playback-optimized output file).
$ ffmpeg -i stream02.ts -codec copy -movflags faststart stream02.mp4

Reference: