Enter the machine using adb shell
Run cat /proc/partitions
# Path Purpose Size
0 /dev/block/mmcblk0 7761920
1 /dev/block/mmcblk0p1 data 6085631
Basically we set up the timezone and locale, and only allow for SSH root login without password,
by using SSH authentication key. We also add a basic Vim conviguration inside .vimrc by adding
line numbers by default.
Then we update the repository and the system, and also add basic tools like nano, curl, tmux,
even vim itself doesn't included by the system. zsh and git is prequisites for oh-my-zsh,
| # before run this script install required packages via command below | |
| # pip3 install -U pytgcalls==3.0.0.dev24 | |
| import asyncio | |
| import pytgcalls | |
| import telethon | |
| # EDIT THIS | |
| # more info about API keys here https://docs.telethon.dev/en/latest/basic/signing-in.html |
This is a local copy of the commands from:
This guide serves as a reference of collected information necessary for strict management of PGP keys. This includes keeping a master key that always remains
| proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=STATIC:10m inactive=7d use_temp_path=off; | |
| upstream nextjs_upstream { | |
| server nextjs:3000; | |
| keepalive 2; | |
| } | |
| server { | |
| listen 80 default_server; |
| #ifndef _GNU_SOURCE | |
| #define _GNU_SOURCE | |
| #endif | |
| #ifndef likely | |
| #define likely(EXPR) __builtin_expect(!!(EXPR), 1) | |
| #endif | |
| #ifndef unlikely |
| /// <reference types="@sveltejs/kit" /> | |
| /// <reference no-default-lib="true"/> | |
| /// <reference lib="esnext" /> | |
| /// <reference lib="webworker" /> | |
| // https://kit.svelte.dev/docs/service-workers#type-safety | |
| const sw = self as unknown as ServiceWorkerGlobalScope; | |
| import { build, files, version } from '$service-worker'; |
| // 1. Open inspector with CTRL+SHIFT+I | |
| // 2. Select the console tab in the top | |
| // 3. Paste the script | |
| // 4. Press enter | |
| // 5. Hover over your own video, and there should be a video switcher that looks horrible but works. | |
| const localVideo = document.getElementById("local-video"); | |
| if (localVideo) { | |
| // Create a dropdown element for the camera switcher |
| const express = require("express"); | |
| const authController = require("../controllers/authController"); | |
| const userController = require("../controllers/userController"); | |
| const transactionController = require("../controllers/transactionController"); | |
| const router = express.Router(); | |
| router.post("/getVerifyCode", authController.getVerifyCode); | |
| router.post("/signup", authController.check2FACode, authController.signUp); | |
| router.post("/login", authController.logIn); |