Skip to content

Instantly share code, notes, and snippets.

@sherylynn
sherylynn / picks.sh
Created January 29, 2021 02:20 — forked from ArianK16a/picks.sh
#!/bin/bash
set -e
source "build/envsetup.sh";
# device/lineage/sepolicy
changes=(
282358 # common: Label IAntiFlicker live display service
)
repopick -P device/lineage/sepolicy ${changes[@]}&
@sherylynn
sherylynn / fuck_aliyun.md
Created January 22, 2020 14:52
阿里云踩坑

阿里云轻量应用服务器debian9.9

安全组打开所有连接

控制面板生成密钥居然完全没用,机器里压根就没有对应的authorized_key

sshd_config 里也压根没开 密码访问和公钥访问

只能用网页版terminal

@sherylynn
sherylynn / android_network.md
Last active December 13, 2019 08:39
android 开发

android 9 以上要兼容http需要一定设置

首先

在 application 里指定

    android:networkSecurityConfig="@xml/network_security_config"

然后在xml下新建对应xml内置

@sherylynn
sherylynn / readme.md
Created September 10, 2019 03:01
caddy踩坑

caddy会把证书存放在环境变量 caddypath下

systemd可用在 service里写好这个变量

caddy 在启动时候最好设置-email来提供邮件地址

caddy如果启动没有响应,可能是caddypath下存在lock/ 锁的文件夹

删除即可

@sherylynn
sherylynn / wireguard_readme.md
Last active March 12, 2020 13:23
wireguard

disable ufw in ubuntu

install first

allow ipv4 forward

echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf
sysctl -p

generate keys pair

@sherylynn
sherylynn / openvpn_readme.md
Last active November 28, 2022 12:57
openvpn configure

##如果需要仅仅访问连接了vpn的设备而不走vpn的网络

只需要注释掉 /etc/openvpn/server.conf中

push "redirect-gateway def1"
push "block-outside-dns"

即可

树莓派安装pivpn

@sherylynn
sherylynn / 炼妖壶.md
Last active August 13, 2019 06:59
非root环境下android 10 生存

用炼妖壶获取管理员模式

用炼妖壶搜索 原生自带的 "软件安装程序" 委托 绿色守护 深度睡眠

然后酷安的安装就可以直接使用

用炼妖壶的 应用安装器 就不需要确认来安装了

平时的app的权限管理 使用appops 模式用炼妖壶的 管理员 模式

@sherylynn
sherylynn / readme.md
Created August 3, 2019 17:19
xposed坑
@sherylynn
sherylynn / windows acceleration.md
Last active April 7, 2019 16:07
android emulator AMD WHPX

android studio 的 emulator

windows

在intel cpu下利用 HAXM 来提供QEMU加速,在amd cpu下利用 WHPX 来提供

需要在控制面板中打开 windows hypervisor platform

并确保 bcdedit /set hypervisorlaunchtype auto

@sherylynn
sherylynn / install 360 in modern ubuntu.md
Last active April 21, 2025 04:40
install 360 in modern ubuntu 360安全卫士

记在ubuntu 18.04 安装 360安全卫士

首先是下载 360安装本体

curl -o 360.deb -l http://down.360safe.com/linuxsafe/deepin64/360safeforcnos-polkit-3.0.0.71-stripped.deb curl -o virus_lib.deb -l http://down.360safe.com/linuxsafe/deepin64/bdviruslibrary-3.0.0.71.deb

360.deb本身是针对deepin开发的,依赖中有,需要解包