We will install OpenJDK for anything Java 8 and later. Anything prior is probably Oracle JDK.
Prerequisite: Install Homebrew.
Remember to update your formulas.
$ brew updateWe will install OpenJDK for anything Java 8 and later. Anything prior is probably Oracle JDK.
Prerequisite: Install Homebrew.
Remember to update your formulas.
$ brew update$ apk add --no-cache curl
$ echo "cgroup /sys/fs/cgroup cgroup defaults 0 0" >> /etc/fstab
$ cat > /etc/cgconfig.conf <<EOF
mount {
cpuacct = /cgroup/cpuacct;
memory = /cgroup/memory;
devices = /cgroup/devices;
freezer = /cgroup/freezer;
Note: This gist may be outdated, thanks to all contributors in comments.
adb is the Android CLI tool with which you can interact with your android device, from your PC
You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.
Don't hesitate to read comments, there is useful tips, thanks guys for this !
| #include <Adafruit_GFX.h> | |
| #include <Adafruit_NeoMatrix.h> | |
| #include <Adafruit_NeoPixel.h> | |
| #define PIN 6 | |
| Adafruit_NeoMatrix matrix = Adafruit_NeoMatrix(32, 8, PIN, | |
| NEO_MATRIX_TOP + NEO_MATRIX_LEFT + | |
| NEO_MATRIX_COLUMNS + NEO_MATRIX_ZIGZAG, | |
| NEO_GRB + NEO_KHZ800); |
| import android.bluetooth.BluetoothDevice; | |
| import android.content.BroadcastReceiver; | |
| import android.content.Context; | |
| import android.content.Intent; | |
| import android.content.IntentFilter; | |
| import com.polidea.rxandroidble2.RxBleDevice; | |
| import java.lang.reflect.Method; | |
| import java.util.concurrent.TimeUnit; |
| package com.your.package | |
| import android.app.Dialog | |
| import android.os.Bundle | |
| import com.your.package.R | |
| import com.google.android.material.bottomsheet.BottomSheetDialog | |
| import com.google.android.material.bottomsheet.BottomSheetDialogFragment | |
| /** | |
| * BottomSheetDialog fragment that uses a custom |
You can use this script to bypass the bans on Telegram API by different hosts. Simply send the request to this script instead of the Telegram Bot API after deploying it as a web app and allowing anonymous access.
It accepts bot GET and POST requests with the following params
| name | type | Description |
|---|
| # Use this script to test that your Telegram bot works. | |
| # | |
| # Install the dependency | |
| # | |
| # $ gem install telegram_bot | |
| # | |
| # Run the bot | |
| # | |
| # $ ruby bot.rb | |
| # |
| 1. Download latest apktool version. | |
| 2. Download the batch file and aapt.exe. | |
| 3. Create a folder anywhere in the PC and put all the apktool.jar, aapt.exe and the batch script in that folder. | |
| 4. Open command prompt. | |
| 5. Navigate to the folder where you placed apktool.jar, batch script and the aapt.exe. | |
| 6. Now, you need to install the file using the " IF " command. | |
| 7. Type the following command. | |
| apktool if name-of-the-app.apk |