Linux Shell Scripts

#!/bin/bash url=$1 && file=“${url##*/}“ && wget $url && extension=“${url##*.}“ && echo -e „\n\n“ if [ $extension = ‚js‘ ] then echo -e „Generate JS HTML output\n“ echo -ne „<script type=\“text/javascript\“ src=\“$url\“ integrity=\“sha256-“ && echo -ne openssl dgst -sha256 -binary url | openssl base64 -A && echo -e „\“ crossorigin=\“anonymous\“></script>\n\n“ elif [ $extension = ‚css‘ ] weiterlesen…

Bitcoin the earth-destroyer burn 3 million liters of oil per day

The analysts website Digiconomist estimates the annual energy consumption for bitcoins at around 32 terawatt hours (TWh). The Bitcoin ranks in the same league as smaller states. We are talking about 100-kilowatt hours (kWh) per transaction. The reason for this is the SHA-256 Algorithms. For comparison, 1 liter of oil ≈ 1m³ of gas ≈ weiterlesen…

Install Java 8 or Java 9 on Debian

add the oracle ppa echo „deb https://ppa.launchpad.net/webupd8team/java/ubuntu xenial main“ | tee /etc/apt/sources.list.d/webupd8team-java.list echo „deb-src https://ppa.launchpad.net/webupd8team/java/ubuntu xenial main“ | tee -a /etc/apt/sources.list.d/webupd8team-java.list apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv-keys EEA14886 apt-get update Java 8 echo oracle-java8-installer shared/accepted-oracle-licence-v1-1 boolean true | sudo /usr/bin/debconf-set-selections apt-get install oracle-java8-installer sudo apt-get install oracle-java8-set-default Java 9 echo oracle-java9-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections weiterlesen…