sudo add-apt-repository ppa:openjdk-r/ppasudo apt-get updatesudo apt-get install openjdk-8-jdk| #!/bin/bash | |
| # Thanks to https://gist.github.com/wenzhixin/43cf3ce909c24948c6e7 | |
| # Execute this script in your home directory. Lines 17 and 21 will prompt you for a y/n | |
| # Install Oracle JDK 8 | |
| add-apt-repository ppa:webupd8team/java | |
| apt-get update | |
| apt-get install -y oracle-java8-installer | |
| apt-get install -y unzip make # NDK stuff |
| sudo add-apt-repository ppa:openjdk-r/ppa | |
| sudo apt-get update | |
| sudo apt-get install openjdk-7-jre | |
| # install openjdk | |
| sudo apt-get install openjdk-7-jdk | |
| # download android sdk | |
| wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz |
| import javax.crypto.Cipher; | |
| import javax.crypto.spec.IvParameterSpec; | |
| import javax.crypto.spec.SecretKeySpec; | |
| import java.util.Base64; | |
| public class Encryptor { | |
| public static String encrypt(String key, String initVector, String value) { | |
| try { | |
| Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5PADDING"); | |
| IvParameterSpec iv = new IvParameterSpec(initVector.getBytes("UTF-8")); |
| 'http://www.howtogeek.com/206329/how-to-find-your-lost-windows-or-office-product-keys/ | |
| 'http://discuss.howtogeek.com/t/see-system-product-key-fast/12931 | |
| Set WshShell = CreateObject("WScript.Shell") | |
| MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId")) | |
| Function ConvertToKey(Key) | |
| Const KeyOffset = 52 | |
| i = 28 | |
| Chars = "BCDFGHJKMPQRTVWXY2346789" |
| # Debian 10 | |
| apt-get -y update | |
| apt-get -y upgrade --without-new-pkgs | |
| apt-get -y full-upgrade | |
| cat > /etc/apt/sources.list <<"EOF" | |
| deb http://deb.debian.org/debian/ bullseye main | |
| deb-src http://deb.debian.org/debian/ bullseye main | |
| deb http://security.debian.org/bullseye-security bullseye-security/updates main | |
| deb-src http://security.debian.org/bullseye-security bullseye-security/updates main |