Symfony2 framework,

Laravel framework,
Phalcon framework,
Symfony2 framework,
Code Igniter framework

Install programs:

Wireshark / tShark

Get network log via terminal by tShark:

 tshark -i eth0 -R "ip.dst== or ip.src==" -V


tshark -i eth0 -V -F libpcap -w /tmp/tsharklog.pcap


tshark.exe -D # print all ethernet devices
tshark.exe -i 2 -F pcap -w C:\_Data_\log.txt

Powershell - network monitor via ping

$servers = "",""
$collection = $()
$OutputFile = "D:\test\output.csv"
do {
	foreach ($server in $servers)
		$status = @{ "ServerName" = $server; "TimeStamp" = (Get-Date -f s) }
		if (Test-Connection $server -Count 1 -ea 0 -Quiet)
			$status["Results"] = "Up"

			$status["Results"] = "Down" 
			$now = Get-Date -uformat "%Y/%m/%d %H:%M:%S"
			$out = $status["ServerName"] + " = " + $status["Results"] + " - " + $now
			$out | Out-File $OutputFile -append
		sleep 1
		# $now = Get-Date -uformat "%Y/%m/%d %H:%M:%S"

Howto start develop Android application - guide


1) Install Software:
Download and install Java JDK (Java SE Development Kit): (32bit recommended)
Download and unzip ADT (Android Developer Tools) to your custom directory:

Linux bash tricks and tips

Read all txt files, convert from UCS-2 to UTF-8 and print lines with text:

for f in *.txt; do cat $f | iconv -f UCS-2 -t UTF-8 | grep "Text"; done

Convert picture to 1x1px (average color/color summary) | except blank/empty lines and comments:

convert storm/000020196.png -resize 1x1  txt:- | grep -v '^$\|^\s*\#'

Send voice track to google for convert to text (i think that it doesnt work):

Camera SJ4000

SQL/PHP triky



$placeholders = array_fill(0, count($thingArray), '?');
$sql = "SELECT thing FROM things WHERE thing_uid IN (" . implode(',', $placeholders) . ")";

Klávesové zkratky Microsoft Windows 7/8

Win + c - Zobrazení ovládacích tlačítek
Win + d - Zobrazení plochy
Win + f - Vyhledání souborů
Win + i - Otevření nastavení počítače
Win + k - Otevření zařízení
Win + l - Uzamknutí počítače
Win + m - Minimalizace všech otevřených oken
Win + o - Uzamčení orientace obrazovky
Win + p - Přenos obrazu z obrazovky na připojený projektor
Win + q - Vyhledání aplikací
Win + r - Otevření aplikace nebo souboru
Win + w - Vyhledání nastavení
Win + x - Zobrazení nabídky start

Tricks avconv/ffmpeg, SOX, ImageMagick

Convert video to images:

avconv -i -sameq output/%09d.png
avconv -i -same_quant output/%09d.png

Create video / timelapse: 5frames/s, best quality -qscale 1

ffmpeg -r 5 -qscale 1 -i input/%09d.jpg output.avi

Rename/sort images for avconv/ffmpeg input criteria:

Silent installations, Adobe, Pinnacle, FontCreator

Adobe (Adobe Design Standard CS6, Adobe Premiere Pro CS6):
Download program: Adobe Application Manager Enterprise Edition
Make installation by AAMEE

msiexec.exe /i AdobeDesignStandardCS6-32bit.msi /qn

Adobe (Photoshop Elements 12):
Download and extract program: Adobe Provisioning Toolkit Enterprise Edition


Subscribe to RSS