Doc

Poslední změna : 2014/07/08 17:00

GreaseMonkey

o2.ie autologin
Nahodný verš na http://biblenet.cz

Eclipse CodeFormater

CodeStyleEclipse.xml
EditorTemplatesEclipse.xml
Jo Sources

Vyvola nabidku bezpecne odebrat zarizeni

@"%systemRoot%\system32\RUNDLL32.EXE" shell32.dll,Control_RunDLL hotplug.dll

Nastav aktualni adresar na adresar, ze ktereho je spusten tento bat

CD /D %~dp0

Inpath


@echo off
REM inpath.cmd - Search for a executable in the path
FOR %%A in ("%path:;=";"%") do call :Test %%A %%1
GOTO :EOF
:Test
SET P=%~f1\%2
IF EXIST "%P%" echo %P%
FOR %%B in (EXE BAT COM CMD LNK MSI PIF REG) DO IF EXIST "%P%.%%B" echo %P%.%%B
GOTO :EOF

Pause on error

@if errorlevel 1 pause

Params.cmd

@echo off
:: http://weblogs.asp.net/jgalloway/archive/2006/11/20/top-10-dos-batch-tips-yes-dos-batch.aspx
echo %%~1 = %~1
echo %%~f1 = %~f1
echo %%~d1 = %~d1
echo %%~p1 = %~p1
echo %%~n1 = %~n1
echo %%~x1 = %~x1
echo %%~s1 = %~s1
echo %%~a1 = %~a1
echo %%~t1 = %~t1
echo %%~z1 = %~z1
echo %%~$PATHATH:1 = %~$PATHATH:1
echo %%~dp1 = %~dp1
echo %%~nx1 = %~nx1
echo %%~dp$PATH:1 = %~dp$PATH:1
echo %%~ftza1 = %~ftza1

Clipboard tools

Ct.exe - zkopíruje standardní vstup do schránky (zdroj)
ctc.exe - zkopíruje standardní parametry do schránky

Spacemon

SpaceMon.7z

Unlocker (file)

http://ccollomb.free.fr/unlocker/

P

188_141_107_181::55555

Misc

Disabling Chkdsk - Windows 2000 and XP
1. Run the Registry Editor (regedt32.exe)
2. Under the HKEY_LOCAL_MACHINE subtree, go to the following subkey:
\SYSTEM\CurrentControlSet\Control\Session Manager
3. Change the BootExecute entry to:
autocheck autochk *
Exit your registry, you may need to restart or log out of Windows for the change to take effect.

control userpasswords2 //Konfiguraźnˇ dialog u§ivatelskěch pr v
diskperf -N //Vypnutˇ monitorov nˇ věkonu disku
rundll32.exe iedkcs32.dll,Clear //IE kdy§ nejdou odkazy
fsutil
mountvol
tsdiscon


sfc /purgecahe smaze cachovane dll systemu. Cca 100mb se uvolni

XSD - Any content









iptables

Povolit ssh z libovolne vnejsi adresy:
iptables -t nat -A PREROUTING -p tcp -m tcp -d 192.168.168.112 --dport 35322 -j DNAT --to-destination 192.168.111.111:35322

Spring Eclipse plugin

update site: http://dist.springframework.org/release/IDE

Otevrene porty:

netstat -an |find /i "listening"

Nazev pocitace do promenne %host%

FOR /F "usebackq" %%i IN (`hostname`) DO SET host=%%i

OpenId

http://www.google.com/profiles/Srubarovi

Zap zalozky

https://www.squarefree.com/bookmarklets/webdevel.html

Java remote debuging

-Djava.endorsed.dirs="C:\Prg\apache-tomcat-7.0.0\endorsed" -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n

Java memory

jdk\bin\jstat.exe" -gcpermcapacity %1
PsExec.exe -s bin\jstat.exe -gcutil %1


Objective C:

String format, float: %4.1f

Javascript nice toString

JSON.stringify(document)
    for(var key in ABC) print(key)

XML Document to string formater:

java.io.StringWriter strWtr = new java.io.StringWriter();
javax.xml.transform.stream.StreamResult result = new javax.xml.transform.stream.StreamResult(strWtr);
javax.xml.transform.Transformer serializer = javax.xml.transform.TransformerFactory.newInstance().newTransformer();
serializer.transform(new javax.xml.transform.dom.DOMSource(this), result);
strWtr.toString();


Open document as root:

Custom lancher: gksudo "gnome-open %u"
Better sudoedit file
Open document: kde-open file

Povolit touchpad"
gconftool-2 --set --type boolean /desktop/gnome/peripherals/touchpad/touchpad_enabled true

Deep update svn

@echo off
echo Searching repositories
CD /D %~dp0
call :UpdateIfSvn .
CD /D %~dp0
pause
GOTO :EOF

:UpdateIfSvn
echo/|set /p ="."
IF EXIST ".svn" echo Updating %1 & call svn up & GOTO :EOF
CD "%1"
for /d %%D IN (*.*) DO CALL :UpdateIfSvn "%%D"
CD ..

GOTO :EOF