- Generating signing keys (Part 1)
- Generating signing keys (Part 2)
- Making signed build (recovery)
- Making signed build (fastboot)
- Making incremental update
All you need is an android buildsystem (I would recommend you to use lineageos)
| import argparse | |
| import os | |
| import pprint | |
| import shutil | |
| from typing import Dict, List, Optional | |
| import bencodepy | |
| BENCODE_TYPE = bytes | List['BENCODE_TYPE'] |
| #!/usr/bin/env python3 | |
| """ | |
| This script will add all the torrents in the BT_backup folder to transmission | |
| It will also add the labels and download directory from the corresponding quickresume file | |
| Once a torrent is added, it will be renamed to .added so it won't be added again (if the script is run again) | |
| Make sure to edit the Client() settings to match your transmission settings and the path to the BT_backup folder | |
| Run: |
| #!/bin/sh | |
| # Ensure that WLAN interface MTU is set to the maximum | |
| # permitted value to prevent issues when attached to a | |
| # bridge with jumbo MTU. | |
| # | |
| # Do not attempt to use standard UCI configuration | |
| # in /etc/config/network and set the MTU with a config | |
| # of type interface. It does not work consistently | |
| # and in the best case works for the first WLAN |
| import ssl | |
| import socket | |
| # This script simply replays one side of an intercepted conversation between two Xiaomi | |
| # RB01 (International) AX3200 routers negotiating meshing. | |
| # In effect the script poses as a mesh slave, which causes the mesh master to enable netmode4. | |
| # Enabling netmode is needed as one step in unlocking the router and flashing OpenWrt. | |
| # The router should already have been taken through basic set-up before running this script. | |
| # Netmode4 can be confirmed with curl by requesting the following URL, where ${token} is the "stok" | |
| # variable from your admin session: |
| #!/bin/bash | |
| TARGET_DIR=/opt/repos/third-parties | |
| HG_GIT_VERSION=${1:-default} | |
| HG_RELEASE_VERSION=${2:-5.5.2} | |
| HG_REPO_VERSION=${3:-stable} | |
| TORTOISEHG_VERSION=${4:-stable} | |
| update() { | |
| # Update packages |
Create file /etc/systemd/system/docker-compose@.service. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin, you should use paths specific for your environment.
[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service| private static OkHttpClient getUnsafeOkHttpClient() { | |
| try { | |
| // Create a trust manager that does not validate certificate chains | |
| final TrustManager[] trustAllCerts = new TrustManager[]{ | |
| new X509TrustManager() { | |
| @Override | |
| public void checkClientTrusted(java.security.cert.X509Certificate[] chain, | |
| String authType) throws CertificateException { | |
| } |
| #!/bin/bash | |
| # Prerequisites: http://wiki.openwrt.org/doc/howto/buildroot.exigence | |
| # Additionally JDK is needed | |
| generate_buildenv() { | |
| # Prepare build enviroment | |
| mkdir lede_build | |
| cd lede_build | |
| git clone https://github.com/lede-project/source.git |
| #!/usr/bin/env bash | |
| # Script to (selectively) save/load multiple Docker images to/from a directory. | |
| # Run ./save-load-docker-images.sh for help. | |
| set -e | |
| directory=$PWD | |
| filter="" | |
| compress=0 |