Categories
Blog IT @ Home IT Knowledge Software Packaging

Find your IP address

Here some code snippets to find your IP address

IP v4 address in command line or batch files

ipconfig | find "IPv4" | find /i /v "Suffix"

If you prefer it in a batch script for users

@echo off
 echo\
 ipconfig | find "IPv4" | find /i /v "Suffix"
 echo Press any key to close this window.
 pause > nul

Powershell

Get-NetIPAddress -AddressFamily IPv4 -InterfaceAlias "Wi-Fi","Ethernet 2"

Unix

hostname -I
Categories
Blog Other IT Stuff Software Packaging

Kill the shortcuts

Fatal error: Uncaught Error: Call to a member function id() on array in /home/httpd/vhosts/data-samurai.ch/rel01.data-samurai.ch/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php:36 Stack trace: #0 /home/httpd/vhosts/data-samurai.ch/rel01.data-samurai.ch/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php(538): CrayonFormatter::format_code('', Array, Object(CrayonHighlighter)) #1 [internal function]: CrayonFormatter::delim_to_internal(Array) #2 /home/httpd/vhosts/data-samurai.ch/rel01.data-samurai.ch/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php(516): preg_replace_callback('#()#msi', 'CrayonFormatter...', '$programs = @(...') #3 /home/httpd/vhosts/data-samurai.ch/rel01.data-samurai.ch/wp-content/plugins/crayon-syntax-highlighter/crayon_highlighter.class.php(166): CrayonFormatter::format_mixed_code('$programs = @(...', Object(CrayonLang), Object(CrayonHighlighter)) #4 /home/httpd/vhosts/data-samurai.ch/rel01.data-samurai.ch/wp-content/plugins/crayon-synt in /home/httpd/vhosts/data-samurai.ch/rel01.data-samurai.ch/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 36