sudo dd if=/dev/zero of=/dev/sdb bs=4k && sync
sudo fdisk /dev/sdb
Then press lettero to create a new empty DOS partition table.
| #!/bin/bash | |
| cd ~/Android/Sdk/platform-tools | |
| ./adb connect $(ip route show | grep "default via" | cut -d" " -f3):5555 |
| @SuppressLint("DefaultLocale") | |
| public static String humanReadableByteCount(long bytes, boolean si) { | |
| int unit = si ? 1000 : 1024; | |
| if (bytes < unit) return bytes + " B"; | |
| int exp = (int) (Math.log(bytes) / Math.log(unit)); | |
| String pre = (si ? "kMGTPE" : "KMGTPE").charAt(exp - 1) + (si ? "" : "i"); | |
| return String.format("%.1f %sB", bytes / Math.pow(unit, exp), pre); | |
| } | |
| public String getReadableSize() { |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <manifest> | |
| <project name="meme-os/android_device_realme_RMX1901" path="device/realme/RMX1901" remote="github" revision="havoc-pie" /> | |
| <project name="meme-os/android_device_realme_sdm710-common" path="device/realme/sdm710-common" remote="github" revision="havoc-pie" /> | |
| <project name="meme-os/proprietary_vendor_realme" path="vendor/realme" remote="github" revision="havoc-pie" /> | |
| <project name="N00bKernel/android_kernel_realme_sdm710" path="kernel/realme/sdm710" remote="github" revision="havoc-pie" /> | |
| </manifest> |
sudo apt-get install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils
sudo adduser `id -un` libvirt
sudo adduser `id -un` kvm
sudo chown root:libvirt /dev/kvm
rmmod kvm
modprobe -a kvm
GUI manager
| #include <stdio.h> | |
| #include <math.h> | |
| int main (){ | |
| int a, b, mod, gcd = 0; | |
| printf("Enter Number A (Larger):\n"); | |
| scanf("%d", &a); | |
| printf("Enter Number B (Smaller):\n"); | |
| scanf("%d", &b); |
| Animation shake = AnimationUtils.loadAnimation(this, R.anim.shake); | |
| mButton01.startAnimation(shake); |
| package com.geekofia.cacheaway; | |
| import androidx.appcompat.app.AppCompatActivity; | |
| import android.os.Bundle; | |
| import android.view.View; | |
| import android.widget.Button; | |
| import android.widget.Toast; | |
| public class MainActivity extends AppCompatActivity implements View.OnClickListener { |
| <RelativeLayout | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:layout_centerVertical="true"> | |
| <TextView | |
| android:id="@+id/tvText" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:layout_centerInParent="true" |
| <com.facebook.shimmer.ShimmerFrameLayout | |
| android:id="@+id/shimmer_view_container" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:layout_gravity="center" | |
| android:orientation="vertical" | |
| app:shimmer_auto_start="false" | |
| app:shimmer_duration="2000"> | |
| <androidx.core.widget.NestedScrollView |