How to Build Linux Kernel with Android
This guide shows how to build Linux on a Android Device and was made for people that doesn't have s Computer.
- 4GB of free space (2GB if delete the temp files)
- Android 5.0
You need to install Termux
This guide shows how to build Linux on a Android Device and was made for people that doesn't have s Computer.
You need to install Termux
| " Put this in your .vimrc and whenever you `git commit` you'll see the diff of your commit next to your commit message. | |
| " For the most accurate diffs, use `git config --global commit.verbose true` | |
| " BufRead seems more appropriate here but for some reason the final `wincmd p` doesn't work if we do that. | |
| autocmd VimEnter COMMIT_EDITMSG call OpenCommitMessageDiff() | |
| function OpenCommitMessageDiff() | |
| " Save the contents of the z register | |
| let old_z = getreg("z") | |
| let old_z_type = getregtype("z") |
Connect your phone to your computer via ADB. If you don't know how to do this, please search before following these steps
put stock boot.img into /sdcard/boot.img. MAKE SURE the name of the file is "boot.img", otherwise you will need to alter the following commands to use the name of the file. MAKE SURE your stock boot.img IS A VALID BOOT FILE, if it is not, Magisk will still restore the image, but the OTA will not work and your phone will not work upon reboot.
| type Event: | |
| wait() | |
| set() | |
| type Link: | |
| get(ptr: Ptr): | |
| if LOAD(ptr, Acquire) |value|: | |
| return value | |
| e = Event{} |
| MIT License | |
| Copyright (c) 2020 Rithvik Vibhu | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
| <?xml version="1.0" encoding="utf-8"?> | |
| <!-- | |
| Copyright 2018 Google Inc. | |
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | |
| in compliance with the License. You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software distributed under the License | |
| is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | |
| or implied. See the License for the specific language governing permissions and limitations under | |
| the License. |
| use super::hyperlink::Hyperlink; | |
| use eframe::{egui, epi}; | |
| use egui::{pos2, vec2, Color32, Pos2, Rect, Stroke, Widget}; | |
| use rand::seq::SliceRandom; | |
| #[derive(Copy, Clone, Debug, PartialEq)] | |
| enum Player { | |
| User, | |
| Computer, | |
| } |
| use std::net::{TcpListener, SocketAddr, TcpStream, Shutdown, SocketAddrV4, Ipv4Addr}; | |
| use std::str::FromStr; | |
| use std::thread::{spawn, JoinHandle}; | |
| use std::io::{BufReader, BufWriter, Read, Write}; | |
| fn pipe(incoming: &mut TcpStream, outgoing: &mut TcpStream) -> Result<(), String> { | |
| let mut buffer = [0; 1024]; | |
| loop { | |
| match incoming.read(&mut buffer) { | |
| Ok(bytes_read) => { |
| fn main() { | |
| println!("Hello World!"); | |
| } |
| from bs4 import BeautifulSoup | |
| from dataclasses import dataclass | |
| import os | |
| from typing import List | |
| import re | |
| import requests | |
| import sys | |
| HEADERS = { | |
| "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36" |