Skip to content

Instantly share code, notes, and snippets.

@obar1
Last active March 8, 2017 18:56
Show Gist options
  • Save obar1/a5f5ca7bd532c33804415b706cc6fc11 to your computer and use it in GitHub Desktop.
Save obar1/a5f5ca7bd532c33804415b706cc6fc11 to your computer and use it in GitHub Desktop.
wget -r --no-parent -A '*CHANGES*' http://ws.com
grep -E -o "\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}\b" hbase-0.98.6-cdh5.3.6.CHANGES.txt | sort | uniq -i -z | uniq
:: mario amatucci
:: timezone changer
@ECHO OFF
CLS
ECHO 0.EXIT
ECHO 1.(UTC) Dublin, Edinburgh, Lisbon, London
ECHO ..GMT Standard Time
ECHO 2.(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna
ECHO ..W. Europe Standard Time
ECHO 3.(UTC+02:00) E. Europe
ECHO ..E. Europe Standard Time
ECHO.
CHOICE /C 0123 /D:0 /T:7 /M "Enter your choice:"
:: Note - list ERRORLEVELS in decreasing order
IF ERRORLEVEL 4 (
SET TZ="E. Europe Standard Time"
GOTO TZ)
IF ERRORLEVEL 3 (
SET TZ="W. Europe Standard Time"
GOTO TZ)
IF ERRORLEVEL 2 (
SET TZ="GMT Standard Time"
GOTO TZ)
IF ERRORLEVEL 1 GOTO EXIT
:TZ
ECHO.FROM
call tzutil /g
ECHO. & time /t
call tzutil /s %TZ%
ECHO.TO %TZ%
:EXIT
time /t
@obar1
Copy link
Author

obar1 commented Jun 4, 2016

useful when you travel a lot between different countries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment