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
https://apkcombo.com/share%E5%BE%AE%E5%8D%9A%E5%AE%A2%E6%88%B7%E7%AB%AF/com.hengye.share/ |
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
networksetup -listallhardwareports | |
sudo ifconfig en7 down | |
# release the current DHCP lease | |
sudo ifconfig set en7 BOOTP | |
# initiate a new DHCP lease process. | |
# the DHCP client sends a broadcast request | |
# to the DHCP server asking for an IP address | |
sudo ipconfig set en7 DHCP | |
sudo ifconfig en7 up | |
ifconfig en7 |
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 | |
LINES=$(tput lines) | |
COLUMNS=$(tput cols) | |
declare -A snowflakes | |
declare -A lastflakes | |
clear |
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:18.04 | |
RUN apt update && apt install -y git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev libgl1-mesa-dev g++-multilib tofrodos libxml2-utils xsltproc vim cgpt samba libxml-simple-perl libssl-dev bc rsync python3 android-tools-fsutils fish | |
CMD ["bash"] |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
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
import os | |
import sys | |
def recursive_search_and_remove(latex_log, dir): | |
for f in os.listdir(dir): | |
if os.path.isdir(os.path.join(dir, f)): | |
recursive_search_and_remove(latex_log, os.path.join(dir, f)) | |
else: | |
if f not in latex_log: |
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
/* | |
MIME_TYPE, Encoder Name | |
----------------------- | |
video/avc, OMX.qcom.video.encoder.avc | |
video/hevc, OMX.qcom.video.encoder.hevc | |
video/hevc, OMX.qcom.video.encoder.hevc.cq | |
video/vp8, video/x-vnd.on2.vp8 | |
*/ |
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
""" | |
Reference: https://stackoverflow.com/questions/2536307/decorators-in-the-python-standard-lib-deprecated-specifically | |
""" | |
import warnings | |
import functools | |
def deprecated(func): | |
"""This is a decorator which can be used to mark functions | |
as deprecated. It will result in a warning being emitted |
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
echo "==================GPU======================" | |
echo Used / Total: | |
adb shell cat /sys/class/kgsl/kgsl-3d0/gpubusy | |
echo Utilization rate: | |
adb shell cat /sys/class/kgsl/kgsl-3d0/gpu_busy_percentage | |
echo Max frequencies: | |
adb shell cat /sys/class/kgsl/kgsl-3d0/devfreq/max_freq | |
echo Min frequencies: | |
adb shell cat /sys/class/kgsl/kgsl-3d0/devfreq/min_freq | |
echo Available frequencies: |
NewerOlder