All posts by PF
DenyHosts and Fail2Ban


DenyHosts protects your SSH for brute-force login attempts.
Fail2Ban protects your for several services.
Installation guide for Fail2Ban
https://www.digitalocean.com/community/articles/how-to-protect-ssh-with-fail2ban-on-ubuntu-12-04
Installation guide for DenyHost
https://www.digitalocean.com/community/articles/how-to-install-denyhosts-on-ubuntu-12-04
A bunch of ffmpeg tutorials
https://wiki.archlinux.org/index.php/FFmpeg
- 1 Package installation
- 2 Encoding examples
- 2.1 Screen cast to .webm
- 2.2 Recording webcam
- 2.3 VOB to any container
- 2.4 x264 lossless
- 2.5 Single-pass MPEG-2 (near lossless)
- 2.6 x264: constant rate factor
- 2.7 YouTube
- 2.8 Two-pass x264 (very high-quality)
- 2.9 Two-pass MPEG-4 (very high-quality)
- 2.10 Adding subtitles
- 2.11 Volume gain
- 2.12 Extracting audio
- 2.13 Stripping audio
- 3 Preset files
- 4 Package removal
YouTube Downloader Site
http://www.youtubedownloadersite.com/help.html
Iphone Video (MPEG-4 MP4)
ffmpeg -i %1 -vcodec mpeg4 -s 480×320 -r 29 -b 900k -ar 44100 -ab 96k -ac 2 %1.mp4
ffmpeg -i %1 -vcodec mpeg4 -qscale 15 -s 480×320 -r 29 -b 900k -ar 44100 -ab 96k -ac 2 %1.mp4
ffmpeg -i %1 -vcodec mpeg4 -qscale 7 -s 480×320 -r 29 -b 900k -ar 44100 -ab 128k -ac 2 %1.mp4
ffmpeg -i %1 -vcodec mpeg4 -qscale 1 -s 640×480 -r 29 -b 1500k -ar 44100 -ab 128k -ac 2 %1.mp4
ffmpeg image thumbnail every minute, seconds… the math!
This will create one thumbnail image every minute, named img001.jpg, img002.jpg, img003.jpg, … (%03d means that ordinal number of each thumbnail image should be formatted using 3 digits)
ffmpeg -i myvideo.avi -f image2 -vf fps=fps=1/60 img%03d.jpgThis will create one thumbnail image every 10 minutes, named thumb0001.bmp, thumb0002.bmp, thumb0003.bmp, …
ffmpeg -i test.flv -f image2 -vf fps=fps=1/600 thumb%04d.bmpThis will create one thumbnail image every I-frame, named thumb0001.bmp, thumb0002.bmp, thumb0003.bmp, …
https://trac.ffmpeg.org/wiki/Create%20a%20thumbnail%20image%20every%20X%20seconds%20of%20the%20video
So, we can use some logical/math to make some conclusions…
1/60 stands for 1 thumb at each 60 seconds, the same as say each minute…
1/600 stands for 1 thumb at each 60 seconds * 10, the same as say each 10 minutes…
if we want a thumb at each 2 minutes we should multiply the 60 per 2, that will gives us 1/120… this way we can also assume that if we want a thumb at each 4 seconds, we can use 1/4.
Useful link
https://trac.ffmpeg.org/wiki/Create%20a%20thumbnail%20image%20every%20X%20seconds%20of%20the%20video
04 Yosi Horikawa – Splash [First Word Records]
pre-configurated of output dimensions on ffmpeg
Some pre-configurations of output dimensions on ffmpeg.
ffmpeg -i source.ext -r 1 -s 4cif -f image2 img%5d.jpg
This will produce you pictures with 704 width * 576 height
| sqcif | 128×96 | qcif | 176×144 | cif | 352×288 |
| 4cif | 704×576 | qqvga | 160×120 | qvga | 320×240 |
| vga | 640×480 | svga | 800×600 | xga | 1024×768 |
| uxga | 1600×1200 | qxga | 2048×1536 | sxga | 1280×1024 |
| qsxga | 2560×2048 | hsxga | 5120×4096 | wvga | 852×480 |
| wxga | 1366×768 | wsxga | 1600×1024 | wuxga | 1920×1200 |
| woxga | 2560×1600 | wqsxga | 3200×2048 | wquxga | 3840×2400 |
| whsxga | 6400×4096 | whuxga | 7680×4800 | cga | 320×200 |
| hd480 | 852×480 | hd720 | 1280×720 | hd1080 | 1920×1080 |
chrome new tab cursor address bar
With this recent upgrade of Chrome, when we open a new tab (cmd + t) our cursor won’t go right away to the url box… SH*T!!
This is how we can solve it.
On url box we must enter chrome://flags and then look for Enable Instant Extended API and disable it!
Cassandra vs MongoDB vs CouchDB vs Redis vs Riak vs HBase vs Couchbase vs Neo4j vs Hypertable vs ElasticSearch vs Accumulo vs VoltDB vs Scalaris comparison
Heres a good – for a n00b guys like me – article about NoSQL databases!
Facebook!

INFOGRAPHIC: Here’s Why Facebook Needs To Worry About The Rise Of WhatsApp And Snapchat
Read more: http://www.businessinsider.com/facebook-battles-snapchat-and-whats-app-2013-9#ixzz2gUDi0E4E
NewRelic T-Shirt
I’v signed up the other day on NewRelic!!
Looks like that I’m gonna get a free t-shirt!
Their service is awesome, but I can’t afford, for now, premium packages…
