Skip to content

Instantly share code, notes, and snippets.

View digitiqman's full-sized avatar
🎯
Focusing

Bejide Oluwole Daniel digitiqman

🎯
Focusing
View GitHub Profile
@digitiqman
digitiqman / ubuntu-cli-install-android-sdk.sh
Created August 4, 2023 12:59 — forked from jonathan-irvin/ubuntu-cli-install-android-sdk.sh
Install Android SDK on headless Ubuntu linux machine via command line, so that you can compile open source Android apps.
#!/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
@digitiqman
digitiqman / install-android-sdk-in-ubuntu.md
Created August 4, 2023 22:42 — forked from EmadAdly/install-android-sdk-in-ubuntu.md
install JDK and Android SDK on Linux Ubuntu

install openjdk

sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk
@digitiqman
digitiqman / Crypt.java
Created August 23, 2023 00:50 — forked from kobeumut/Crypt.java
AES128 CBC mode in Java, Kotlin and Ruby
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"));
@digitiqman
digitiqman / seeOfficeKey.vbs
Created October 18, 2023 19:25 — forked from jacobsalmela/seeOfficeKey.vbs
Reveal Office product key
'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"