cfm880@cfm880:~$ adb devices
List of devices attached
93CY18K0U no permissions (missing udev rules? user is in the plugdev group); see [http://developer.android.com/tools/device.html]
cfm880@cfm880:~$ lsusb
Bus 002 Device 002: ID 18d1:4ee7 Google Inc. Nexus/Pixel Device (charging + debug)
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 0e0f:0008 VMware, Inc. Virtual Bluetooth Adapter
Bus 001 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
git_hash=kkkk | |
if [ -z $git_hash ]; | |
then | |
echo "$i 是空字符串" | |
else | |
git reset --hard ${git_hash} | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function gbk2utf(){ | |
file="$1" | |
echo "处理文件 '$file' ..." | |
iconv -f gb2312 -t UTF-8 -c "$file" > tmp | |
mv -f tmp "$file" | |
} | |
function getdir(){ | |
for element in `ls $1` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
project frameworks/base/ | |
diff --git a/core/java/android/app/Activity.java b/core/java/android/app/Activity.java | |
index db5dcc5c264b..404db6dfaf64 100644 | |
--- a/core/java/android/app/Activity.java | |
+++ b/core/java/android/app/Activity.java | |
@@ -741,6 +741,7 @@ public class Activity extends ContextThemeWrapper | |
OnCreateContextMenuListener, ComponentCallbacks2, | |
Window.OnWindowDismissedCallback, | |
AutofillManager.AutofillClient, ContentCaptureManager.ContentCaptureClient { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
project art/ | |
diff --git a/runtime/mem_map.cc b/runtime/mem_map.cc | |
index b9d51c1125..f034a3db4f 100644 | |
--- a/runtime/mem_map.cc | |
+++ b/runtime/mem_map.cc | |
@@ -504,6 +504,11 @@ MemMap* MemMap::MapFileAtAddress(uint8_t* expected_ptr, | |
DCHECK(ContainedWithinExistingMap(expected_ptr, byte_count, error_msg)) | |
<< ((error_msg != nullptr) ? *error_msg : std::string()); | |
flags |= MAP_FIXED; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:latest | |
RUN apt update && apt install -y locales && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 | |
ENV LANG=en_US.utf8 | |
RUN apt upgrade -y | |
RUN apt install -y \ | |
libfontconfig1-dev \ | |
libfreetype-dev \ | |
libx11-dev \ | |
libx11-xcb-dev \ | |
libxcb-cursor-dev \ |
- 提示缺少 libncurses.so.5,找到对于的库,建立软链接
find / -name libncurses.so
/usr/lib/x86_64-linux-gnu/libncurses.so
cd /usr/lib/x86_64-linux-gnu/
ls -al libncurses*
sudo ln -s libncurses.so.6.4 libncurses.so.5
sudo ln -s libncurses.so.6.4 libtinfo.so.5
sudo apt remove --purge *nvidia*
sudo apt autoremove
sudo apt install pkg-config libglvnd-dev dkms build-essential libegl-dev libegl1 libgl-dev libgl1 libgles-dev libgles1 libglvnd-core-dev libglx-dev libopengl-dev gcc make
sudo apt install dkms
sudo apt remove libnvidia-egl-wayland1
sudo vim /etc/modprobe.d/nvidia-install-disable-nouveau.conf
nvidia-install-disable-nouveau.conf
OlderNewer