Skip to main content

Posts

Showing posts from August, 2018

CMD 3

TASKKILL /F /IM httpd.exe /T C:\WINDOWS\system32>netstat -a -b |findstr /R /C:"80" https://stackoverflow.com/questions/76074/how-can-i-delete-a-service-in-windows SC QUERY state= all >"C:\Service List.txt" SC STOP shortservicename SC DELETE shortservicename SC QUERY state= all | FIND "_NAME"

Some useful bash datetime, Hex calc functions

[Link date functions] https://stackoverflow.com/questions/378829/convert-decimal-to-hexadecimal-in-unix-shell-script printf "%x\n" 34   # Can run on Git-bash echo "obase=16; 34" | bc If you want to filter a whole file of integers, one per line: ( echo "obase=16" ; cat file_of_integers ) | bc Git-Bash do not have bc so it can not work.