- Fork https://github.com/github/dmca
- Download latest youtube-dl source code from https://yt-dl.org/latest
- Extract
tar -xvf youtube-dl-2020.09.20.tar.gz
- Push code to your fork as the GitHub CEO
Workarounds for building R on 8GB RAM environment: | |
1. At the start of the build: | |
[ 99% 138/139] /mnt/ssd/lineage/out/soong/.bootstrap/bin/soong_build /mnt/ssd/lineage/out/soong/build.ninja | |
This used to take around 30mins, after enabling zram now it takes around 30secs (thanks to @kdrag0n for the zram idea) which is on par with what happens in 16GB RAM building environments | |
sudo apt install zram-config for installing zram-config package | |
sudo nano /etc/fstab and add a # in front of the swap disk if you have one and then reboot | |
After booting cat /proc/swaps to check if zram is enabled or not |
tar -xvf youtube-dl-2020.09.20.tar.gz
pvcreate /dev/sdb2 | |
pvcreate /dev/sda1 | |
vgcreate arch-ssd /dev/sdb2 | |
vgcreate arch-hdd /dev/sda1 | |
lvcreate -L 16G arch-ssd -n arch-swap | |
lvcreate -l 100%FREE arch-ssd -n arch-root | |
lvcreate -l 100%FREE arch-hdd -n arch-home | |
mkswap /dev/arch-ssd/arch-swap | |
swapon /dev/arch-ssd/arch-swap |
fun <T> LiveData<T>.observeOnce(lifecycleOwner: LifecycleOwner, observer: Observer<T>) { | |
observe(lifecycleOwner, object : Observer<T> { | |
override fun onChanged(t: T?) { | |
observer.onChanged(t) | |
removeObserver(this) | |
} | |
}) | |
} | |
//Using | |
liveData.observeOnce(this, Observer<Password> { |
diff --git a/fs/proc/cmdline.c b/fs/proc/cmdline.c | |
index 14a4c5887848..ebce46d998b0 100644 | |
--- a/fs/proc/cmdline.c | |
+++ b/fs/proc/cmdline.c | |
@@ -2,10 +2,13 @@ | |
#include <linux/init.h> | |
#include <linux/proc_fs.h> | |
#include <linux/seq_file.h> | |
+#include <asm/setup.h> | |
+ |
Note: This is the guide for v 2.x.
For the v3, please follow this url: https://blog.csdn.net/sam_shan/article/details/80585240 Thanks @liy-cn for contributing.
For the v6, please follow the comment below: https://gist.github.com/trandaison/40b1d83618ae8e3d2da59df8c395093a?permalink_comment_id=5079514#gistcomment-5079514
Download: StarUML.io
/** | |
* This would be the activity which registers the receiver class via it's interface | |
*/ | |
public class MainActivity implements NetworkStateReceiver.NetworkStateReceiverListener { | |
private NetworkStateReceiver networkStateReceiver; // Receiver that detects network state changes | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
/***/ |
#!/bin/bash | |
. build/envsetup.sh | |
mmm frameworks/base/packages/SystemUI/ | |
adb start-server | |
adb shell pkill -TERM -f com.android.systemui | |
adb remount | |
adb push $OUT/system/priv-app/SystemUI.apk /system/priv-app/SystemUI.apk | |
adb shell pkill -TERM -f com.android.systemui | |
adb shell chmod 0644 /system/app-priv/SystemUI.apk | |
sleep 2 |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"