To get your public IP you can use websites like www.whatismypublicip.com/ or just google for it (http://lmgtfy.com/?q=public+ip) But you can also get your public IP via the following Linux shell command (the smart way :-D): $> curl ifconfig.me/all This gives you an output like that: ip_addr: 126.96.36.199 remote_host: ip123456.dynamic.kabel-deutschland.de user_agent: curl/7.35.0 port: 47745 lang: connection: keep_alive: encoding: […]
For a home automation project I have to setup a local DynDNS client on my Banana Pi running with Raspian. Here are the steps I’ve taken to run a DynDNS client under Raspbian (will work on other Debian based Linux distributions too): Install ddclient package: $>sudo apt-get install ddclient This command installs the package and starts the DynDNS […]
When developing Magento Backend functionalities, sometimes you need to add own layout files or templates. In these cases it is a good idea to create a new Backend theme under adminhtml and to modify the Magento configuration to lookup layout files and templates in this new theme before searching in the default one. Therefore you have to create […]
You can get the Apache version currently running on your webserver by the following shell commands. Get Apache version on CentOS / Redhat $> /usr/sbin/httpd -v Get Apache version on Ubuntu $> /usr/sbin/apache2 -v
To rename all jpg-files in a folder to its lower cased equivalent, you can run this little shell script: $> for i in folderpath/*.jpg; do mv -v $i `echo $i | tr ‘[:upper:]’ ‘[:lower:]’`; done The -v param of mv will only give you a list of renamed files.
ISO-3166-1 alpha-2: AT BE CY EE DE ES FI FR GR IE IT LU LV MC MT NL PT SI SK SM VA